XF 1.3 Message content

Ben Worsley

Member
I am customizing the message content but I only want to do it for certain user groups instead of .staff so each staff member has a different color background, If anyone would be able to help this would be much appreciated.
 
You could edit the message template and add in a conditional for each group you want:

Code:
<xen:if is="{xen:helper ismemberof, $message, 4}">.group4class </xen:if>

Then you can use it as a selector to style the post color differently. I think that's what you're getting at :)
 
I had this in the extra.css but its for all staff and we wanted it for each individual user group, I will look into your thing now.

Code:
.message.staff {
    border: 1px solid #730000;
    background: #170000;
}

.staff .messageContent {
    background: #170000;
}

.staff .signature {
    background: #170000;
}

.staff .messageMeta {
    background: #170000;
}

.staff .editDate {
    background: #170000;
}


Also do you mean the class "message" inside the templates.
 
Last edited:
Top Bottom