# Show a user's reputation/user level next to their name

**URL:** https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459
**Category:** Feature
**Created:** [30 Maggio 2015, 8:05pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459 "2015-05-30T20:05:22Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![JJames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jjames/32/106650_2.png) [@JJames](https://meta.discourse.org/u/JJames)
#### Post date: [30 Maggio 2015, 8:05pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/1 "2015-05-30T20:05:22Z")

</div>

First of all, I’ve been using discourse for about a couple of years now (since the pre 1.0 days). Great product and our community loves it.

My only gripe with it is that it doesn’t show any kind of statistics/reputation next to the person’s name. Right now it appears that everyone is at the same level; there’s no way to tell apart between the guy who’s been consistently posting for two years and a guy who just signed up yesterday.

I know that @codinghorror doesn’t want to go the typical forum route where they list “meaningless” stats such as number of posts created. While I understand that argument, I do want to show _something_ next to the username so that others know who they’re dealing with. Perhaps display a user level, some kind of badge, etc.

I saw previous discussions relating to this, but they all seemed to have died down in 2013/2014.

Is something like this in the pipeline?

---

<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: [30 Maggio 2015, 8:30pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/2 "2015-05-30T20:30:42Z")

</div>

> [@JJames](#):
>
> Perhaps display a user level, some kind of badge, etc.

Something like this when you click on the avatar or name?

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

---

<div class="post-metadata">

### Author: ![JJames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jjames/32/106650_2.png) [@JJames](https://meta.discourse.org/u/JJames)
#### Post date: [30 Maggio 2015, 11:53pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/3 "2015-05-30T23:53:26Z")

</div>

Two problems with this approach:

1. It’s not easily visible. I want to look at a thread and quickly see who’s who without clicking on the user’s name.

It also took me sometime to realize that you can actually click on the username. I bet most users don’t bother clicking unless they need to contact the user for something.

1. User levels (i.e., Member) as a metric are too coarse. I have users that are in Level 0, 1 and 2. Most of the active users are at Level 2. It doesn’t tell me anything when most of the active threads are being discussed by Level 2 people.

I think displaying something right next to the user’s avatar is the ideal solution. When I browse other forums, the user’s reputation/# of posts/custom label is the first thing that catches my eye when I try to figure out who the user is.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [31 Maggio 2015, 12:39am UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/4 "2015-05-31T00:39:42Z")

</div>

> [@JJames](#):
>
> Most of the active users are at Level 2.

I take it your forum has been online for somewhere between 20 and 45 days, 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: [31 Maggio 2015, 12:45am UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/5 "2015-05-31T00:45:28Z")

</div>

> [@JJames](#):
>
> the user’s reputation/# of posts/custom label is the first thing that catches my eye

IMHO that’s probably the best reason for having the User Card vs. “always there”  
If one is not interested in that information it is nothing but distracting visual noise and clutter.  
If someone is interested, a simple click is all it takes.

That said, the post.hbs template has a plugin-outlet  
`{{plugin-outlet "poster-avatar-bottom"}}`  
which is located beneath the avatar of each post

![](https://global.discourse-cdn.com/meta/original/3X/2/a/2a8d363f966105ceaf1e0708462178bbdebc99d5.png)

So using a plugin to display stuff there should be easy enough if you really wanted it.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [31 Maggio 2015, 6:10am UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/6 "2015-05-31T06:10:41Z")

</div>

You could do something with badges and auto assigned titles. But probably this is plugin territory.

Can you mock up what you have in mind visually?

---

<div class="post-metadata">

### Author: ![JJames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jjames/32/106650_2.png) [@JJames](https://meta.discourse.org/u/JJames)
#### Post date: [31 Maggio 2015, 1:37pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/7 "2015-05-31T13:37:54Z")

</div>

> [@riking](#):
>
> I take it your forum has been online for somewhere between 20 and 45 days, then?

No, this new forum is live for about 7-8 months. I’m the only guy who’s at Level 3.

I do have some people that consistently start topics and add lots of value to the forum. So, perhaps I need to play with the settings to make sure they’re being rewarded/promoted properly.

---

<div class="post-metadata">

### Author: ![AdamCapriola](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adamcapriola/32/5192_2.png) [@AdamCapriola](https://meta.discourse.org/u/AdamCapriola)
#### Post date: [31 Maggio 2015, 7:48pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/8 "2015-05-31T19:48:09Z")

</div>

Sort of related: I’d still love to see a reputation system (trust levels mainly convey how long someone’s been around and not whether they’re a positive contributor):

[https://meta.discourse.org/t/ability-to-block-or-mute-another-user/6001/26?u=adamcapriola](https://meta.discourse.org/t/ability-to-block-or-mute-another-user/6001/26)

I’ve been meaning to come up with a full mockup/schematic … will try to draw something up in June. ✏

---

<div class="post-metadata">

### Author: ![purldator](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@purldator](https://meta.discourse.org/u/purldator)
#### Post date: [1 Giugno 2015, 8:23am UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/9 "2015-06-01T08:23:57Z")

</div>

Isn’t there already a user CP option to change one’s title from ‘won’ badges?

![](https://global.discourse-cdn.com/meta/original/3X/5/5/55c7d42be7d4b0724f3499de0ad875c1e7a652a9.png) ![](https://global.discourse-cdn.com/meta/original/3X/b/0/b0478d54445671e62f36ddede1da4c6d3d3bd01c.png)

---

<div class="post-metadata">

### Author: ![JJames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jjames/32/106650_2.png) [@JJames](https://meta.discourse.org/u/JJames)
#### Post date: [25 Novembre 2015, 5:31am UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/11 "2015-11-25T05:31:28Z")

</div>

It’s been some time since I opened this thread, so I wanted to check if theres a way to attach certain statistics next to the username? As in how many threads they started, when they joined, etc.

Something like this would be ideal.

![](https://global.discourse-cdn.com/meta/original/3X/8/4/8444d531376747b42d563653277b3d939ce9dd89.png)

Is this something that can be done via a plugin? Or does it require a special hack?

I want everyone to know who’s new on the forum and who’s been heavily participating, etc.

---

<div class="post-metadata">

### Author: ![Rainbowresidue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rainbowresidue/32/37959_2.png) [@Rainbowresidue](https://meta.discourse.org/u/Rainbowresidue)
#### Post date: [7 Luglio 2016, 7:57am UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/12 "2016-07-07T07:57:33Z")

</div>

I’m interested in getting the same thing for our forum under everyone’s avatar, many folks have asked for it.

Is there a working plugin?  
Can someone please share?

---

<div class="post-metadata">

### Author: ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)
#### Post date: [7 Luglio 2016, 2:03pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/13 "2016-07-07T14:03:22Z")

</div>

@Rainbowresidue

> [@User Reputation Badge Plugin](https://meta.discourse.org/t/user-reputation-badge-plugin/45282):
>
> Finally ready with the User Reputation Badge plugin, as [discussed here](https://meta.discourse.org/t/user-reputation-next-to-username-junior-member-senior-member-etc/45101). What this badge will do is allow users to have a small custom badge/text next to their name (Junior Member, Senior Member, etc). Something like this: As shown above, the user (with trust level 4) has a badge/title next to their name. This can be styled as you wish. This is accomplished by creating five groups and syncing them with the automatic trust level groups. Once users are put into custom groups based on th…

---

<div class="post-metadata">

### Author: ![Rainbowresidue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rainbowresidue/32/37959_2.png) [@Rainbowresidue](https://meta.discourse.org/u/Rainbowresidue)
#### Post date: [7 Luglio 2016, 2:22pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/14 "2016-07-07T14:22:53Z")

</div>

Thanks so much, but I’m not looking for a plugin for a badge.

I’m looking for a plugin for something like this (to go under the avatar.), more like user stats.

![](https://global.discourse-cdn.com/meta/original/3X/f/b/fb69205346eac5883bb29d625d534ed724b34276.png)

---

<div class="post-metadata">

### Author: ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)
#### Post date: [7 Luglio 2016, 2:44pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/15 "2016-07-07T14:44:53Z")

</div>

I will be tackling that as it is a feature I want as well, but don’t have a timeline as of now.

---

<div class="post-metadata">

### Author: ![Rainbowresidue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rainbowresidue/32/37959_2.png) [@Rainbowresidue](https://meta.discourse.org/u/Rainbowresidue)
#### Post date: [7 Luglio 2016, 3:17pm UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/16 "2016-07-07T15:17:34Z")

</div>

Great, if you figure it out, I’d love to try it out for you.  
😃

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [22 Agosto 2016, 12:41am UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/17 "2016-08-22T00:41:19Z")

</div>

Hello, I just wanted to share my findings. Its not plugin ready, just quick hack to core files (sorry). But as inspiration for someone it may be handy…

## Add User Post Count in post template and user-card

Use as example. It can be adjusted to display various user stats (post count, user\_last\_seen\_at, etc.) in user-card and in post stream.

**app/assets/javascripts/discourse/templates/user-card.hbs**

`{{user-reputation post_count=user.post_count}}`

**/assets/javascripts/discourse/components/user-reputation.js.es6**

```
    export default Ember.Component.extend({
      tagName: 'div',
      classNames: ['user-reputation-user-card'],

      render: function(buffer) {
        
        const post_count = this.get('post_count');
        const contents = '<b>' + post_count + '</b>'; 
        
        buffer.push(contents);
      }
    });

```

**/assets/javascripts/discourse/initializers/user-reputation-init.js.es6**

```
    import { withPluginApi } from 'discourse/lib/plugin-api';
    import { includeAttributes } from 'discourse/lib/transform-post';
    import { h } from 'virtual-dom';

    export default {
      
      name: 'user-reputation-init',
      
      initialize(){
        
        withPluginApi('0.1', api => {
          api.includePostAttributes('user_last_seen_at'); // (automatically added to transform-post.js.es6)
          
          api.decorateWidget('poster-name:after', function(helper) {
            const attrs = helper.attrs;
            const user_custom_fields = attrs.user_title;
            const post_count = attrs.post_count;
            return [h('span', 'post_count ' + post_count)];
              
          });
        })
      }
      
    }

```

**app/serializers/user\_serializer.rb**

```
                  :user_fields,
                  :topic_post_count,
                  :pending_count,
    + :post_count,
                  :profile_view_count

```

**app/serializers/post\_serializer.rb**

```
                  :via_email,
                  :is_auto_generated,
                  :action_code,
                  :action_code_who
    + :post_count,

    + def post_count 
    + object.try(:user).try(:post_count)
    + #object.try(:user).try(:user_stat).try(:post_count)
    + end

```

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [4 Dicembre 2025, 11:35am UTC](https://meta.discourse.org/t/show-a-users-reputation-user-level-next-to-their-name/29459/18 "2025-12-04T11:35:57Z")

</div>


