PDA

View Full Version : If Conditional..


Sycoloco1212
08-23-2009, 06:53 AM
i want to show more then one person on a site using this how would i do this ( i dont want to show usergroups, just individual people as in me and my fionce =P


This is what i have right now which only shows 1 person...

<if condition="$vbulletin->userinfo['userid'] == 1"> </if>

But if i want to show two people would i do this?

<if condition="$vbulletin->userinfo['userid'] == 1,2"> </if>

Lynne
08-23-2009, 04:01 PM
<if condition="in_array($bbuserinfo['userid'], array(1, 2))">
stuff for userids 1 and 2 to see
</if>

Sycoloco1212
08-23-2009, 05:36 PM
alright thanks much =)