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 class, but only for admins?

Discussion in 'Styling and Customization Questions' started by Alexander Firth, Mar 3, 2015.

  1. Alexander Firth

    Alexander Firth Active Member

    I have my mods set to staff, we're all volunteers at the end of the day, but I want to style the message background for my account only. Is this possible?

    Like on this page: https://xenforo.com/help/user-group-styling/, where it gives the example of:

    .staff .messageContent {
    background-color: @primaryLighterStill;
    }

    That's what I'm after, but don't want all my mods to get it as well :p
     
  2. Russ

    Russ Well-Known Member

    Add your own class to the message template:

    Find:
    Code:
    {xen:if $message.isDeleted, 'deleted'}
    
    Replace with:

    Code:
    {xen:if $message.isDeleted, 'deleted'} {xen:if $message.admin, 'adminPost'}
    
     
  3. Alexander Firth

    Alexander Firth Active Member

    I added that, but nothing :(
     

Share This Page