In badge settings I can set a maximum number of badge to show. I can also set unhide badge or "not counted" badge.
In the account object I have $account->badges and $account->badges_all correctly set.
Author pane show the entire set of badge.
I made a patch to solve this problem that only themes the badge in $account->badges instead of asking badges another time at the badge module.

CommentFileSizeAuthor
#12 [display-badges-by-limit]-[1843492]-[1].patch1.08 KBshabana.navas
numberofuserbadgeshowing.patch720 bytesAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michelle’s picture

Marked #975914: User Badges not showing correct number in Author Pane a dupe of this and asked for review. I don't use user badges so I need someone else who does to test it and mark it RTBC.

Michelle

venusrising’s picture

Status: Needs review » Active

I did the patch and it solved the problem for us too.

Michelle’s picture

Status: Active » Reviewed & tested by the community

Ok, I'll get it in soon as I can. Thanks.

Michelle

rickh’s picture

fixed for me as well. thanks for the patch.

rickh’s picture

sorry guys but the patch does not fix in views. If this is the wrong placve to post this then please let me know, but it's not working exactly.

ashaw4949’s picture

Yes, I am having the same problem. Instead of showing 2 as in setting, it shows all badges.

Michelle’s picture

Status: Reviewed & tested by the community » Fixed

Patch committed. I tested to be sure it didn't break AP but did not test it with User Badges as I don't use that module.

Michelle

Status: Fixed » Closed (fixed)

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

ymoss’s picture

hi, im using the 7.x-2.0-beta1 version of author pane and im having this problem too
i set it to only 1 but it shows all the user badges in AP
how can i use the patch above and can i use it in 7.x-2.0-beta1 thanks in advance

mermemladeK’s picture

Same problem here for 7.x-2.0-beta1.

shabana.navas’s picture

I'm facing the same problem...

shabana.navas’s picture

Here's the patch for d7.