MyBB Community Forums

Full Version: Show primary usergroup on banned message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My forum setup has 3 types of banned groups for 3 different purposes, but all display the same banned message.

I'm trying to get the primary user group on that ban notice so the user can understand what type of restriction they have.

I went in to the usercp templates and copied the line for primary user group over to the banned message template but all I get is empty values and all that is displayed is the ":" even though on the banned account I can still access the userCP and see my primary user group.

How may I get said user group to display on the banned warning?


<div class="red_alert">
<strong>{$lang->banned_warning}</strong>
{$lang->banned_warning2}: {$reason}<br />
{$lang->banned_warning3}: {$banlift}<br />
{$lang->primary_usergroup}: {$usergroup}<br />

</div>
<br />
Thanks!
you can try using {$mybb->user['usergroup']}
Thanks for your suggestion however the output is the group ID and not the name
^ oh! you can try using {$mybb->usergroup['title']}
PERFECT! Thanks!

I need to learn this stuff...

What exactly is the difference between {$mybb->usergroup['title']} and {$usergroup}?
^ {$usergroup} is available for specific templates only.