PDA

View Full Version : Specific images in memberlist.


gnubittol
05-18-2008, 02:57 PM
Hi everybody,
I need help... :)
My problem is: insert in memberlist an image that is different for usergroup.
I try to use this code without result:


<if condition="is_member_of($userinfo[usergroupid], 16)">
<div><img src="/images/icons/abc.gif" border="0" alt="" /></a></div>
</if>

<if condition="is_member_of($userinfo[usergroupid], 13)">
<div><img src="/images/icons/def.gif" border="0" alt="" /></a></div>
</if>


the same result :( with


<if condition="is_member_of($post, 16)">
<div><img src="/images/icons/abc.gif" border="0" alt="" /></a></div>
</if>

<if condition="is_member_of($post, 13)">
<div><img src="/images/icons/def.gif" border="0" alt="" /></a></div>
</if>


Someone can help me?

PS: vBulletin v 3.6.10

TIA

veenuisthebest
05-18-2008, 03:06 PM
your conditional is wrong probably, use this instead



<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>

gnubittol
05-18-2008, 03:26 PM
your conditional is wrong probably, use this instead

<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>


ehm...
I explain
the single component of usergroup must have the owner group image..

for example if a user is in user group "13" must have ( under the nickname ) the relative group image...

( in the postbit I have done without problem... )

but in memberlist_resultsbit.... :(

--------------- Added 1211193917 at 1211193917 ---------------

...no solution about?