Page 1 of 1

Can I use content dripping like this?

PostPosted: May 23rd, 2011, 1:47 pm
by webbmalin
Hi there!

My client wants a class that has different topics every month.
You'll see more content each day of this class.

As the example for content dripping:
<?php if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 10){ ?>
Drip content to Members that started paying you at least 10 days ago.
<?php } ?>

But what if I want my members to see this content after 10 days if it's JUNE....and something else if it's JULY or any other month???

Is there a way to do this???

/Malin

Re: Can I use content dripping like this?

PostPosted: May 23rd, 2011, 2:31 pm
by Cristián Lávaque
Yeah, use the PHP time/date functions in your conditionals. :)

Re: Can I use content dripping like this?

PostPosted: May 23rd, 2011, 2:36 pm
by webbmalin
THANK YOU!!!

Re: Can I use content dripping like this?

PostPosted: May 23rd, 2011, 2:40 pm
by Cristián Lávaque
:)

Re: Can I use content dripping like this?

PostPosted: June 13th, 2011, 10:29 am
by webbmalin
Hello again!

I just can't find the PHP time/date functions anywhere, shouldn't I find them under API/Scripting???

There is the advanced content dripping, but the options seem to be about how long they've been members only...

I need to show content in june and july to somebody who registered anytime in june... and when it is august, this person can see the content for july and august...

It doesn't matter what date in june this person registered,,, only which month...

Is this doable????

Thanks for helping!

Re: Can I use content dripping like this?

PostPosted: June 13th, 2011, 10:19 pm
by Cristián Lávaque
It's doable. The PHP date/time functions can be found here http://mx2.php.net/manual/en/ref.datetime.php

I hope it helps. :)