Group titles & listing

AI-generated summary

The discussion revolves around group titles and their functionality in Discourse, particularly how they interact with badges. NomNuggetNom notes that groups lack a feature to automatically assign titles like badges do, and codinghorror confirms the group title setting is enabled but may not work as intended due to refactoring. sam explains that only badges currently allow selectable titles, but a recent fix commit enables group titles to be selectable and resolves UI issues. sam also clarifies that a default group title can be set, but it only applies if members don’t already have a title (e.g., from a badge). erlend_sh adds that users may not get automatic titles due to conflicts between old badge-based titles and new group-based ones. Mittineague shares a real-world example of users valuing their custom titles from legacy systems. Heather_Dudley asks if removing a user from a group removes their title, and sam isn’t certain but suggests it might.

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.

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

Yup. Is that supposed to add a title?

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.

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.

1 curtida

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>

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

3 curtidas

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.

7 curtidas

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?

yeah … that :slight_smile:

Cheers. Just making sure :smile:

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.

1 curtida

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.

4 curtidas

Remover um usuário do grupo também remove o título como uma opção para ele?

Não tenho 100% de certeza, mas acho que talvez funcione. Lembro que fizemos algum trabalho aqui. Você pode testar localmente?

1 curtida