Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Message body background colour by username

Discussion in 'Showcase Support' started by petrolskin, Aug 31, 2014.

  1. petrolskin

    petrolskin Member AMS Premium Showcase

    I am writing some integration via showcase and would like to be able to have a unique post background colour whenever a service account posts in a thread, so they stand out. Either in the comments system or via the thread id that showcase can use.

    Can you point me in the right direction please Bob?
  2. Bob

    Bob Developer Staff Member

    The best way to do this would be to use a dynamic CSS selector and then add the classes via Extra.css

    for example:

    <div class="myclass-{$user.user_id}">
    then in Extra.css
    background-color: #123456;
  3. petrolskin

    petrolskin Member AMS Premium Showcase

    brilliant, thanks Bob. I'll have a play around with that.
  4. Bob

    Bob Developer Staff Member

    For showcase comments, you'll need to use {$comment.user_id} (pertaining the the template nflj_showcase_comment)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.