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.
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.
Comment | File | Size | Author |
---|---|---|---|
#12 | [display-badges-by-limit]-[1843492]-[1].patch | 1.08 KB | shabana.navas |
numberofuserbadgeshowing.patch | 720 bytes | Anonymous (not verified) | |
Comments
Comment #1
MichelleMarked #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
Comment #2
venusrising CreditAttribution: venusrising commentedI did the patch and it solved the problem for us too.
Comment #3
MichelleOk, I'll get it in soon as I can. Thanks.
Michelle
Comment #4
rickh CreditAttribution: rickh commentedfixed for me as well. thanks for the patch.
Comment #5
rickh CreditAttribution: rickh commentedsorry 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.
Comment #6
ashaw4949 CreditAttribution: ashaw4949 commentedYes, I am having the same problem. Instead of showing 2 as in setting, it shows all badges.
Comment #7
MichellePatch 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
Comment #9
ymoss CreditAttribution: ymoss commentedhi, 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
Comment #10
mermemladeK CreditAttribution: mermemladeK commentedSame problem here for 7.x-2.0-beta1.
Comment #11
shabana.navas CreditAttribution: shabana.navas commentedI'm facing the same problem...
Comment #12
shabana.navas CreditAttribution: shabana.navas commentedHere's the patch for d7.