Group badges not showing
-
Despite badges being set to "Display Badge", these never seem to appear. Any ideas ? I've managed to get one or two to display, but none of the others I created and assigned to users appear. For example
And
Neither show.
-
@phenomlab said in Group badges not showing:
nodebb-plugin-poll
Looks like its this one. https://github.com/NodeBB/nodebb-plugin-poll/blob/master/plugin.json#L42 Try disabling poll plugin and try again.
-
The badges shown on a user are selected on their profile page under "Group Title"
-
@phenomlab you can select multiple by holding Ctrl/Cmd while clicking. It's just the built-in browser multiselect element.
-
@phenomlab it works here. Maybe it's a limitation of your theme. What theme are you using?
-
@pitaj It's the Persona theme
However, what IS odd is below
See how the first "group" is displayed with an
<a href></a>
but the one that should immediately follow it is empty ?On checking after multiple group badge select using CTRL, saving, then reloading the form, only one is being displayed
-
@baris said in Group badges not showing:
Is this setting turned on in the ACP?
Certainly is
@baris said in Group badges not showing:
Also what is the value of groupTitle for the user having this problem?
Not sure where this is being set (database ?) but this is what I see for the ADMINISTRATORS group for example
It'll display any one of them, but only one, and not more
-
@phenomlab does it work with only admins? Does it work with Founders + a group besides admins?
-
So you select multiple groups, save your profile, then reload, and it only has one group selected?
-
Nope, but from what you posted it seems there is an issue with saving the users selection into the database. When you select 2 groups and hit save it should show
["group1", "group2"]
in the `groupTitle field.Works fine on this forum as you can see from my group badges.
You would have to add some logging to see why admin selection is not saved maybe add some logging here to check the values https://github.com/NodeBB/NodeBB/blob/master/src/user/profile.js#L223
-
@baris I found this earlier
https://github.com/NodeBB/NodeBB/issues/9496#issue-861621005Is this related ? Seems like my exact issue and refined for the next release ?
Thanks
-
Can you try disabling various plugins?