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

Help with image based on usergroup

Discussion in 'Styling and Customization Questions' started by account8226, Jun 11, 2011.

  1. account8226

    account8226 Guest

    Hi, I read this thread but it isn't working for me. Basically I want to add a custom user image for each usergroup.


    When I do this all the user got the same image --'

    My user info is :

    <xen:require css="message_user_info.css" />

    xen:if is="!{$isQuickReply}">
    center><xen:hook name="message_user_info_text" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}"></center>
    h3 class="userText">

    xen:username user="$useritemprop="name" rich="true" />

    xen:if hascontent="true"><em class="userTitle" itemprop="title">

    xen:contentcheck>{xen:helper userTitle$user}</xen:contentcheck></em></xen:if>
    slotmessage_user_info_text -->

    COLOR=#ff0000][B]<xen:if is="{xen:helper ismemberof, $visitor, 3}"><center><img src="http://img11.hostingpics.net/pics/1168303.png" /></center></xen:if>[/B][/COLOR]
    DEiMOS likes this.
  2. Wuebit

    Wuebit Well-Known Member

    <xen:require css="message_user_info.css" />
    <div class="messageUserInfo" itemscope itemtype="http://data-vocabulary.org/Person">
        <div class="messageUserBlock">
            <div class="avatarHolder"><xen:avatar user="$user" size="m" itemprop="photo" /></div>
    <xen:if is="!{$isQuickReply}">
        <h3 class="userText">
            <a {xen:if $user.user_id, 'href="{xen:link members, $user}" '}class="username" itemprop="name">{xen:helper richUserName, $user}</a>
            <xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
                    <xen:if is="{$user.user_group_id} == 3">
                <img src="http://img11.hostingpics.net/pics/1168303.png" />
        <xen:if hascontent="true">
    Going by Jakes post that is not checked it myself.
    DEiMOS likes this.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    DEiMOS and Vodkaholic like this.

Share This Page