PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Blocking ads within theme

s2Member Plugin. A Membership plugin for WordPress®.

Blocking ads within theme

Postby mikevic80 » February 17th, 2011, 12:06 pm

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.
User avatar
mikevic80
Registered User
Registered User
 
Posts: 1
Joined: February 17, 2011

Re: Blocking ads within theme

Postby Cristián Lávaque » March 5th, 2011, 10:46 pm

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
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot] and 0 guests

cron