1. Is there a way to assign certain default number of points for each new user?
2. how can i add/subtract certain number of points to all existing users?
Currently it seems I need to do this manually by adding points for each individual user
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | userpoints_register.tar_.gz | 1.78 KB | tom_o_t |
Comments
Comment #1
kbahey commentedYou can easily write a module to do these things.
Here is some example code:
For the first requirement, you would use hook_user() like this:
For the second point, you use something like this:
Comment #2
xjs commentedThanks!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
tom_o_t commentedAddressing #1 above, attached is a simple module to do this - I created it for Sony Music
Users receive a configurable number of userpoints for registering (creating an account).
I'm happy to tweak as necessary to get this into the userpoints contrib module - just let me know.
Comment #5
kbahey commentedThank you for this. Committed.
Should be in the 6.x-1.x-dev tarball in 6 or so hours.