Group titles & listing

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 Like

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 Likes

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 Likes

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 Like

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 Likes

Does removing a user from the group remove the title as an option for them?

I am not 100% sure, but I think maybe it does, I recall we did some work here. Can you test it locally?

1 Like