Page 1 of 1

Blocking ads within theme

PostPosted: February 17th, 2011, 12:06 pm
by mikevic80
Hello,

I am using your mod (which is great by the way) as a VIP member site. Non VIP see ads on the site and VIP don't.

So I need to add code that hides the ads to members that are 1 +. My theme is cleanhome.

I went into the theme editor and added this around an advertisement
Code: Select all
[s2If current_user_is(s2member_level0)]
ad stuff was here
[/s2If]


When I went to view the site to test I seen the above code on the sittes and the ad was sill there. Am I missing something?


Thanks kindly and hope my above post makes sense.

Re: Blocking ads within theme

PostPosted: March 5th, 2011, 10:46 pm
by Cristián Lávaque
You'll need to use advanced s2Member conditionals in your theme, not the post's body (unless the ad is in the latter).

WP Admin -> s2Member -> API / Scripting -> Advanced Query Conditionals