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

XF 1.3 Message content

Discussion in 'Styling and Customization Questions' started by Ben Worsley, Sep 1, 2014.

  1. Ben Worsley

    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.
     
  2. Russ

    Russ Well-Known Member

    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 :)
     
  3. Ben Worsley

    Ben Worsley Member

    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

Share This Page