Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. zoharm
    Z
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 33
    • Best 4
    • Groups 0

    zoharm

    @zoharm

    4
    Reputation
    663
    Profile views
    33
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    zoharm Follow

    Best posts made by zoharm

    • RE: Installing on Heroku

      I can confirm this, I had the same issue, it started happening recently, specifically when connecting to Heroku's Redis addons. It is most likely caused by some extra security changes done on those outwardly exposed redis stores.

      I found a workaround for it for now, was thinking about putting a pull request in, it involves simply supporting a "url" field for the redis database configs in config.json

      If a dev sees this, please let me know if you would like me to do it or if you are working on your own solution.

      Meanwhile, the fix:

      in nodebb/src/database/redis.js (https://github.com/NodeBB/NodeBB/blob/master/src/database/redis.js) replace the following:

          if (redis_socket_or_host && redis_socket_or_host.indexOf('/') >= 0) {
              cxn = redis.createClient(nconf.get('redis:host'), options);
          } else {
              cxn = redis.createClient(nconf.get('redis:port'), nconf.get('redis:host'), options);
          }
      

      with

          cxn = redis.createClient(process.env.REDIS_URL, options);
      

      where process.env.REDIS_URL should have your full redis connection url ("redis://...") as set by heroku

      also since the redis url string includes the password, you may want to remove the following bit in the same code block

          if (nconf.get('redis:password')) {
              cxn.auth(nconf.get('redis:password'));
          }
      

      Finally, a more general solution would be nice, again if anyone could mention a dev here please let me know if the config change solution is desirable.

      Cheers!

      posted in Technical Support
      Z
      zoharm
    • RE: Strategic multiplayer board game website, please criticize!

      @psychobunny i originally developed the game component as a standalone , and then just baked it into nodebb as a plugin.

      By the way, I have an official website up for it now: tactiqo.com

      I see you guys joined on the heroku up, thank you for checking it out! Lets play some games on tactiqo.com now ❤

      posted in General Discussion
      Z
      zoharm
    • RE: [nodebb-plugin-shoutbox] Shoutbox plugin

      @Schamper possible bug report if interested: I tried plugin with v1.1.2 and the admin page won't save settings when clicking "save settings" button, reloading page would lose the settings and they won't take effect.

      posted in NodeBB Plugins
      Z
      zoharm
    • RE: New user issues: github oath, change email, resend email

      just reporting here, i had to recover password and then resend email on the "zoharm" account and it got me in and email confirmed this time, so all good for me now (could still investigate original issue with github email which is the only thing really left of this topic)

      posted in Technical Support
      Z
      zoharm

    Latest posts made by zoharm

    • RE: [nodebb-plugin-shoutbox] Shoutbox plugin

      How to remove the "create gist" and "view archives" buttons at the button? I am running latest npm release 0.3.4 (should I use something else? strangely, I seem to remember a few years ago this was possible.)

      Thank you!

      posted in NodeBB Plugins
      Z
      zoharm
    • Registration custom consent page

      Hi all,

      First of all, thank you for this great piece of software and solid adherence to legislative compliance.

      My question / request is:

      What is the (currently) best way to customize the registration process?

      What I am interested in is moving all the personal information consent related text in the "Registration complete" page to the main registration page (with smaller text.) Removing the checkboxes and instead stating something among the lines of "By clicking 'Submit' I consent to the collection and processing of my personal information on this website"

      Thank you!

      posted in NodeBB Development
      Z
      zoharm
    • RE: `./nodebb build` build only one plugin

      @PitaJ Perfect, thanks a ton!

      posted in Plugin Development
      Z
      zoharm
    • RE: `./nodebb build` build only one plugin

      Finally, regardless of grunt, according to this:

      Getting Started - NodeBB Documentation

      ./nodebb build does support selective building, but the link in the doc above "The full list is can be found in the codebase itself." is not helpful 🙂 Is there a better link for a full list?

      Thank you!

      posted in Plugin Development
      Z
      zoharm
    • RE: `./nodebb build` build only one plugin

      I would use npm link but as I mentioned I work with a separate repo, which includes other code and is organized differently than a nodebb-plugin npm module. So my script is a bit more complex than just "copy a directory" over.

      However, npm link essentially does symlinks so it would make sense to convert my script to symlink everything instead of copy. So thank you for this!

      Last question about grunt, going back to the original topic, would it just:

      run grunt which will both build stuff whenever anything changes, and run and restart the NodeBB server automatically.

      or would it actually trigger only "sub-builds" (ie, only build a certain plugin and nothing else) ?

      Thanks

      posted in Plugin Development
      Z
      zoharm
    • RE: `./nodebb build` build only one plugin

      Nope, here is what I found googling "nodebb grunt flow":
      https://github.com/NodeBB-Community/nodebb-grunt/wiki/Workflow

      I'm a little bit lost there too, so could use a bit more documentation if available

      With that node-grunt repo, do I clone it inside NodeBB repo? Also, what is a g module? I suppose it is a grunt-like module (which decides which files to keep track of for you basically?)

      Anyway, if possible please point me to some more docs.

      Here is my workflow: I do my NodeBB plugin work in another repo, whenever I wonna test, I simply run a script that copies everything to nodebb/node_modules/nodebb-plugin-my-plugin and runs a ./nodebb build

      This honestly serves me well, I just wonder if its possible (or even feasible) to do something like ./nodebb build plugin my-plugin

      posted in Plugin Development
      Z
      zoharm
    • `./nodebb build` build only one plugin

      Is there a way to have ./nodebb build only build a specific plugin's content and inject its JS library into NodeBB?

      (and better yet, separate those two out, one build task to only build content (which case does not even need NodeBB restart) and another to inject JS library)

      I don't know if this a lot to ask for, but it would greatly accelerate my cycles, build is something I can run a couple times per minute when iterating quickly, even shaving 4-5 seconds off it would actually mean a lot to me.

      posted in Plugin Development
      Z
      zoharm
    • RE: passing a string is deprecated

      @PitaJ Worked great. Thank you!

      posted in NodeBB Plugins
      Z
      zoharm
    • RE: passing a string is deprecated

      Apologies for the evil resurrection, just got back into NodeBB after a loooong break 🙂

      The way I render my widget is as such:

      plugin.renderGlobalStats = function (widget, callback) {
          ...
          widget.req.app.render('widgets/globalstats', renderData, callback);
      

      This throws the warning this thread is about.

      How should I go about fixing this? I assume reading my template file (widgets/globalstats.tpl) and assigning it as string to data.html (in this case, widget.html ?) is not pretty 🙂

      How should I render a widget html template?

      posted in NodeBB Plugins
      Z
      zoharm
    • RE: i want to deploy nodebb on aws but nodebb is using either redis and mongodb

      that all depends on how many millions of posts you plan to get 🙂

      that leads me to wonder, are there any benchmark posts on performance and resource utilization? that would be nice. nodebb team? ^_^ @administrators

      posted in Technical Support
      Z
      zoharm