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™

1 post, 2 different contents, how to protect?

s2Member Plugin. A Membership plugin for WordPress®.

1 post, 2 different contents, how to protect?

Postby Confused_Dude » November 30th, 2011, 5:12 am

I have 1 post containing 2 pieces of audio content. The first audio file in the post I want to set to level 0 so it is accessible to everyone for free. The 2nd audio file I want to set to level 1 so it is restricted for paid members only.

How can I make this happen:?: :?: :?:
User avatar
Confused_Dude
Registered User
Registered User
 
Posts: 20
Joined: November 30, 2011

Re: 1 post, 2 different contents, how to protect?

Postby Eduan » November 30th, 2011, 10:56 am

You can try this video:
http://www.s2member.com/advanced-conditionals-video/

And you can check under WP Admin -> s2Member -> API Scripting -> Simple/Shortcode Conditionals, if you want to make it a little easier.

Hope this helps. :)
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: 1 post, 2 different contents, how to protect?

Postby Confused_Dude » November 30th, 2011, 1:01 pm

Thank Eduan. This seems to be the solution but I don't wanna use this approach if everytime I switch back and forth from viewer to html view the inserted php code will get wiped out. MAJOR HEADACHE!!! :(
User avatar
Confused_Dude
Registered User
Registered User
 
Posts: 20
Joined: November 30, 2011

Re: 1 post, 2 different contents, how to protect?

Postby Eduan » November 30th, 2011, 1:04 pm

If you use the shortcode conditionals under WP Admin -> s2Member -> API Scripting -> Simple/Shortcode Conditionals you don't need to do it in the HTML Editor.

Hope this helps. :)
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 2 guests

cron