[nodebb-plugin-reputation-rules] Reputation Rules Plugin for NodeBB
-
This looks like a great plugin, with the ability to grant privileges based on post count. Does it work in v3?
-
@BrotherGlaucon Yes, I am using it
-
@phenomlab Sweeet.
-
I am having troubles with this plugin. I run into these problems in v2 and v3:
- Error: You need to have at least 20 posts to vote
- Error: You have to be a member of this forum for 7 days before you can vote
- Error: You already voted 1 times for this user and this month, wait until next month
I am not able to make changes to circumvent these errors. In fact, when I refresh the ACP page all of the settings disappear. It's as though the settings are not being saved to the database. (Yes, I am clicking the 'save' button in the lower right)
-
@BrotherGlaucon said in [nodebb-plugin-reputation-rules] Reputation Rules Plugin for NodeBB:
when I refresh the ACP page all of the settings disappear. It's as though the settings are not being saved to the database. (Yes, I am clicking the 'save' button in the lower right)
What version of NodeBB are you using? Is it with redis or mongodb? So I can try and replicate the problem.
-
@TheBronx - I actually tried this in both of my test environments, v2.8.12 and v3.1.6, both with MongoDB.
When I open up
ACP->Plugins->Reputation Rules
all of the fields are always blank.I must be doing something goofy if no one else is having this problem.
-
@BrotherGlaucon anything in the browser console or in the
NodeBB
log? -
@phenomlab - Yes, I was just looking at that now.
There is a console
Uncaught ReferenceError: require is not defined
at <this line of reputation-rules.tpl>.There was also a problem with the emoji plugin, but I deactivated that for the time being. I don't know if it was interconnected.
(v2.8.12)
-
Since nbb 2.x we don't use requirejs so embedding javascript into templates like that isn't supported, it needs to be a module defined in plugin.json and a separate javascript file. Take a look at https://github.com/NodeBB/nodebb-plugin-quickstart/blob/master/static/lib/admin.js for a sample.
-
@TheBronx - Before you do anything, let me try to make sure my system is set up correctly. Now I am getting a console error
error loading admin/plugins/reputation-rules
. I am wondering if the plugin failed to install correctly (although reinstallation didn't seem to help). -
@BrotherGlaucon try a rebuild
-
@phenomlab - Yes, I have tried rebuilding, reinstalling, removing other plugins, and switching to v2.x.
@baris - I do get an error related to <this thread>, but I am not able to locate the config.json file. Has this changed since 2018?
-
Looks like settings in ACP have changed since last release as @baris pointed out
Unfortunately thenodebb-plugin-quickstart
that serves as example/documentation wasn't enough to have the ACP completely working. Settings are no longer empty when I reload that page, but if I navigate somewhere else and then go back to the plugin settings they are empty. No idea why.
I also found this: https://community.nodebb.org/topic/16958/how-do-i-create-a-settings-page-for-my-plugin
But it again points out to the quickstart plugin and that plugin throws errors, it doesn't work in NodeBB 3.1.6So I could not fix this issue, which is pretty annoying considering how basic this is for a plugin. That's all the time I had, sorry.
-
Merged the pull request. Didnβt check if working. If you want to take care of the plug-in you cam have it as we donβt have developers to continue with it
-
@phenomlab published
@nodebb/[email protected]
it's compatible with nodebb 3.2.0, which is coming very