I want to reset points to X points. But there is only the action "Grant points to a user". I want action "reset user points to" X points. Is possible?

Comments

kbahey’s picture

Status: Active » Postponed (maintainer needs more info)

If you install the userpoints_contrib module, there is a userpoints_reset module that comes with it.

Alcaparra’s picture

I want to reset for role, this module reset all points from all users to 0.

Alcaparra’s picture

userpoints have "Points expiration" but isn't for type of points. I would like to expire just one type of points.

Bilmar’s picture

Title: Reset points with rules is possible? » Rules Action: Reset user points
Status: Postponed (maintainer needs more info) » Active

userpoints_reset module doesn't seem to be integrated with the rules module.

This would be an interesting feature to have and can be used with the Flag module so that when an admin flags a user as 'reset' the action 'reset user points' can be implemented.

Bastlynn’s picture

This "userpoints have "Points expiration" but isn't for type of points. I would like to expire just one type of points." I would love to see this feature available as well.

queryblitz’s picture

Component: Code: userpoints_rules/userpoints_workflow_ng » Code: userpoints

Here's a solution if anyone needs it. Use the Custom Tokens module to create a token that prints out the user's current number of points, and then use Rules to subtract points with the Grant UserPoints action and that Token with a minus in front of it.

manuel.adan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this as outdated, 6.x version is no longer maintained.