• 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?

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

Russ

Well-known member
#2
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
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'}