PDA

View Full Version : Using If condition to display code only in public forum sections


BlackHawk1994
03-09-2006, 05:20 AM
Right now I'm using this if condition to show ads only to unregistered users:
<if condition="(in_array($vbulletin->userinfo['usergroupid'], array(1)))">

What if condition would I use to only display the ads in public forums? I'll combine it with an and statement with the code above.