Quote:
Originally Posted by Wired1
small problem with that code is that someone isn't in that group, it won't go through <if condition="$show['avatar']> by itself.
here's what I was messing with:
Code:
<if condition="$show['avatar'] AND $vbulletin->userinfo[usergroupid]=79">
<td class="alt2">
<table cellpadding="5" cellspacing="0" border="0" width="124" height="82" align="center">
<tr>
<td background="./images/test_badge.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="64" width="59" align="right"></td>
</tr>
</table>
</td>
</if>
<if condition="$show['avatar'] AND $vbulletin->userinfo[usergroupid]!=79">
<td class="alt2">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</td>
</if>
|
Yes, it work, but there are one problem, every members have the backgroup now (all usergroup)
Quote:
Originally Posted by peterska2
Code:
<if condition="$show['avatar']">
<if condition="$vbulletin->userinfo[usergroupid]=6">
<td class="alt2">
<table cellpadding="5" cellspacing="0" border="0" width="124" height="82" align="center">
<tr>
<td background="$stylevar[imgdir_misc]/badge.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="64" width="59" align="right"></td>
</tr>
</table>
</td>
<else />
<td class="alt2">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</td>
</if>
</if>
|
Work also, but even problem as my post before