Closed (won't fix)
Project:
User Points Contributed modules
Version:
5.x-3.0
Component:
Code: userpoints_role
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2008 at 01:40 UTC
Updated:
24 Aug 2014 at 06:56 UTC
Jump to comment: Most recent
Comments
Comment #1
kbahey commentedNot without writing custom code.
Take the userpoints_role as a starting point and modify it to do that. It is not that hard.
Comment #2
walker2238 commentedThanks for the fast reply, I'll give it a shot although my php skills are limited. I'll post back to let you know how it went.
Comment #3
yofomofo commentedI am looking to do the same thing. Have you had any luck with this walker? I have gotten the module to remove the last assigned role but then add_role assigns all of the other roles back to the user instead of only adding the highest one the user can obtain. And it sounds so simple in theory, but man, I'm having a tough time!
Any help would be appreciated. Not a direct code paste, just some helpful hints. I'm new to Drupal and even PHP itself, so anything I can somewhat figure out myself would help me learn a bit more.
Thanks guys.
Comment #4
walker2238 commentedNope sorry no luck at all I only briefly viewed things and actually some how messed everything up so I had to re-install the module. I guess you could say I'm Tim the tool man Taylor of php. Maybe someone else will have better luck then we are having.
Comment #5
michelleIt's been almost 4 months... Wondering if anyone's done this, yet, because I want to do the same thing. I thought that is how the module would work and was surprised to post and then get notified that I had just gained 5 roles. Yikes. Good thing I posted before any users. LOL
Michelle
Comment #6
walker2238 commentedbump... curious if theres any progress on this...
Comment #7
berdirSorry for pinging the participants.
Now that Drupal 7 is out, there is no support for Drupal 5 and the
corresponding modules anymore. Therefore, I'm closing all old issues
which are still open.
I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature
is still needed or the bug still exists and open a new issue in that
case.
Comment #8
michelleLOL! I haven't used D5 in over a year. Dunno if this feature is in D6... Gave up on it when I didn't get a response 2 years ago and never tried again.
Michelle
Comment #9
timofey commentedFor those still curious, see http://drupal.stackexchange.com/questions/14566/how-to-limit-one-role-pe...
Comment #10
gbisht commentedIf anyone looking for module to limit user roles to one role per user then there is a module Single User Role for drupal 7 and drupal 8 as well.