• REGISTRATION REQUIREMENTS:

    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

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?
 
The best way to do this would be to use a dynamic CSS selector and then add the classes via Extra.css

for example:

HTML:
<div class="myclass-{$user.user_id}">

then in Extra.css
HTML:
.myclass-12
{
background-color: #123456;
}
 
Back
Top