MyBB Community Forums

Full Version: color group in showthread.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use the following code to display the groups showthread.php {$usergroup['title']}

How can I earn and color?
I didn't get it, you want to change the colour and style of some groups username right? if you want to do that, just go admin cp -> user & groups -> groups -> select the group you want to change -> edit Username Style
can you elaborate your requirement ..
Think you're looking for this - http://community.mybb.com/thread-134747.html
Group: {$usergroup['title']}

Color?!??!?!?!
"Yes" - that would be the answer as detailed as your "elaborated" question.

But if I understand correctly, you want to colorize $usergroup['title'] variable. Wherever it is defined (definitely not in the default showthread.php), wrap it with the format_name() function: https://github.com/mybb/mybb/blob/featur....php#L2993