Display Full name instead of Username?
-
Is it possible to show the Full name instead of Username if the user has entered a Full name?
I'm asking because I'm using the Write API to create users and is supplying a made up username in the registration process. Later I'm using the shared sessions plugin to login the user.
However, I want the user to be able to change the screen name since the Username is made up and not very pretty. I have disabled Change username since I can't sync these changes back to my main site where I set the JWT cookie required for shared sessions plugin to work.
Is it possible without changing a lot of lines in the .tpl files?
Thanks!
-
@ludberg I asked a similar question a while back (to display fullname (when available) instead of username on the posts):
https://community.nodebb.org/topic/7058/show-full-name-instead-of-username-if-available/3
Not sure if that is what you are after or not
-
The safest way is probably changing template use of username to first name and last name.
You could also hook into the user build event and change the output data that way, which would change it across the board, but I don't actually know what would happen... for the most part, actions are run against the user slug, so you'd probably be ok.
-
Incase if anyone looking this in 2023.
Turn on the below feature under Settings => Users => Account Settings => Show user's full name as their display name if available