[nodebb-plugin-reputation-rules] Reputation Rules Plugin for NodeBB
-
Is this message generated from the Reputation Rules plugin? I can't find where to edit this setting.
-
@zandertrek yes, that is a plugin generated message.
If you go to the plugin settings, right below Global configuration there is a message (more than an option) that says how that number is calculated.
It is a formula: max votes per day is one tenth of the user reputation, with a minimum of 5 votes per day and a max of 50.
This is fixed, cannot be configured right now.How would you like to override this setting? Would you like to set a fixed number of votes instead? Would you prefer to alter it to 20% or 50% of user's reputation?
The idea behind this being a formula was that the higher the user reputation the less likely that user would be to abuse the system. In other words, low reputation and high number of votes per day was the most risky combination that would allow spam accounts and multi-accounts to take advantage of the system.
But that of course is quite arbitrary. Why 5 votes minimum? Or 50 max? Why 10%?So yeah, what would you like the plugin to behave?
-
@phenomlab as I said we would first have to decide what to put there instead of the hardcoded formula. A fixed number? a percentage of user's reputation? another formula that I would have to parse?
What would you prefer?
Cause if the problem is that the users complain and you just want to completely remove this limit, well, a toggle to disable this limitation would be the ideal solution.
If instead you like having a limit but you just want a fixed one, like 100, well, then let's have an input there to set the limit that overrides the formula.
Or you could also say: I like that the limit depends on how much reputation the user has but instead of a 10% of that reputation I want a 20%.
Or even more flexible and complex, I want my own formula.In summary, what is your use case? What do you want to do with this limit?
-
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.