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

XF 1.5 class a post based if it was posted by me or someone else

king8084

Active member
#1
is there a way to add a class based on if the post is (me) or someone else, specifically here:
<li id="{$messageId}" class="message {xen:if $message.isDeleted, 'deleted'} {xen:if '{$message.is_staff}', 'staff'} {xen:if $message.isIgnored, ignored}" data-author="{$message.username}">

ie. if this post is me, message will have a white background, if this post is anyone else, have a gray background.