Quote:
Originally Posted by Unshra
Is there anyway to have the roster sort by 'usergroupid' but have the 'title' displayed? When I follow the optional install for sorting by usergroupid it sorts correctly but the group titles are replaced by the groupid number on the roster or is there something I am doing wrong?
|
Easy fix for this:
Change this line of code in showroster.php
Code:
if ($groupsort == '') { $groupsort = 'title'; }
to
Code:
if ($groupsort == '') { $groupsort = 'usergroupid'; }
as described in optional.txt
Then, edit the showroster_header template, and find this text:
Code:
<if condition="($groupsort == 'username')"><td class="tcat" colspan="12">Usernames ($usercount)</td>
<else /><td class="tcat" colspan="12">$user[$groupsort] ($usercount)</td></if>
and replace it with:
Code:
<if condition="($groupsort == 'username')">
<td class="tcat" colspan="12">Usernames ($usercount)</td>
</if>
<if condition="($groupsort == 'usergroupid')">
<td class="tcat" colspan="12">$user[title] ($usercount)</td>
<else />
<td class="tcat" colspan="12">$user[$groupsort] ($usercount)</td>
</if>