I have an idea for a function which would allow for an admin to add a multiplier to a user account which would credit the individual with more (or less) user points for each activity which userpoints are credited.

For example, normally a user gets 10 points for submitting a node. If an admin enters .5 in the users points multiplier field, and that user submits a node, then the user is only credited 5 points. This could also work in an opposite manner, where if an admin enters 2 in the user points multiplier field, and the user submits a node, then they are awarded 20 points.

Any desire for or chance this could be introduced?

Comments

kbahey’s picture

Status: Active » Needs work

This can be done quite easily using the new API.

In the newmodule_userpoints() function, check for 'points before', then manipulate the points as you wish, it will get saved automatically as the new points with the multiplier.

If you want to write a new module for this, and attach it here (with extension .txt), then I will commit it to the contrib directory under userpoints.

berdir’s picture

Component: Code » Code: userpoints API
Status: Needs work » Closed (won't fix)

Sorry 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.