[nodebb-plugin-reputation-rules] Reputation Rules Plugin for NodeBB
-
@zandertrek those are great ideas!
The first one should be in NodeBB or another plugin probably, as this plugin is more about upvoting/downvoting and not about other privileges.
But the idea of showing notifications like "you have X votes left this month" or "no more votes remaining today" and things like that could be a good way of educating users on the limits of reputation instead of just error messages.
Regarding the second one, not sure if the error popups have enough space for more detailed messages, or if there is another way of showing feedback but it would be really nice to have that. Definitely worth exploring.Thank you for the suggestions. Not sure if I will implement them at this point but I will dedicate some time to think and mess around to see how far I can go.
-
I've been improving error messages a bit, now they include some important bits of information depending on the error:
Same for the Spanish translation of course:
I will be including these changes in the next release.
Edit: v1.2.3 was released with these changes
-
@thebronx I experienced some difficulties receiving v1.2.3 but it is now installed. I tested it using a dummy account and I really appreciate the higher level of communication that this version provides. I know the users will also.
-
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).