Userpoints Role Issue
dRaz - April 23, 2009 - 20:19
| Project: | User Points Contributed modules |
| Version: | 6.x-1.x-dev |
| Component: | Code: userpoints_role |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hopefully somebody can help me with this.
I have downloaded the latest Userpoints dev and Contrib dev modules and installed them.
I have 2 roles setup on the site: Full Member and Super Member.
In userpoints role settings I have stated 600 as "points for role "super member".
After posting 1 piece of content worth 1 point I was upgraded to super member.
The other role is set to 0 and is the default role.
What am I doing wrong? I have tried this with 2 separate member accounts and botht imes I got upgraded to super member with only 1 point?
Thanks, Shaun

#1
Oh, I set in userpoints taxonomy new category: Karma.
In Userpoints Role I set -10 Karma points for role Flooder.
But when user reaches -10 points nothing happens. Absolutely nothing.
#2
Another similar problem: anonymous users are allowed to post comments on my site. Once the post 1 piece of comment, they get a user points score equal to that of the highest scoring user!! E.g. I as the admin have a points score of 1124. An anonymous user posts 1 comment, worth 1 point, and immediately gets 1124 points!
Of course, anonymous users should not get any points...
#3
I understand why this happens -- anonymous users get uid=0, which is also the admin uid. We should design a patch to check more than just uid, and see whether the user is registered at all. If not, then it is anonymous, and should get 0 points.
#4
@mxistence, could you provide a patch?
In my view Userpoints role should not mess with the uid=0 account. You can still have administrators and administrator roles with other uids, but in my view the first administrator should be rather seen as a system account, then an account for everydays administration work. So I would not like other modules to mess with this accounts permissions