Log in

View Full Version : Some If condition help


Exitilus
03-03-2006, 08:24 PM
I'm starting to get the hang of the if condition statements. But I'm still having some problem.

Using Vbulletin 3.5 I'm trying to figure out how to use if condition to check if the person is logged in. If they aren't. it either shows what I want it to or nothing at all. If they are logged in. it shows the code I want it to.

i've been trying to use <if condition="$userinfo['userid']!=0"> with no success. And several variations of that.

any assistance would be greatly appreciated :)

tehste
03-03-2006, 08:30 PM
I'm starting to get the hang of the if condition statements. But I'm still having some problem.

Using Vbulletin 3.5 I'm trying to figure out how to use if condition to check if the person is logged in. If they aren't. it either shows what I want it to or nothing at all. If they are logged in. it shows the code I want it to.

i've been trying to use <if condition="$userinfo['userid']!=0"> with no success. And several variations of that.

any assistance would be greatly appreciated :)

<if condition="$bbuserinfo[userid]!=0">
<if condition="$vbulletin->userinfo['userid']!=0">
<if condition="$show['member']!=0">

choose one.

<else />

</if>