Page 1 of 1

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

PostPosted: January 25th, 2011, 11:57 am
by webnola
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.

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

PostPosted: January 28th, 2011, 1:42 pm
by Cristián Lávaque
You can schedule the post for later by changing its time in the edit page.

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

PostPosted: January 30th, 2011, 1:31 pm
by webnola
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.

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

PostPosted: January 31st, 2011, 10:40 pm
by Cristián Lávaque
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 } ?>