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™

can posts be subscriber-only for a set period of time

s2Member Plugin. A Membership plugin for WordPress®.

can posts be subscriber-only for a set period of time

Postby webnola » January 25th, 2011, 11:57 am

I am considering using s2member for a project which releases time-sensitive information. I'd like the posts to automatically be protected until maybe 24 hours after they're written, then they would become public. Does anything like that currently exist? If not I will just have to create it but just wanted to check first.
User avatar
webnola
Experienced User
Experienced User
 
Posts: 33
Joined: December 29, 2010

Re: can posts be subscriber-only for a set period of time

Postby Cristián Lávaque » January 28th, 2011, 1:42 pm

You can schedule the post for later by changing its time in the edit page.
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: can posts be subscriber-only for a set period of time

Postby webnola » January 30th, 2011, 1:31 pm

but that's only draft to published. I want it to be protected (behind paywall) for 24 hours, then switch to public (not behind paywall) automatically.
User avatar
webnola
Experienced User
Experienced User
 
Posts: 33
Joined: December 29, 2010

Re: can posts be subscriber-only for a set period of time

Postby Cristián Lávaque » January 31st, 2011, 10:40 pm

I see. Then you'd do it with conditionals.

Code: Select all
<?php if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS < 1){ ?>
You still can't see this page, come back tomorrow.
<?php } else { ?>
You're over a day old, here you go!
<?php } ?>
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: No registered users and 3 guests

cron