Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
shabana.navas CreditAttribution: shabana.navas commentedSo, basically is it displaying all the badges despite setting it to display only 1?
Comment #2
Wolfgang62 CreditAttribution: Wolfgang62 commentedExactly.
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.
Comment #3
shabana.navas CreditAttribution: shabana.navas commentedHmm. I can't seem to reproduce the problem.
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.
Comment #4
Wolfgang62 CreditAttribution: Wolfgang62 commentedBut obviously not on every site.
Comment #5
Wolfgang62 CreditAttribution: Wolfgang62 commentedAs soon as any Webmaster, Admin or Mod is editing his profile the second badge comes back.
Comment #6
shabana.navas CreditAttribution: shabana.navas commentedI 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.
Comment #7
Wolfgang62 CreditAttribution: Wolfgang62 commentedTo 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".
Comment #8
shabana.navas CreditAttribution: shabana.navas commentedI 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.
Comment #9
shabana.navas CreditAttribution: shabana.navas commented