# Define additional badge types

**URL:** https://meta.discourse.org/t/define-additional-badge-types/31781
**Category:** Feature
**Tags:** badges
**Created:** [5. August 2015 um 12:21 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781 "2015-08-05T12:21:14Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [5. August 2015 um 12:21 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/1 "2015-08-05T12:21:14Z")

</div>

Continuing the discussion from [Badges feedback](https://meta.discourse.org/t/badges-feedback/13789/11):

> [@radq](#):
>
> Should admins be able to define additional badge types other than gold/silver/bronze? I’m guessing the answer is yes, otherwise it wouldn’t make sense to have a badge\_types table instead of just using an enum. If yes, do we need admin UI for editing badge types at this time, or would that be out of scope?

Let me resurrect this thread, I need additional types/colours like Platinum, Diamond, ecc..  
Groups are not enough for my purpose. Is there any chance?

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [5. August 2015 um 13:07 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/2 "2015-08-05T13:07:56Z")

</div>

I agree this would be helpful for us.

We have a series of “levels” of seniority that is \> 3. We had to use custom images (with numbers in our case) because the 3-color system wouldn’t work.

IIRC it would also help for sorting within badge groups.

---

<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: [5. August 2015 um 14:17 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/3 "2015-08-05T14:17:27Z")

</div>

Badges can be put into “other” and different FontAwesome icons can be used.  
These will be in  
`<i class="fa fa-iconname">`  
which can then be colored and otherwise styled by CSS rules.

Or do you mean something else?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6. August 2015 um 00:56 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/4 "2015-08-06T00:56:51Z")

</div>

I think this is about “priority” … IF we had a platinum badge AND you had 10 golds and 1 platinum, we would always show platinum on the user card.

I don’t know, adding more levels, from a code perspective is not a huge change, but I am just not convinced it’s quite needed, @alefattorini can you link me to some specific users, the badges they have, and why you think more levels are needed.

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [6. August 2015 um 07:18 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/6 "2015-08-06T07:18:41Z")

</div>

I understood the “priority” affair 😄  
In my case I’m building more levels of badges and when you achieved all badges of a level then badge for the next level is assigned, For example “Getting Started Level” bronze type = “Achieved all Getting Started Level badges”  
So, I need to have a “getting started or rock or whatever” under bronze type and other levels over the gold one with the goal of distinguishing priority and colours

> **[NethServer Community](https://community.nethserver.org/badges)**
>
> Multi-node application platform for your Hybrid Cloud

Why such level? Because I need a meritocracy system more customizable and granular then TL, with more level and badges to achieve and provide people with new activities to do.  
Also, I need to see how many members are on “bronze” level or “silver” level.. etc..  
Is it more clear now?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6. August 2015 um 07:26 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/7 "2015-08-06T07:26:39Z")

</div>

Can you spell out a particular use case here.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [6. August 2015 um 15:34 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/8 "2015-08-06T15:34:02Z")

</div>

@sam I think this is about both priority and ordering on the badge page.

I won’t speak for @alefattorini’s use cases, but here’s a real one we’re dealing with as we work up a new program for our project’s developers. In our badge [listing page](https://talk.openmrs.org/badges) under the “Developers” category, we have several stages our project’s devs will pass through. We’d like to structure them so that we have both “stage” badges and task badges in that group, but right now there’s no way to intermingle certain task badges between the various “stages” (the green ones) so it’s obvious what the progression is that one has to follow to get to the next “stage”.

In other words, first I earn “GitHub User” then “/dev/null”. Then I work on “Smart Developer” and another TBD badge, then I earn “/dev/1”, and so on. Because badges are sorted by level (bronze/silver/gold) then alphabetically, it’s not possible to carry this out over all our 6 stages.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6. August 2015 um 23:49 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/9 "2015-08-06T23:49:35Z")

</div>

I am much more sympathetic to a system that allows you to control both grouping and ordering of badges …

EG. all the TL badges are same family, so **only** display one of them on card. Also have a priority on each badge (optionally) so if TL4 and TL3 are available and both are gold, pick TL4.

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [7. August 2015 um 08:34 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/10 "2015-08-07T08:34:18Z")

</div>

I’m bulding a badge system more customizable and granular then TL ([see this](https://meta.discourse.org/t/are-tl3-and-tl2-requirements-too-different/31353)) like this

- getting started level
- bad1
- bad2
- bronze level
- Bronze level = Achieved all started level badges
- bad2
- bad3
- silver level
- Sliver level badge = Achieved all bronzelevel badges
- bad2
- bad3
- gold level
- Gold level badge = Achieved all silver level badges
- bad1
- bad2
- diamond level
- bad1
- bad2

With the badges (achieved all) I can see how many members are in different levels, and how much my community is growing..  
If someone is a gold member means he have achieved all gettingstarted/silver/gold badges  
The problem is that concerning priority and colour, getting started is equal to bronze and gold equal to diamond..  
Does it make sense now?

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [17. August 2015 um 10:45 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/11 "2015-08-17T10:45:35Z")

</div>

Any insight on this? @sam @downey

---

<div class="post-metadata">

### Author: ![twbartlett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twbartlett/32/115831_2.png) [@twbartlett](https://meta.discourse.org/u/twbartlett)
#### Post date: [16. September 2015 um 09:55 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/12 "2015-09-16T09:55:22Z")

</div>

Don’t need additional badge types, but being able to choose the colour of the badge type would be helpful.

Presumably choosing badge type “Gold” does a lot more than just make it yellow? So we’re unable to change the type (and therefore colour) of the system badges (Trust Levels)?

Can colour changes only be achieved through CSS for now?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [16. September 2015 um 11:52 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/13 "2015-09-16T11:52:39Z")

</div>

You can choose any image you want for the badge, does that not work for you ?

---

<div class="post-metadata">

### Author: ![twbartlett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twbartlett/32/115831_2.png) [@twbartlett](https://meta.discourse.org/u/twbartlett)
#### Post date: [16. September 2015 um 12:02 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/14 "2015-09-16T12:02:46Z")

</div>

Not at the moment. The scenario is we have the 4 trust level, but only 3 colours, so it might seem that 2 of them are “equal”

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [16. September 2015 um 12:38 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/15 "2015-09-16T12:38:34Z")

</div>

> [@sam](#):
>
> any image you want for the badge, does that not work for you ?

It doesn’t, because of this CSS bug:

> [@User card badge size is too big for images](https://meta.discourse.org/t/user-card-badge-size-is-too-big-for-images/27125):
>
> When a badge uses an image vs a Font Awesome icon, it scales too large on the user card: [image] The same (scaling too large) happens for the User Card Badge setting on the user preference page:

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [16. September 2015 um 12:40 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/16 "2015-09-16T12:40:48Z")

</div>

That can easily be patched in your instance with one css rule you know …

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [16. September 2015 um 12:44 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/17 "2015-09-16T12:44:43Z")

</div>

Yes of course … but being in healthcare we like to try promote solving the underlying disease rather than only put bandages on things. 🚑

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [16. September 2015 um 12:50 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/18 "2015-09-16T12:50:10Z")

</div>

Its a very simple PR you know 🙂

---

<div class="post-metadata">

### Author: ![twbartlett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twbartlett/32/115831_2.png) [@twbartlett](https://meta.discourse.org/u/twbartlett)
#### Post date: [16. September 2015 um 13:02 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/19 "2015-09-16T13:02:52Z")

</div>

Yep @sam that’s why I mentioned CSS in my previous response.

My original (closed) topic was asking why we were unable to change the card type drop down on system cards?

---

<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. Dezember 2025 um 11:36 UTC](https://meta.discourse.org/t/define-additional-badge-types/31781/20 "2025-12-04T11:36:53Z")

</div>


