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

XF 1.5 Staff posts

Discussion in 'Styling and Customization Questions' started by CarpCharacin, Aug 19, 2016.

  1. CarpCharacin

    CarpCharacin Active Member

    I set it in the CSS for staff users' postbit to be blue. It does not show up blue next to the quick reply box. I have attached a screenshot.
     

    Attached Files:

  2. Steve F

    Steve F Well-Known Member

    Aside from only you being able to see it there I don't think the data is available to the template.
     
  3. CarpCharacin

    CarpCharacin Active Member

    What do you mean?
     
  4. Steve F

    Steve F Well-Known Member

    Well there is certain data that is only available to certain templates. What makes the normal messages work for your background colors is this bit of code. It adds a class you can target with CSS which I assume you've done already.
    Code:
    {xen:if '{$message.is_staff}', 'staff'}
    Using that code in the template that generates the user info by the quick reply is the message_user_info template. That data for that conditional above isn't passed to the message_user_info template. Make more sense?
     
  5. CarpCharacin

    CarpCharacin Active Member

    So should I have that code in the template?
     
  6. Steve F

    Steve F Well-Known Member

    In my opinion I wouldn't worry about the quick reply background, it doesn't represent anything to the user if they know they are staff. The point of doing the messages is to make staff posts stand out from others. And again that code doesn't work where it would need to be, and adding anything else would duplicate it in the regular messages as it uses the same template. If you're not familiar with how things work it is kind of hard to explain it any better.
     
    CarpCharacin likes this.

Share This Page