• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Staff members on notable members

j0e

New member
#1
Hey guys, trying to make edits to the original Staff members tab. Would it be possible to order usergroups by group ID? Also could I display a usergroup name rather than number on the right of the name?

My code:

Member.php
Code:
if ($type == 'staff')
        {      
                    $notableCriteria['user_group_id'] = array(3,4,8);
        }

        $typeMap = array(
            'messages' => 'message_count',
            'likes' => 'like_count',
            'points' => 'trophy_points',
            'Staff' => '',
            'tiers' => ''
        );
Member_notable (Last <li>)
Code:
<ul class="tabs">
    <li class="{xen:if '{$type} == "messages"', active}"><a href="{xen:link members}">Top Posters</a></li>
    <li class="{xen:if '{$type} == "likes"', active}"><a href="{xen:link members, '', 'type=likes'}">Most Likes</a></li>
    <li class="{xen:if '{$type} == "points"', active}"><a href="{xen:link members, '', 'type=points'}">{xen:phrase most_points}</a></li>
    <li class="{xen:if '{$type} == "vip"', active}"><a href="{xen:link members, '', 'type=vip'}"><font color="#A75ECC">VIP Members</font></a></li>
    <li class="{xen:if '{$type} == "staff"', active}"><a href="{xen:link members, '', 'type=staff'}">{xen:phrase staff_members}</a></li>
</ul>
Basically, I want to order them by usergroup id, showing members in group 3, then 4, then 8.

I would also like to know if I could do this:


Thanks guys.