On my site we had a user whose special actions caused him to be banned for life and all his postings unpublished. Ahem. I just installed userpoints and did userpoints_reset and userpoints_retroactive. Imagine my shock to see that user as the #2 member on the site. Obviously it's awarding him points for all his postings even though they've been unpublished.

Obviously it's adding points even if the node or comment status is not published.

Comments

kbahey’s picture

Status: Active » Fixed

I put in a fix for this to check only published nodes and comments. It should be in the tarball in about 9 hours from now.

Here is another workaround: Add the user to a new role (e.g. "banned users"), install the role_exempt module and configure that module to not receive points, then using MySQL TRUNCATE userpoints and userpoints_txn, then run userpoints retroactive once more.

This time, this user will not receive any points.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.