Badges not applying when creating a new user
Rosamunda - December 13, 2008 - 04:26
| Project: | User Badges |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
* bump *
#2
I 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.
#3
It´s a pitty because t´s an excellent module!
#4
Yes it is but it would be nice if someone checked these queues and even said it was not being supported so we would know.
#5
http://drupal.org/node/367613#comment-1277332
#6
Automatically closed -- issue fixed for 2 weeks with no activity.
#7
Hello! 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.
#8
#9
Automatically closed -- issue fixed for 2 weeks with no activity.
#10
I'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.
#11
Updated 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)
#12
Well, 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.
#13
After 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.
#14
Badges 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.
#15
Are you doing this aharown07?
#16
aharown07 - 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.
#17
Thanks. 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.
#18
Automatically closed -- issue fixed for 2 weeks with no activity.