I setup a new badge for authoriced users.
"Number of badges to display" is set to 1.
All admins, webdesigners and mods get this new badge also.

Comments

shabana.navas’s picture

So, basically is it displaying all the badges despite setting it to display only 1?

Wolfgang62’s picture

Exactly.
I guess the problem is the role.
As an admin or mod you get the role admin or mod but you also have, per default and always, the second role authenticated user additionally.

shabana.navas’s picture

Hmm. I can't seem to reproduce the problem.

As an admin or mod you get the role admin or mod but you also have, per default and always, the second role authenticated user additionally.

That is the way most sites function anyway and the number of badges to display shouldn't get in the way of the roles that a user has. By default, it will only show the badge with the lightest weight. And I have tested this a few times and it is working just fine on my side.

Wolfgang62’s picture

And I have tested this a few times and it is working just fine on my side.

But obviously not on every site.

Wolfgang62’s picture

As soon as any Webmaster, Admin or Mod is editing his profile the second badge comes back.

shabana.navas’s picture

As soon as any Webmaster, Admin or Mod is editing his profile the second badge comes back.

I think maybe you're not clear on the way this works. The badge limit is only applied when the badges are displayed to everyone (user/2/badges). However, when you go to edit the badges (user/1/edit/badges), there you can see all the badges that that user has, in order to add/remove badges.

Another thing is, the 'does not count to limit' option. If that is set for a particular badge, then, obviously, you will see that in the badge list as well.

Wolfgang62’s picture

To make it more clear: As soon as any Webmaster, Admin or Mod is editing his profile the second badge comes back and it is shown in the forum for everybody.

No badge is set for "does not count to limit".

shabana.navas’s picture

I understand what you mean now, but I just can't seem to duplicate this problem. I just can't see why all the badges would show and ignore the badge limit after you edit the user profile. You would need to personally debug this in the user_badges module so we can get some more information. But I am not sure if that is possible for you if it is a production site.

shabana.navas’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)