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™

Latest 30 posts free and others only for members

s2Member Plugin. A Membership plugin for WordPress®.

Latest 30 posts free and others only for members

Postby valerio123 » April 11th, 2011, 3:17 am

Hi guys,

I just upgrade my s2member to the Pro version.

I'm studing the documentation but I'm not very able with php ... :oops:

I'd like a little help...!

In your opinion, is it possible that the latest 30 posts are free and the others are only for members?

How can I do? Can you help me please? Have you any suggestions for me?

Thanks, :)
User avatar
valerio123
Registered User
Registered User
 
Posts: 2
Joined: April 11, 2011

Re: Latest 30 posts free and others only for members

Postby Jason Caldwell » April 12th, 2011, 7:29 pm

Thanks for the great question.

Sorry. This is not a feature that is included by default. I'll see what we can do in a future release though. Until then, this type of custom functionality would need to be achieved with s2Member's Simple and/or Advanced Conditionals. You'll find the documentation on this inside your Dashboard, under: s2Member -> API Scripting -> Advanced Conditionals.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Latest 30 posts free and others only for members

Postby Cristián Lávaque » April 12th, 2011, 8:27 pm

Valerio, I just wanted to add that you could also use Advanced Query Conditionals, also under API / Scripting.

And you will need to use WordPress functions to figure out if the post being viewed is one of the last 30 or not. https://codex.wordpress.org/Function_Re ... _Functions
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

Re: Latest 30 posts free and others only for members

Postby valerio123 » April 13th, 2011, 2:19 am

Hi Jason, Hi Cristián, thanks for your help. ;)
User avatar
valerio123
Registered User
Registered User
 
Posts: 2
Joined: April 11, 2011


Return to s2Member Plugin

Who is online

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

cron