# Admin badge on posts & moderator group on profile

**URL:** https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299
**Category:** Support
**Created:** [3월 19, 2016, 2:08오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299 "2016-03-19T14:08:40Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![V0rTeX](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@V0rTeX](https://meta.discourse.org/u/V0rTeX)
#### Post date: [3월 19, 2016, 2:08오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/1 "2016-03-19T14:08:40Z")

</div>

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

 ![](https://global.discourse-cdn.com/meta/original/3X/d/3/d3f97492ffba538a2530640973cf5fe8ebf5a787.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/9/3/939b56a0c51da57de63ed3ec055c959f610d4299.png)

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.

 ![](https://global.discourse-cdn.com/meta/original/3X/d/1/d117f151f92e352d89c6f651206900f138f38bef.png)  
Isn’t it supposed to be hidden?

I’m not really sure what caused it. Can you help me? Thanks in advance!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [3월 19, 2016, 2:45오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/2 "2016-03-19T14:45:18Z")

</div>

Item 1, is intentional, so is item 2, so neither of these seem to be bugs.

For handling item 1, you did it right, you are supposed to grant Moderator status too to the Admin for the shield to show up.

For item 2, you can hide it using CSS.

```plaintext
a.group-link[href*=moderators] {
  display: none;
}

```

Just realize if there are multiple groups assigned to the user, it may be awkward.

---

<div class="post-metadata">

### Author: ![V0rTeX](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@V0rTeX](https://meta.discourse.org/u/V0rTeX)
#### Post date: [3월 19, 2016, 3:02오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/3 "2016-03-19T15:02:53Z")

</div>

1. 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.

2. I tried this before, but it doesn’t hides “group”.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [3월 19, 2016, 3:05오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/4 "2016-03-19T15:05:19Z")

</div>

> [@V0rTeX](#):
>
> 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.

No, it isn’t. It was altered to behave this way intentionally, it is expected behavior at this point.

> [@V0rTeX](#):
>
> I tried this before, but it doesn’t hides “group”.

_shrug_, works for me… 😕 (or are you wanting to hide the word group too?)

---

<div class="post-metadata">

### Author: ![V0rTeX](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@V0rTeX](https://meta.discourse.org/u/V0rTeX)
#### Post date: [3월 19, 2016, 3:07오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/5 "2016-03-19T15:07:35Z")

</div>

> [@cpradio](#):
>
> (or are you wanting to hide the word group too?)

Yes. That’s what i meant, but only for “moderators” because i have two other groups which i want to appear.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [3월 19, 2016, 3:16오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/6 "2016-03-19T15:16:37Z")

</div>

Okay, try this

```plaintext
.about .secondary dl dt:last-of-type { display: none !important; }
.about .secondary dl dd.groups { display: none !important; }

```

---

<div class="post-metadata">

### Author: ![V0rTeX](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@V0rTeX](https://meta.discourse.org/u/V0rTeX)
#### Post date: [3월 19, 2016, 3:30오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/7 "2016-03-19T15:30:06Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [3월 19, 2016, 4:57오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/8 "2016-03-19T16:57:14Z")

</div>

Then you will want to go back to this one.

```plaintext
a.group-link[href*=moderators] {
  display: none !important;
}

```

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.

---

<div class="post-metadata">

### Author: ![V0rTeX](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@V0rTeX](https://meta.discourse.org/u/V0rTeX)
#### Post date: [3월 19, 2016, 5:11오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/9 "2016-03-19T17:11:38Z")

</div>

I will just keep them hidden then.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [3월 19, 2016, 8:18오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/10 "2016-03-19T20:18:36Z")

</div>

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

```plaintext
{{#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}}

```

and models/user.js.es6 has

```plaintext
@computed("groups.@each")
displayGroups() {
  const groups = this.get('groups');
  const filtered = groups.filter(group => {
    return !group.automatic || group.name === "moderators";
  });
  return filtered.length === 0 ? null : filtered;
},

```

All of the 9 default groups are “automatic true”, so moderators it is.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:45오후 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/11 "2024-06-08T12:45:50Z")

</div>

이 주제는 3002일 후 자동으로 닫혔습니다. 더 이상 새로운 답변을 작성할 수 없습니다.
