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

king8084

Well-known member
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.
 
Top Bottom