This patch adds a "settings" local task for the user_badges configuration. When "show one" is checked, the theme function only outputs the highest-level badge that someone is (that is, the one with the lowest weight). That way, if your roles have a hierarchy implied (I'm an administrator, but inherently also a staff member... display my "admin" badge but don't display my (necessarily redundant) "staff member" badge).

CommentFileSizeAuthor
user_badges_showone.patch1.95 KBchrisfromredfin

Comments

nunoveloso’s picture

Project: User Badges » User Availability
Version: 5.x-1.x-dev »
Assigned: Unassigned » nunoveloso
Status: Needs review » Fixed

Dear Drupalers,

As you may have noticed, Heine handed me the reins of this module so I'll do my best. However, for now I just intend to support and fix bugs and don't plan any extra features development (besides description URL).

I had a different version (customised for personal use) from the current ones in dev. I tried to merge those to versions, did some code improvements and added/modified some features. So I will now release the first "stable" versions (D5 & D6). Here is a list of what has been added/modified:

I hope it will be useful for all of you. Thank you for your feedback! Don't forget there are some todo's like

  • query optimisation (I am thinking on it)
  • support for private file upload
  • etc.

Enjoy!

nunoveloso’s picture

Project: User Availability » User Badges
Version: » 6.x-1.0
Assigned: nunoveloso » Unassigned
nunoveloso’s picture

Assigned: Unassigned » nunoveloso

Status: Fixed » Closed (fixed)

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