MyBB Community Forums

Full Version: Display usergroup as name not number.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to display a users usergroup as the NAME of the usergroup not a number?

I've added in several different 'variables' to try and solve this, the closest I have come to is:
{$post['usergroup']}

Which displays the groups id number but not the group name, help is appreciated. If I have to edit core files to achieve this I am happy to do so.
Download this plugin ignore the language and use this template code anywhere..
{$grupa}{$namegroup['groupname']}
What is the above file/plugin doing?

This doesn't really teach me how to do it myself, that also seems like a lot of code to achieve a small function. What is the rest of the code doing?

Smile
You can use {$usergroup['title']} for it in your postbit template without any plugin.
Thank you, that worked! I could have swore I already tried that variable but it must have been another one that was similar but it also printed the gID.

This prints the name though, so thank you! Smile
you use gid instead title.

you must allways use correct var to show right values.

Anyway mthat is for current user only Wink