Jump to the post that solved this thread.
Solved: 6 Years, 3 Months ago Display styles for additional groups in ACP
#1
Solved: 6 Years, 3 Months ago
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]
Reply
#2
Solved: 6 Years, 3 Months ago
Your choices are either a plugin or changing core code.
Reply
#3
Solved: 6 Years, 3 Months ago
(2015-06-16, 06:25 PM)laie_techie Wrote: Your choices are either a plugin or changing core code.

My bet is changing core code, but how?
Reply
#4
Solved: 6 Years, 3 Months ago
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.
Reply
#5
Solved: 6 Years, 3 Months ago
(2015-06-16, 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?
Reply
#6
Solved: 6 Years, 3 Months ago
Change https://github.com/mybb/mybb/blob/featur....php#L3514 to:
$groups_list .= $comma.format_name(htmlspecialchars_uni($usergroups[$group]['title']), $usergroups[$group]['gid']);
Reply
#7
Solved: 6 Years, 3 Months ago
(2015-06-22, 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!
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)