PDA

View Full Version : Certian Members only see Ads?


Blazeman2006
05-17-2006, 04:48 AM
I'm using one of the hacks for when a new topic is created ads are shown...but i want to add a code above it a <if condition code...but i don't know how to edit it to only make it were it shows for only 1,2,3 member group.

Thank You
Blaze

Iain M
05-17-2006, 01:12 PM
<if condition="$bbuserinfo[usergroupid] == 1 OR $bbuserinfo[usergroupid] == 2 OR $bbuserinfo[usergroupid] == 3">
ad code
</if>


that'll display the ads if the user is a member of usergoups 1,2 and 3,

if you want to display them to more groups just keep adding
OR $bbuserinfo[usergroupid] == x

:)

Blazeman2006
05-18-2006, 02:48 AM
Thanks Bro that helps so much!!!!!!!

You really need to make a coding edit page for it since i've been asked about this from other site owners :)

-Blaze

Dr.Viggy
05-18-2006, 09:02 PM
here is a little bit easier to keep it neat
<if condition="is_member_of($bbuserinfo, 1,2,3)">
ad code
</if>

that will show for groups 1, 2, and 3.

Adrian Schneider
05-19-2006, 03:18 AM
here is a little bit easier to keep it neat
<if condition="is_member_of($bbuserinfo, 1,2,3)">
ad code
</if>

that will show for groups 1, 2, and 3.
Yeah that way is easier, and also checks secondary groups.