JIMRANGERS
12-03-2011, 12:25 PM
I use this code below
<vb:if condition="is_member_of($post, 17)" >
<img src="../images/premium.png"></img>
<vb:elseif condition="is_member_of($post, 11)" />
<img src="../images/sponsor.png"></img>
<vb:elseif condition="is_member_of($post, 18)" />
<img src="../images/new-member.png"></img>
<vb:elseif condition="is_member_of($post, 5)" />
<img src="../images/admin.png"></img>
<vb:elseif condition="is_member_of($post, 7)" />
<img src="../images/advisor.png"></img>
<vb:elseif condition="is_member_of($post, 23)" />
<img src="../images/VIP.png"></img>
<vb:else />
<img src="../images/member.png"></img>
</vb:if>
I would like to add some individual images to individaul members, not in the following usergroups above. I have tried using the following
<vb:if condition="$bbuserinfo['userid'] == x>
x being the members userid
but it seems to search userid and if theres a member with this number returns a true value thus displaying the image to everyone rather than to his profile only.
any help, pls?
<vb:if condition="is_member_of($post, 17)" >
<img src="../images/premium.png"></img>
<vb:elseif condition="is_member_of($post, 11)" />
<img src="../images/sponsor.png"></img>
<vb:elseif condition="is_member_of($post, 18)" />
<img src="../images/new-member.png"></img>
<vb:elseif condition="is_member_of($post, 5)" />
<img src="../images/admin.png"></img>
<vb:elseif condition="is_member_of($post, 7)" />
<img src="../images/advisor.png"></img>
<vb:elseif condition="is_member_of($post, 23)" />
<img src="../images/VIP.png"></img>
<vb:else />
<img src="../images/member.png"></img>
</vb:if>
I would like to add some individual images to individaul members, not in the following usergroups above. I have tried using the following
<vb:if condition="$bbuserinfo['userid'] == x>
x being the members userid
but it seems to search userid and if theres a member with this number returns a true value thus displaying the image to everyone rather than to his profile only.
any help, pls?