Let users custom their title


(zh99998) #1

in admin panel, i can modify user title as any string.
but in user panel, they only can use pre-defined Badge as title.
what can i do if i want to open custom title to users ?


(Jeff Atwood) #2

There is no way to do this. Some sites treat “full name” as a title and change it all the time to “funny” values.


(Joshua Rosenfeld) #3

@codinghorror: Is there a particular reason for this? Could there be a site setting to enable arbitrary titles for users, so real names can remain, well, real?


(Daniela) #4

As an admin you can modify title for your users if you want. But you have to do it manually for each user.

I use this option only for super-devoted users.


(JBert) #5

Just a friendly warning to @zh99998 before encouraging users to change it: the “full name” field is also used for email notifications so you might get emails from e.g. “the pope”.


(Joshua Rosenfeld) #6

Only if you set email to use real name. You can just as easily have username appear in the from: field via a simple site setting.


(Alessio Fattorini) #7

I like it, possibility to customize the title could be a good award


(Joshua Rosenfeld) #8

That’s generally what we do as well. The admins all have “Team Radient” as their title, and the mods have support something or other as theirs. We then give our very devoted users or those who have done something above and beyond an honorary title. We have titles like “Master Translator”, “Stonehearth Architect”, and “Stonehearth Scribe”.


(Allen - Watchman Monitoring) #9

There is a partial solution this… you can let them pick from a list of pre-approved Titles.

Make Badges which have the checkbox “can be used as title” and then your users can pick from the badges they have earned.


(Philip Battin) #10

I also think this could be a great feature in the future. It could even be linked to a specific user profile field. In our case we would love the title to be used for job title - since our discourse is for people in the design industry and it would be great to show what their job titles are and where they work


(Jeff Atwood) #11

This is already possible with badges, if the badge confers a title, it is available to the user.

On other sites, simply displaying full names (see how yours says “Common mc commonpawn”) gives users a de-facto ‘title’ they can edit as they see fit by editing their full name. A number of sites do this and engage in this practice of wacky full names.


(Philip Battin) #12

Yes, but we can’t create a badge for every job title out there :slight_smile: e.g. “Front-end dev @ Discourse” “UX Designer @ Google”, etc.

We’re currently thinking about solving it by changing the name of the full name field to job title - however, we would also love to keep the full name field reserved for full names :wink:


Plugin docs or tutorials on hooks?
(Rafael dos Santos Silva) #13

Custom User Field + plugin to change post template (widget now) + some css would be needed for that.


(Kane York) #14

As it stands, custom titles serve a role as staff-vetted strings to put next to your name - users can’t falsify them (but they can remove them, usually).

The “full name” does well for having fun :slight_smile: