Display Automatically multiple group badges
-
Hi there, any chance we could go back to displaying multiple group badges. Also automagically displaying them instead of having to manually select them out of user account settings.. I find this not a very good feature. The old way was perfect
Why was this taken out ?
-
We felt like having 10 badges kinda thing really clutters the interface. You should be able to add them back in the template if you're making another kind of theme.
Having to manually select one seems like a bug, it should automatically set the first one you have
-
@psychobunny ok, just allowing one might even be fine. But what code would I add to the template if I wanted at least 2 badge's displayed in my posts.
On a note with the bug, tested just then on recent git pull (few days) and when you add yourself to first initial group it does not show up automatically as badge in your posts. Lavender or Persona
Maybe the account badge setting has stopped this from working. On fixing this bug , could you make it so the latest joined group becomes the new/currently showing assigned badge. A feature that I think would work well with rewards. Then have it adjustable through account settings... -
@Codejet I'm making kinda similar plugin right now.
The plugin's goal is to show only one badge with a "most high priority".
Let's say a user is in three groups:
"Officer" (group's weight: 60)
"Recruiter" (group's weight: 55)
"Regular" (group's weight: 50)Regardless of what was choosen in UserSettings as a badge, only "Officer" badge will be shown, 'cuz that group has higher priority than others.
And the question "Why users are in multiple groups?": Because of ability to manage those groups' membership.
@Codejet said:
what code would I add to the template if I wanted at least 2 badge's displayed in my posts.
You need to make and register a new template helper, for both clientside & serversde, and execute some magic inside.
I can help you via Teamviewer, if you please ^.^ -
@Mega said:
@Codejet I'm making kinda similar plugin right now.
The plugin's goal is to show only one badge with a "most high priority".
Any progress on this plugin?
I am hoping to create a community where it is appropriate to show multiple badges. It would be nice if there was some order to it, such as ranking the badges, only showing a max number of badges (sounds like you want a max of 1, but perhaps it wouldn't be hard to do a few more), etc.
-
@psychobunny I hate to dig up this old topic but I'm interested in allowing users to display up to two badges in their posts as well.
I'm pretty new to NodeBB and am not sure where to start make changes. Could you point me in the right direction?
Thanks!