Ben Worsley Member Sep 1, 2014 #1 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.
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.
Russ Well-known member Sep 1, 2014 #2 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 Upvote 0 Downvote
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
Ben Worsley Member Sep 1, 2014 #3 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: Sep 1, 2014 Upvote 0 Downvote
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.