I think it would be really awesome to be able to set the 'maximum points' to the highest point value on the site (via a token?). On my site where earning userpoints = a good thing, there isn't a cap to set on how many points a user can earn.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | userpoints_meter-add-token-986574-10.patch | 2.86 KB | Azavia |
Comments
Comment #1
marcoka commentedi have never created a token for the token module. At the moment i have no time to read/research token module.
code snippets appreciated :)
Comment #2
marcoka commentedComment #3
Crom commented+1. I agree that this would be a useful feature. It seems strange to assign a quota to user points because isn't the point that we are trying to encourage users to generate as many as possible.
If I work anything up I'll post it but suggestions as to the best route would be welcome.
Thanks,
crom
Comment #4
marcoka commentedwell i coded it to be used as a SIGN of what a user can download. i used userpoints to make a download quota module. I will soon start porting that to D7. Suggestions welcome.
Comment #5
marcoka commentedI asked in the issue queue of userpoints if there is an api way to get the max value.
Comment #6
marcoka commentedComment #7
marcoka commentedhm no reply so far @userpoints issue queue. i only will ad dthis if someone comes up with a solution/patch
Comment #8
marcoka commentedno solutions, suggestions, so wont fix
Comment #9
Azavia commentedIs there still interest in this? There's no API in userpoints, but this would be a relatively trivial change.
Something like the following would retrieve the maximum points:
Granted it directly accesses the DB, but there's no API function to do this, and it seems that the points column shouldn't really change.
I'm willing to help with this if needed and if there is still interest.
Comment #10
Azavia commentedI created a patch to create the token. The token is [userpoints-meter:max-points].
Comment #11
marcoka commentednow the community can test it and i also need a volunteer to add that to d6 because i dont maintain d6 anymore (no time).
Comment #12
socialnicheguru commentedhow do I use the patch in #10? I really mean where do I place the token value so that the userpoints meter blocks don't need to have a max value?
Comment #13
mark. commented