Hello. I’m using Discourse/w tests-passed for my forum. I have two bugs with my installation, which kinda annoy me.
1 . Admin badge is not visible on posts
I have a temporary workaround. I granted myself Moderator status and changed “This user is a moderator” text to “This user is part of the staff” and it appears, but here comes the other issue:
2 . Moderator group appears on profile.
Isn’t it supposed to be hidden?
I’m not really sure what caused it. Can you help me? Thanks in advance!
That is wrong. When i migrated the forum to Discourse - It used to be a phpBB3 forum i had a badge saying “This user is administrator”. I wasn’t on the moderators group. After some updates it disappeared from posts, but it still shows on my profile as seen on the picture.
I tried this before, but it doesn’t hides “group”.
This only half solves my issue, since it hides these two groups i mentioned, which i want to appear not just the moderator one. I’m sorry for being a pain.
Again, it is going to leave the comma, but there isn’t anything I can do about that.
I’m a bit confused by what you are trying to do though, as earlier you wanted to remove the word groups, and now it seems you need it since there will be other groups listed…
Maybe provide a screenshot of what it looks like now and another of what you want it to look like.
If I’m understanding, the problem isn’t that a Group is being shown, but which group is being shown.
eg. as an Admin you want that to be shown as the group rather than Moderator
I know the “double shield” thing has been fixed, and IMHO the Badges that display on the User Cards are well chosen from the larger set of Badges.
But I don’t know how it is decided which Group gets displayed on a Profile.
Maybe by Id ?
I need to go out for a while but I’ll look into it a bit ASAP
EDIT
I had a look around and the decision looks fairly hard-coded in AFAICT
templates/user/user.hbs has
{{#if model.displayGroups}}
<dt>{{i18n 'groups.title' count=model.displayGroups.length}}</dt>
<dd class='groups'>
{{#each group in model.displayGroups}}
<span>{{#link-to 'group' group class="group-link"}}{{group.name}}{{/link-to}}</span>
{{/each}}
</dd>
{{/if}}