1. 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

Discussion in 'Styling and Customization Questions' started by j0e, Dec 16, 2014.

  1. j0e

    j0e New Member

    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:
    [​IMG]

    Thanks guys.
     
  2. j0e

    j0e New Member

    Bump?
     
  3. Demon

    Demon Active Member

    I want to know if this is achievable too.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It would require custom development.
     
    Demon likes this.

Share This Page