MyBB Community Forums

Full Version: User Titles on staff page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm creating a theme for MyBB 1.8 and can't seem to find a way to show someone's user title so I don't need 50 ranks of "moderator" or "admin".

Any help would be appreciated Smile
try using any of these variables to fetch the usertitle.... any one should work...  Toungue

{$mybb->user['usertitle']}
{$mybb->usergroup['title']}
{$memprofile['title']}
(2015-01-04, 06:57 AM)mmadhankumar Wrote: [ -> ]try using any of these variables to fetch the usertitle.... any one should work...  Toungue


{$mybb->user['usertitle']}
{$mybb->usergroup['title']}
{$memprofile['title']}

None of those work Sad

The first one shows my usertitle for everyone.
The second one shows my usergroup for everyone.
And the third one shows nothing.

Any idea why this isn't working?
That's why these variables are not working: http://php.net/manual/en/language.variables.scope.php

You need to modify the showteam.php file - first select the usertitle in the query: https://github.com/mybb/mybb/blob/featur...am.php#L72 and then add code to display either it if it's filled or the default group title.