Raising and lowering the reputation of users
-
You mean besides upvoting/downvoting their posts?
-
Or, sorry, I didn't see, yes, I'm looking for how to change the reputation without voting, let's say I want as an administrator to add 30 reputation points to a certain user, how do I do it?
-
@eeeee @PitaJ
Yes, but it will be difficult for me to edit directly to the database. I also don't want one time, but simply every time I want I press a button, choose how much the reputation will increase, and it will be added... I found this plugin: nodebb-plugin-change-reputationBut it doesn't work (it opens in management, I enter details, click save, and nothing happens... there is no confirmation alert, and it doesn't upload either..)
The console has this:admin.min.js?v=g4bqioc6dko:2 error loading admin/plugins/change-reputation Error: Cannot find module './plugins/change-reputation' at async ****/assets/admin.min.js?v=g4bqioc6dko:2:25351 at async ****/assets/admin.min.js?v=g4bqioc6dko:2:38399 at async Promise.all (index 0) at async app.require (****&/assets/admin.min.js?v=g4bqioc6dko:2:38215) at async ****/assets/admin.min.js?v=g4bqioc6dko:2:32146
הגירסה שלי היא 2.4.5
-
I was looking into possibility to use API call to do this and I see in the data structure:
Upvoted / Downvoted
And RepuationI thought
Reputation = Upvoted - Downvoted
so is this data duplication in the DB object?This example has reputation 100 and
Upvoted 0, Downvoted 0
So im confused -
there was this plugin that I have used quite some time ago, and it was doing what you described:
GitHub - Yehonatan-Albert/nodebb-plugin-change-reputation
Contribute to Yehonatan-Albert/nodebb-plugin-change-reputation development by creating an account on GitHub.
GitHub (github.com)
but, I believe it should be updated to work with NodeBB v3
-
@crazycells I wrote above that it doesn't work...
@LEVI-HAVIV said in Raising and lowering the reputation of users:
nodebb-plugin-change-reputation
But it doesn't work (it opens in management, I enter details, click save, and nothing happens... there is no confirmation alert, and it doesn't upload either..)
-
Back to my question and data duplication, perhaps reputation value is more than just = Upvoted - Downvoted.
However I read a thread on what to change in the database to alter reputation and it lists two different fields:db.objects.update({_key: "user:<replace_with_uid>"}, {$set: {"reputation": X}}); db.objects.update({_key: "users:reputation", value: "<replace_with_uid>"}, {$set: {"score": X}});
So what is the difference in reputation value and reputation score?
Is this duplicated data?? -
I got by with the following command: (Emailo in the console, after you install the plugin, even though the plugin itself doesn't respond...)
socket.emit('admin.plugins.changeReputation', { uid: 1, reputation: 100 })