Community Support Forums — WordPress® ( Users Helping Users ) — 2010-10-26T11:18:25-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1085 2010-10-26T11:18:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1085&p=4246#p4246 <![CDATA[Re: Can Drip Feeding Be Date Range Limited?]]> Statistics: Posted by KirkWard — October 26th, 2010, 11:18 am


]]>
2010-10-25T22:02:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1085&p=4199#p4199 <![CDATA[Re: Can Drip Feeding Be Date Range Limited?]]> Yes, and you were very close. Try it like this:
Code:
<?php
if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 30 && S2MEMBER_CURRENT_USER_REGISTRATION_DAYS <= 60){
    // Something could go here...
    // This is at least 30 days, but not more than 60 days.
}
?>

Statistics: Posted by Jason Caldwell — October 25th, 2010, 10:02 pm


]]>
2010-10-25T19:34:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1085&p=4190#p4190 <![CDATA[Can Drip Feeding Be Date Range Limited?]]>
The example code given (below) appears to allow content after a minimum number of days ...
Code:
if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 30)

How would I set a range of over 30 days, but less than sixty? Would the coding be like this?
Code:
if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 30 AND S2MEMBER_CURRENT_USER_REGISTRATION_DAYS 60 <= )

This is also useful when selling products and only allowing a limited download time.

Statistics: Posted by KirkWard — October 25th, 2010, 7:34 pm


]]>