PDA

View Full Version : phrases


Nocturnal222
06-21-2012, 05:22 PM
hi,

can someone tell me how to call an user in a vb if/else condition

<vb:if condition="is_member_of($post, #)"><div class="userinfo2">
<vb:else />
<div class="userinfo">
</vb:if>

that is for usergroup.. can you help me to change it per user... (highlighted)

--------------- Added 1340303990 at 1340303990 ---------------

<vb:if condition="$post['userid'] == 5"><div class="userinfo_xxxx">
<vb:else />
<div class="userinfo">
</vb:if>

is this correct?

kh99
06-22-2012, 01:09 AM
<vb:if condition="$post['userid'] == 5"><div class="userinfo_xxxx">
<vb:else />
<div class="userinfo">
</vb:if>

is this correct?

Yes, I think that should work.

Nocturnal222
06-22-2012, 03:50 AM
what if ill add another one user?

--------------- Added 1340341704 at 1340341704 ---------------

got it. please delete thread :D