Better Usergroup Legend
#3
(2015-09-24, 11:47 AM)SvePu Wrote: You can continue to use the plugin with a few changes.

Search in ROOT/inc/plugins/viewgroups.php for (#222):
$query = $db->simple_select("usergroups", "gid,title,namestyle", "gid NOT IN ('".str_replace(',', '\',\'', $mybb->settings['viewgroups_groups'])."')");

Replace all with:
$query = $db->simple_select("usergroups", "gid,title,namestyle", "gid NOT IN ('".str_replace(',', '\',\'', $mybb->settings['viewgroups_groups'])."')", array("order_by" => 'title',"order_dir" => 'ASC'));

Save changes and reload index page.
Now the groups will shown in alphabetical ordering.

***************

Also you should fix the displaying of default avatars in group user list

Search in ROOT/inc/plugins/viewgroups.php for (#385):
$user['avatar'] = '';

Replace all with:
$user['avatar'] = '<img src="'.$mybb->settings['useravatar'].'" width="70" height="70" />';

Thanks man, I'll give it a try.
Reply


Messages In This Thread
Better Usergroup Legend - by zang - 2015-09-23, 10:34 PM
RE: Better Usergroup Legend - by SvePu - 2015-09-24, 11:47 AM
RE: Better Usergroup Legend - by zang - 2015-09-25, 12:09 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)