Help with image based on usergroup

  • Thread starter Thread starter account8226
  • Start date Start date
A

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.

http://xenforo.com/community/threads/adding-an-image-under-custom-title-for-each-user-group.6220/

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

My user info is :

PHP:
<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="$user" itemprop="name" rich="true" />

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

<xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
            <!-- slot: message_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]
    </h3>
    </xen:hook>
 
Hi, I read this thread but it isn't working for me. Basically I want to add a custom user image for each usergroup.

http://xenforo.com/community/threads/adding-an-image-under-custom-title-for-each-user-group.6220/

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

My user info is :

PHP:
<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="$user" itemprop="name" rich="true" />

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

<xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
            <!-- slot: message_user_info_text -->

<xen:if is="{xen:helper ismemberof, $visitor, 3}"><img src="http://img11.hostingpics.net/pics/1168303.png" /></xen:if>
    </h3>
    </xen:hook>

HTML:
<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>

    </h3>

    <xen:if hascontent="true">

Going by Jakes post that is not checked it myself.
 
Top Bottom