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

Adding icon next to username in message_user_info

Discussion in 'Styling and Customization Questions' started by shawn, Feb 26, 2012.

  1. shawn

    shawn Well-Known Member

    I hoped this would add an icon next to the username in a thread. No luck so far.

    Here's what I currently have. After:

    <xen:username user="$user" itemprop="name" rich="true" />
    <xen:if is="{xen:helper ismemberof, $user, 14}">
    <img src="path/to/image1.png">
    <xen:elseif is="{xen:helper ismemberof, $user, 3,5,9}" />
    <img src="path/to/image2.png">
    I also added HTML comments within the if clauses, figuring maybe there was a problem with loading the images, or maybe that I couldn't call images that way from a template... but the comments aren't showing up, either. Maybe I've got the wrong template...?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. shawn

    shawn Well-Known Member

    Gah.... that's too easy.

    Thanks Brogan, I'll try doing it the 'right' way.

Share This Page