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

Mr.Alinaki - July 13, 2009 - 21:08

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

morningtime - August 11, 2009 - 07:17

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

morningtime - August 11, 2009 - 09:43

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

digi24 - August 21, 2009 - 12:12

@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

 
 

Drupal is a registered trademark of Dries Buytaert.