PDA

View Full Version : Conditional Ads


schlottkej
08-29-2008, 07:25 PM
I am trying to make ads conditional, however, this doesn't seem to be working, what am I missing here??

<if condition="!$GLOBALS['FIRSTPOSTID']">
<if condition="$post['usergroupid'] != 6">
<br>
<center>
<a href="http://www.thewrestlingtalk.com/catalog/"><img src="http://www.thewrestlingtalk.com/images/matfishleaderboard.png" border="0" title="Wrestling Gear Ad"></a>
</center>
<br>
</if>

</if>

SEOvB
08-29-2008, 07:48 PM
<if condition="(!$GLOBALS['FIRSTPOSTID']) AND ($post['usergroupid'] != 6)">


and remove a </if>

I think thats the correct format.

schlottkej
08-29-2008, 08:20 PM
Actually I think the problem is that I am trying to have ads limited so that anyone within 6 never sees them and right now it only doesn't display them if the poster is in that group.

Kirk Y
08-29-2008, 11:17 PM
is_member_of($bbuserinfo, 6)