Closed (fixed)
Project:
User Badges
Version:
6.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2008 at 04:26 UTC
Updated:
23 Aug 2009 at 03:30 UTC
When you edit a user, and change it´s role, the Badge changes accordingly, but when you create a new user and in the registration form you add him to a certain specific role, that user does not have the special role badge, but the plain "authenticated user" one.
Only when you go to edit, uncheck the special role, save, and then check it again, the badge applies.
I just assume that was a module bug.
Rosamunda
Comments
Comment #1
Rosamunda commented* bump *
Comment #2
venusrising commentedI have the same issue. It seems like this module does not have much support and the contributed module bug list does not seem to get much replie to support requests either.
Comment #3
Rosamunda commentedIt´s a pitty because t´s an excellent module!
Comment #4
venusrising commentedYes it is but it would be nice if someone checked these queues and even said it was not being supported so we would know.
Comment #5
venusrising commentedhttp://drupal.org/node/367613#comment-1277332
Comment #7
nunoveloso commentedHello! Sorry for being away but I have been very very busy lately.
This problem occurs because you certainly have the Auto Assign Role module installed. This issue is due to that module because it only insert role on the DB and do not update the user object in memory. (more info and tricks here: http://drupal.org/node/243396)
Any road, I put a fast solution to that on the dev version of D6 release. You have to be sure your cron is running.
So, this issue is fixed on dev version of Drupal 6 release.
Thank you.
Comment #8
nunoveloso commentedComment #10
aharown07 commentedI'm having this problem and I do not have Auto Assign Role installed.
Existing accounts get badge changes when their roles change... new accounts get no badges at all (I don't have one assigned to "authenticated user" or they might get that one) after I assign them to roles.
Comment #11
aharown07 commentedUpdated to Dev version and I'm still seeing this problem.
Badges just aren't showing on new accounts until after I update the Badges config in some way (most recent test, I just assigned an additional badge to an additional role)
Comment #12
aharown07 commentedWell, now I can't reproduce the problem. I restored my db to a backup and then installed the dev version again... and new accounts are getting their badges when I assign roles to them. So I'm not sure what was broken before. Will reopen if the problem returns and I have any more info on it.
Comment #13
aharown07 commentedAfter a bit more testing, here's what happens for me consistently:
- New user registrations a/auto role assign (just installed that) do not get their badges unless I unset the assigned role, save, reset the role and save again
I'm using the dev version now.
So there is still something not working right in the relationship between roles and badges. For now, I'll probably disable auto role assign since we are going to have to set the role manually to get the badge to go active anyway.
Comment #14
aharown07 commentedBadges also do not assign when I create an account manually. They assign when I clear the roles (the roles selected at creation), save, set the roles and save again.
Comment #15
Richard Blackborder commentedAre you doing this aharown07?
Comment #16
Richard Blackborder commentedaharown07 - another solution is to use the Rules module to apply your badges. Whenever a user is updated, have a rule set triggered that adds and removes badges according to the user's roles. It's pretty powerful; you can also make it add and remove badges by a lot of other conditions, too.
Comment #17
aharown07 commentedThanks. I found that I didn't need auto role assign... and we rarely create accounts manually, so I just tabled the problem. I don't think I uncommented the last line referred to in #15 so that may well fix. Will plan to try that when I get some time.