This is basically the same issue in http://drupal.org/node/1142226 but for Drupal 7. Author pane is showing all the badges instead of the maximum specified by the User Badges module.

Any idea of what's the problem? As a non-coder I tried to figure out if there was something similar in terms of code to the 6.x branch but I could not find any analogy with that code and patch proposed there.

Thank you.

Comments

shabana.navas’s picture

I've got the same issue. If it's a user_badges problem, please let me know. Thanks.

shabana.navas’s picture

Here's the patch for d7.

mermemladeK’s picture

Hi Shabana,

Thank your for the contribution, although after applying your patch I got this:

Parse error: syntax error, unexpected T_IF in /home/llunydec/public_html/sites/all/modules/author_pane/modules/user_badges.author-pane.inc on line 24

shabana.navas’s picture

That is weird, I have tested this patch a number of times now, and it works just fine. Are you sure you are using the 7.x-2.0-beta1 version?

mermemladeK’s picture

My bad...
the patch works.
I copied the lines by hand and forgot to remove the +'s. Lol.

shabana.navas’s picture

Whew!!

Scyther’s picture

Status: Active » Fixed

Commited to dev with a few changes from the patch in #2.

Thanks for the help Shabana!

http://drupalcode.org/project/author_pane.git/commit/7b11f54

Status: Fixed » Closed (fixed)

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

shabana.navas’s picture

This patch isn't needed anymore. This issue has been taken care of in the new version of userbadges.