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

Rosamunda - December 22, 2008 - 02:03

* bump *

#2

venusrising - February 6, 2009 - 06:50

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

Rosamunda - February 6, 2009 - 13:09

It´s a pitty because t´s an excellent module!

#4

venusrising - February 7, 2009 - 01:36
Priority:normal» critical

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

venusrising - February 22, 2009 - 04:21

#6

System Message - March 8, 2009 - 04:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#7

Nuno Veloso - March 13, 2009 - 12:43

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

Nuno Veloso - March 13, 2009 - 12:43
Status:closed» fixed

#9

System Message - March 27, 2009 - 12:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#10

aharown07 - April 7, 2009 - 22:13
Status:closed» active

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

aharown07 - April 7, 2009 - 23:14

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

aharown07 - April 8, 2009 - 03:16
Status:active» closed

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

aharown07 - April 8, 2009 - 13:52
Status:closed» active

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

aharown07 - April 8, 2009 - 14:12

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

Likeless - August 6, 2009 - 13:50

In order to get User Badges (D6 dev version) to work along with Auto Assign Role, please uncomment the last funcion in the file user_badges.module

Are you doing this aharown07?

#16

Likeless - August 7, 2009 - 16:49
Status:active» fixed

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

aharown07 - August 9, 2009 - 03:29

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

System Message - August 23, 2009 - 03:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.