Group titles & listing


(NomNuggetNom ) #1

Currently we are half way in between groups and badges on our forum, as both seem to be missing something the other isn’t.

One of the things groups are missing is the ability to use the group name as a title. Clicking this title would lead to the group member page.

The second is a place where you can view all the groups, just like the badges screen.


How to automatically set the user title for certain groups
(Jeff Atwood) #2

Did you set the group as primary, under user, admin?


(NomNuggetNom ) #3

Yup. Is that supposed to add a title?


(Jeff Atwood) #4

It was always intended to, but I am not sure if it survived refactoring… I believe @sam was the last person to work on this area, but that was a while ago.


(Sam Saffron) #5

not sure, only way to get a selectable title is with a badge.

you an always set a title to “whatever” via the user admin page, so you can already do that.


(NomNuggetNom ) #6

Definitely no title being added automatically.

@sam Will that link to the user’s group? It seems to on here:

<a href="/groups/discourse" class="user-group">co-founder</a>

(Sam Saffron) #7

if you set a title, any title, it will always link to primary group.


(Sam Saffron) #8

I just hit this again and decided to clean it up a bit:

https://github.com/discourse/discourse/commit/75890aed2631ed1858d8d6c756b81d7edb735542

Additionally I fixed some long standing bugs that made that UI painful

https://github.com/discourse/discourse/commit/e143eb595fccf39ddcac3c622eb09249d93aa719

and incredibly annoying

https://github.com/discourse/discourse/commit/eed8ddbb5cd7c9205971b84c2e936605406e95f5

You can now select that a group is a primary group, when this is selected we will set the group as a primary group for all the users in the group.

You can also assign a default title to a group, which means that all members of the group get that title unless it is overridden.


Improving discovery of the badge title feature
How to automatically set the user title for certain groups
Improving discovery of the badge title feature
Let a badge assign a default title
(Erlend Sogge Heggen) #9

You mean the title will be automatically selected for them and shown on their profile? If they already have a title does it stay the same then?


(Sam Saffron) #10

yeah … that :slight_smile:


(Erlend Sogge Heggen) #11

Cheers. Just making sure :smile:


(Mittineague) #12

Yes, some members hold their titles dear.

When SitePoint migrated from vB many members had existing custom titles.
One such member asked about titles at Discourse.

When explained that he had a badge that he could use, but that if he tried it his existing custom title might not remain as an option should he want to revert to it (though if he petitioned Staff I’m sure one of them would have changed it for him) he in no way wanted to risk it.


(Erlend Sogge Heggen) #13

Most of my users did not get their title automatically applied. I’m 99% sure it’s due to user-error because I granted them this new group-based title while most of them still had the old badge-based title, therefore the override did not kick in.

To solve this, I simply

  1. unchecked “Automatically set as primary group” and removed “Contributor” as default title for good measure
  2. Saved.
  3. Reverted my changes in #1
  4. Saved again.

Titles are now appear to be appropriately assigned to all group members.