MyBB Community Forums

Full Version: Display usertitle only if user has custom usertitle.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
^ exactly what the title says.
I need to put this in the classic postbit, I want staff to have a custom tagline, like my admin knighty has his title set to "lord all knighty"
If you edit the user titles in the AdminCP and just remove the text from the entries.
something like this, perhaps...

<if $post ['usergroup'] == GID then>Staff custom usertitle goes here<else>{$post['usertitle']}</if>

Replace the "GID" with the GID of the Staff group.
^ note: above suggestion requires template conditionals plugin
and all members of that user group will be having a single title
let me word this differently... I don't want anyone but staff to display their custom title.
^ custom user titles is a group based privilege. you can remove it for normal users.

admin panel >> users & groups >> groups >> registered >> Users and Permissions >> Account Management -->
Can use custom user titles? --> remove the tick / uncheck it and save the user group permissions