Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. deiden26
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 34
    • Best 7
    • Groups 0

    deiden26

    @deiden26

    8
    Reputation
    705
    Profile views
    34
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    deiden26 Follow

    Best posts made by deiden26

    • RE: Which are your favorite nodeBB plugins?

      @greenmoon said in Which are your favorite nodeBB plugins?:

      is it possible to restrict "canned-responses" to moderators and admins only?

      Very late, but I use this JS in my custom header to limit canned responses to admins only

          // Hide canned responses unless you are an admin
          $(window).on('action:composer.loaded', function() {
              if (!app.user.isAdmin) {
                  $('.composer [data-format="canned-responses"]').hide();
              }
          });
      
      posted in General Discussion
      deiden26
      deiden26
    • How long does it take a plugin published to npm to show up in nbbpm?

      I created a search bar widget and published it to npm yesterday afternoon. You can see it on npm here

      and here is the github repo

      https://github.com/myvr/nodebb-widget-search-bar

      It has yet to appear in the "Find Plugins" section of the admin panel. Is there something wrong with my package.json, or do I just need to be more patient?

      posted in Technical Support
      deiden26
      deiden26
    • Limit signatures to users in certain groups or with a certain amount of reputation

      This would be useful to prevent new users from abusing signatures. It would also allow forums to incentivize members to work towards being able to have a signature.

      posted in Feature Requests
      deiden26
      deiden26
    • RE: Which are your favorite nodeBB plugins?

      @julian said in Which are your favorite nodeBB plugins?:

      In the newer stable releases of NodeBB, we've actually updated the search so that posts are returned by relevance, instead of by post time, so Solr is even better now 😄

      What version of NodeBB did this start in, and does this require Solr?

      In the spirit of staying on topic, here are some of my favorite plugins

      • Session Sharing
      • Q&A
      • S3 Uploads
      • Slack Integration
      posted in General Discussion
      deiden26
      deiden26
    • Plugin works in development but not in production

      I just made a shiny new plugin to award reputation to users for every post. The plugin, however, is only working in a local instance of NodeBB. It is not working in my production instance. The only notable difference between the two is that the local instance is using a redis database while the production instance is using a mongo database.

      Does anyone know what might be causing this?

      https://github.com/myvr/nodebb-plugin-reputation-for-posting

      posted in Plugin Development
      deiden26
      deiden26
    • RE: Use Widget only on forum homepage

      @yariplus My mistake. I was confusing a category page with the categories page. I now understand what you were suggesting, and it is a good solution. Thanks!

      posted in Technical Support
      deiden26
      deiden26
    • RE: Plugin works in development but not in production

      @baris Thanks! You and the rest of the NodeBB team / community rock.

      posted in Plugin Development
      deiden26
      deiden26

    Latest posts made by deiden26

    • RE: Which are your favorite nodeBB plugins?

      @greenmoon said in Which are your favorite nodeBB plugins?:

      is it possible to restrict "canned-responses" to moderators and admins only?

      Very late, but I use this JS in my custom header to limit canned responses to admins only

          // Hide canned responses unless you are an admin
          $(window).on('action:composer.loaded', function() {
              if (!app.user.isAdmin) {
                  $('.composer [data-format="canned-responses"]').hide();
              }
          });
      
      posted in General Discussion
      deiden26
      deiden26
    • RE: Which are your favorite nodeBB plugins?

      @julian said in Which are your favorite nodeBB plugins?:

      In the newer stable releases of NodeBB, we've actually updated the search so that posts are returned by relevance, instead of by post time, so Solr is even better now 😄

      What version of NodeBB did this start in, and does this require Solr?

      In the spirit of staying on topic, here are some of my favorite plugins

      • Session Sharing
      • Q&A
      • S3 Uploads
      • Slack Integration
      posted in General Discussion
      deiden26
      deiden26
    • RE: Can I Duplicate My Prod Instance Locally?

      @baris Thanks. Will do

      posted in Technical Support
      deiden26
      deiden26
    • Can I Duplicate My Prod Instance Locally?

      I'm using Nodebb's hosted service, and I'd like to test upgrading an identical copy of it locally prior to upgrading to 1.2.0. Can I duplicate the forum (posts, settings, users, and all) and run it locally?

      posted in Technical Support
      deiden26
      deiden26
    • RE: Plugin works in development but not in production

      @baris Thanks! You and the rest of the NodeBB team / community rock.

      posted in Plugin Development
      deiden26
      deiden26
    • RE: Plugin works in development but not in production

      @baris said in Plugin works in development but not in production:

      What is not working? Did you try testing with mongodb locally?

      Sorry for not being more clear. No reputation is being awarded for each post in production. Reputation is being awarded for each post locally. I haven't tried using mongodb locally, but that's the next step.

      posted in Plugin Development
      deiden26
      deiden26
    • RE: Plugin works in development but not in production

      @PitaJ said in Plugin works in development but not in production:

      @deiden26 without calling the callback, NodeBB had no idea when you've finished your task. So until you call that callback, the value is indeterminate.

      Edit: you just need to add the callback parameter to your function, and then add it as an argument to the waterfall.

      Are you suggesting that this line

      plugin.awardReputation = function(postData)

      should have a callback parameter, like this

      plugin.awardReputation = function(postData, callback)

      and that my waterfall should end in

      ], callback);

      ?

      That doesn't seem right to me, because the awardReputation function is being called for the action:post.save hook. This hook only provides postData and no callback.

      posted in Plugin Development
      deiden26
      deiden26
    • RE: Plugin works in development but not in production

      @frissdiegurke said in Plugin works in development but not in production:

      I guess he wanted to state that the next callback from line 42 is not called at any time.

      Ah. Thank you. Do you think this might cause an issue? I figured that because I am not providing a final callback for async.waterfall the next parameter would probably just be null.

      posted in Plugin Development
      deiden26
      deiden26
    • RE: Plugin works in development but not in production

      @baris said in Plugin works in development but not in production:

      Something looks wrong here https://github.com/myvr/nodebb-plugin-reputation-for-posting/blob/master/library.js#L42-L45. checkConditionAndRewardUser does not send back a callback

      Could you explain a bit more about what seems off? From what I can see, checkConditionAndRewardUser takes an optional callback parameter, but I'm not providing one because this is the last task in the waterfall. If you are referring the the callback parameter the the anonomous function I send for the method parameter of checkConditionAndRewardUser, this should be filled by the checkCondition method that checkConditionAndRewardUser calls with its method parameter as an input. Wow, that's a mouth full

      posted in Plugin Development
      deiden26
      deiden26
    • RE: Plugin works in development but not in production

      First of all, use your own version of the async library. It's bad practice to depend on someone else's dependencies. So replace module.parent.require('async'); with require('async');.

      Thanks. Will do

      Make sure your local and server instances are on the same commit.

      Definitely on the same commit.

      Check for any errors in the logs.

      Done. I didn't see any issues

      posted in Plugin Development
      deiden26
      deiden26