MyBB Community Forums

Full Version: Display styles for additional groups in ACP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys, is there a way to display styles for additional groups without using a plugin?

How it is:
[Image: 1815d8eb48532bfb344283bb714895a3.png]

How I'd like it to be:
[Image: 2bc16260ad0c904c348f834ae732dbca.png]
Your choices are either a plugin or changing core code.
(06-16-2015, 06:25 PM)laie_techie Wrote: [ -> ]Your choices are either a plugin or changing core code.

My bet is changing core code, but how?
You'll use the format_name function. The first parameter will be the name of the group. The second and third parameter should be the gid of the usergroup.
(06-16-2015, 07:17 PM)dragonexpert Wrote: [ -> ]You'll use the format_name function.  The first parameter will be the name of the group. The second and third parameter should be the gid of the usergroup.

Sorry for late response, may you explain me better how to edit users.php?
Change https://github.com/mybb/mybb/blob/featur....php#L3514 to:
$groups_list .= $comma.format_name(htmlspecialchars_uni($usergroups[$group]['title']), $usergroups[$group]['gid']);
(06-22-2015, 11:36 PM)Destroy666 Wrote: [ -> ]Change https://github.com/mybb/mybb/blob/featur....php#L3514 to:
$groups_list .= $comma.format_name(htmlspecialchars_uni($usergroups[$group]['title']), $usergroups[$group]['gid']);

Solved, thank you! Smile
Thanks to @dragonexpert too!