Log in

View Full Version : why isn't this working?


ANGELO2K8
08-11-2008, 04:20 AM
I'm trying to hide this adbrite ad from users in these 3 usergroups with this if statement but supposedly it's not working. I put the following in the footer template. Is this correct for me to do or is there something wrong here?

<if condition="!in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
<!-- Begin: AdBrite -->
<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=XXX&br=1"></script>
<!-- End: AdBrite --></if>

Dismounted
08-11-2008, 07:25 AM
<if condition="!is_member_of($bbuserinfo, 5, 6, 7)">
<!-- Begin: AdBrite -->
<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=XXX&br=1"></script>
<!-- End: AdBrite -->
</if>