Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
That's when of the features I needed on my site. Specifically I wanted user gets points when his/her post is promoted to front page or marked as sticky. Then, if the post is demoted or made un-sticky, the user won't lose his/her points...I have modified the userpoints module to achieve this and also added some other features I need. I am still testing it and will post it in a couple days.
I am not sure if userpoints.module wants to implement this, maybe more suitable for a contrib module. I had it implemented locally about a year ago, it kinda worked but then I discarded the idea. Mostly because of two reasons:
1. It gives me comfort when I know there is retroactive.module I can rely on when anything goes wrong. But with this setup, recalculate/retro points would be very difficult, if not impossible.
2. I was also worried about the abuse possibilities it opens.
I'm throwing my vote for NOT implementing this in core. It has massive potential for abuse and a contrib module can easily implement this by hitting the hook with a few lines of code. (hint: points before.. wipe out the negative points).
Comments
Comment #1
dami commentedSorry, but I don't quite understand...Do you mean you don't want a user to lose points when his post is deleted?
Comment #2
pamphile commentedyes Dami,
your correct. Nothing must happen when the node is deleted.
Comment #3
dami commentedThat's when of the features I needed on my site. Specifically I wanted user gets points when his/her post is promoted to front page or marked as sticky. Then, if the post is demoted or made un-sticky, the user won't lose his/her points...I have modified the userpoints module to achieve this and also added some other features I need. I am still testing it and will post it in a couple days.
Comment #4
jredding commentedLooks like these items were committed.
Comment #5
jredding commentedSorry trigger happy, wrong issue. This feature has not been incorporated.
Comment #6
dami commentedI am not sure if userpoints.module wants to implement this, maybe more suitable for a contrib module. I had it implemented locally about a year ago, it kinda worked but then I discarded the idea. Mostly because of two reasons:
1. It gives me comfort when I know there is retroactive.module I can rely on when anything goes wrong. But with this setup, recalculate/retro points would be very difficult, if not impossible.
2. I was also worried about the abuse possibilities it opens.
Comment #7
jredding commentedI'm throwing my vote for NOT implementing this in core. It has massive potential for abuse and a contrib module can easily implement this by hitting the hook with a few lines of code. (hint: points before.. wipe out the negative points).
Comment #8
berdirSorry for pinging the participants, I am closing old issues. This version is not supported any more.
You are of course welcome to re-open this issue for a newer version if the bug still exists or you still want to add this feature.