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

User group css?

Discussion in 'Styling and Customization Questions' started by PVO_Dave, Nov 27, 2011.

  1. PVO_Dave

    PVO_Dave Active Member

    I had a little play with this yesterday, but nothing I did seemed to make much difference?

    What sort of css can I put in there (couldn't see anything in the manual) and where will the changes show?

    Only after simple stuff like making the mod's / staff bold, paid subs a different colour etc..

    Ta,
    Dave.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The user title and user name styling will be present in the following areas:
    • Staff Online Now block in the sidebar
    • Message user info in posts and conversations
    • Conversation Participants block in the sidebar
    • Member list
    • Current visitors
    In addition, user title styling will also appear in the following places:
    • Dropdown menu under the user name on the navigation bar
    • Member card
    • Profile page
    http://xenforo.com/help/user-groups/

    Standard CSS can be entered in the field, for example: color: red;
    For the user title field, it can be entered like so: <span style="color: red">Administrator</span>
     
  3. PVO_Dave

    PVO_Dave Active Member

    Doesn't seem to work for me?

    For example, my main group is Administrative, so I went to that group, put priority order 1, put the color: red; example in, but nothing changed?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It's not applied to custom user titles which are set on the profile page.
     
  5. PVO_Dave

    PVO_Dave Active Member

    Not sure I understand what you mean?

    I basically want my name to show the css styling options set in the user group settings, so then my name would appear bold or red or whatever I've set in the staff / users online list, is that possible?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, it works exactly as I explained in my previous post.

    red.PNG
     
  7. PVO_Dave

    PVO_Dave Active Member

    Sometimes Brogan... I'm an idiot! lol

    It's based on the highest number... :face palm: :coffee:
     
  8. PVO_Dave

    PVO_Dave Active Member

    Having said the above, the different colours don't show in the Members Online Now, just in the staff one?

    Anything I can check?
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the sidebar_online_users template to add the richUserName attribute:

    Code:
    class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{xen:helper richUserName, $user}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
     
    PVO_Dave likes this.
  10. PVO_Dave

    PVO_Dave Active Member

    Brogan... you the man! :D
     
  11. intradox

    intradox Well-Known Member

    Thanks for sharing this! What about the forum list template. How would I change like
    Code:
    <dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
    to reflect the username color?
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    intradox likes this.
  13. intradox

    intradox Well-Known Member

Share This Page