PDA

View Full Version : Need a hand with a conditional statement please


Codeman05
02-02-2006, 08:44 PM
Hi guys,

I need some help, I'm sure this is a simple solution, but I have no idea.

Basically, I need the VB equivenlant of this code to put in my header (and will have the tag close in the footer of course)


if($usergroupid==8 || $usergroupid==9)
{
echo "<span id='idname'>"
}


I was able to do it in vb3.0, but I'm now running 3.5 and what I used before dosen't seem to working and I have no idea what to do.

Basically, I have "sponsored links" on my site, and I would like to disable them for paying members.

Any help would be GREATLY appreciated!

Marco van Herwaarden
02-02-2006, 08:48 PM
Use $vbulletin->userinfo['usergroupid']

Codeman05
02-02-2006, 08:53 PM
well, I sort of figured it out"

<if condition="$vbulletin->userinfo['usergroupid'] == 8">


I got it to work with a single condition, can I do an OR statement though? Or just use 2 if statements?

I would like to do this for 2 usergroups

edit: Nevermind, I got it :D