1. 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

Discussion in 'Styling and Customization Questions' started by king8084, Jul 12, 2016.

  1. king8084

    king8084 Active 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.
  2. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page