NodeBB / nodebb-rewards-essentials

Essential Rewards Starter Pack for NodeBB
BSD 2-Clause "Simplified" License
12 stars 10 forks source link

Reputation not being applied #16

Closed sharked76 closed 3 years ago

sharked76 commented 3 years ago

Hi, I have an existing forum, that I am now looking to enable reputation rewards. I have enabled the plugin and created rules based on post count:

image

However after I enable the reward and click save, if I then go back to my user list and look, there is no change to reputations:

image

Even though those users are well over the threshold I set in the Rewards: image

Does it not apply the rewards for existing users? or is it only for new users?

psychobunny commented 3 years ago

hi @sharked76 the plugin doesn't retroactively apply rewards, but if any of those users post again they will receive the reward

sharked76 commented 3 years ago

Once they post will it catch up for all that have been missed? Or the counter only starts from this point?

For example if Duane Cook makes a post his post count changes from 184 to 185 will he get the reward I have set for 25 posts and 50 posts as he has already past them?

psychobunny commented 3 years ago

hi @sharked76 internally the plugin works like this:

on some hook: "user posted" check if condition is true: "user has more than 50 posts" give reward

so the user in your example just needs to post once for the check(s) to pass. :)

sharked76 commented 3 years ago

So if I understand, it is retroactive, its just not doing a scan and applying, its waiting until the user makes their next post?

If I have these setup: image

Once Duane Cook makes a new post, since he has more than 25 and also more than 50, he will have both of those rewards applied?

psychobunny commented 3 years ago

Ah I see your confusion from my original wording, sorry for that

The rewards are retroactive indeed but only checked once a new action is done for that user. So yes both rewards should be applied (assuming there's no bug :D)