Log in

View Full Version : Coding for Usergroup


bschneider5
02-24-2007, 12:47 PM
I'd like to ad an if statement to only display certain ads for paid subscribers. Is there a mod for this, or what code can I just put before the ad code?

Delphiprogrammi
02-24-2007, 12:55 PM
I'd like to ad an if statement to only display certain ads for paid subscribers. Is there a mod for this, or what code can I just put before the ad code?

Not a good idea if people pay money they should not have any advisertising at al


if(in_array(5,6,7,$vbulletin->userinfo['usergroupid']));
{
// display
}
else
{
// don't display
}


that's just "out of my head" ow why wouldn't this work ?


<if condition="in_array('5,6,7',$bbuserinfo[usergoupid])">
// .......
</if>