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

Usergroup styling in users online list

Discussion in 'Styling and Customization Questions' started by Matthew Hawley, Apr 15, 2013.

  1. Matthew Hawley

    Matthew Hawley Well-Known Member

  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Matthew Hawley

    Matthew Hawley Well-Known Member

  4. Shelley

    Shelley Well-Known Member

    I know this works since I've applied the template edit to every style i've ever made.
     
  5. Matthew Hawley

    Matthew Hawley Well-Known Member

    Well not working for me. Maybe I did it wrong. Could you post the edited sidebar_online_users?
     
  6. Shelley

    Shelley Well-Known Member

    Visit the link Brogan provided the edit is there I'd only be posting the same thing.
     
  7. abbychase

    abbychase Active Member

    As Brogan posted, make the following changes.... :)

    Sidebar Display
    In a default installation, user group styling does not apply to the Staff Online Now andMembers Online Now blocks in the sidebar.
    To enable styling to show in these locations, the sidebar_online_users template must be edited.
    Look for this line of code in the template:
    Code:
    class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username},
    
    Replace it with this:
    Code:
    class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{xen:helper richUserName, $user},
    
    Results:
    [​IMG]

    Hopefully that works for you :)
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Don't forget the user group styling also needs to be done.
    The code change won't add the star, nor the user name and title styling.
     
    Shelley and abbychase like this.
  9. Shelley

    Shelley Well-Known Member

Share This Page