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 I use content dripping like this?

s2Member Plugin. A Membership plugin for WordPress®.

Can I use content dripping like this?

Postby webbmalin » May 23rd, 2011, 1:47 pm

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
User avatar
webbmalin
Registered User
Registered User
 
Posts: 49
Joined: March 21, 2011

Re: Can I use content dripping like this?

Postby Cristián Lávaque » May 23rd, 2011, 2:31 pm

Yeah, use the PHP time/date functions in your conditionals. :)
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 I use content dripping like this?

Postby webbmalin » May 23rd, 2011, 2:36 pm

THANK YOU!!!
User avatar
webbmalin
Registered User
Registered User
 
Posts: 49
Joined: March 21, 2011

Re: Can I use content dripping like this?

Postby Cristián Lávaque » May 23rd, 2011, 2:40 pm

:)
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 I use content dripping like this?

Postby webbmalin » June 13th, 2011, 10:29 am

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!
User avatar
webbmalin
Registered User
Registered User
 
Posts: 49
Joined: March 21, 2011

Re: Can I use content dripping like this?

Postby Cristián Lávaque » June 13th, 2011, 10:19 pm

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. :)
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: Exabot [Bot] and 2 guests

cron