Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-01T15:23:12-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6644 2011-06-01T15:23:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6644&p=16515#p16515 <![CDATA[Re: content dripping & timestamp function ? help!]]> s2member_paid_registration_time. Here are some examples from the documentation of the function:

Code:
$time = s2member_registration_time (); // ... first registration time ( free or otherwise ).
$time = s2member_paid_registration_time (); // ... first "paid" registration and/or upgrade time.
$time = s2member_paid_registration_time ("level1"); // ... first "paid" registration or upgrade time at Level#1.
$time = s2member_paid_registration_time ("level2"); // ... first "paid" registration or upgrade time at Level#2.
$time = s2member_paid_registration_time ("level3"); // ... first "paid" registration or upgrade time at Level#3.
$time = s2member_paid_registration_time ("level4"); // ... first "paid" registration or upgrade time at Level#4.
 


You can see the documentation at WP Admin -> s2Member -> API / Documentation -> s2Member Content Dripping -> Very Advanced Content Dripping.

Statistics: Posted by Cristián Lávaque — June 1st, 2011, 3:23 pm


]]>
2011-06-01T12:52:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6644&p=16505#p16505 <![CDATA[Re: content dripping & timestamp function ? help!]]>

I tried, but it appears that there is a problem with this function/code:

s2member_current_user_registration_time("level0") <= 1312174800

If I take that away at least I have the page displayed properly, once I try to add the above part alone or combined with the other function, the page gets broken (white content)

Could you please tell what's wrong with it?
Something is just not right ...

Thank you!

Statistics: Posted by candy — June 1st, 2011, 12:52 pm


]]>
2011-05-31T22:14:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6644&p=16455#p16455 <![CDATA[Re: content dripping & timestamp function ? help!]]>
Code:
if ((s2member_current_user_registration_time("level0") <= 1312174800) && (S2MEMBER_CURRENT_USER_REGISTRATION_DAYS <= 365))
 


I hope that fixes it. :)

Statistics: Posted by Cristián Lávaque — May 31st, 2011, 10:14 pm


]]>
2011-05-31T20:12:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6644&p=16446#p16446 <![CDATA[Re: content dripping & timestamp function ? help!]]>

Thanks !

Statistics: Posted by candy — May 31st, 2011, 8:12 pm


]]>
2011-05-31T14:32:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6644&p=16425#p16425 <![CDATA[content dripping & timestamp function ? help!]]>
was trying to add this to an "if statement", but it seems that the function / code is wrong.

if((s2member_current_user_registration_time("level0") <= 1312174800) && (S2MEMBER_CURRENT_USER_REGISTRATION_DAYS <= 365)

basically, I want to use the content dripping to allow level0 users who registered before a limit date (in this case 01.08.2011) to see content otherwise only visible to level2 users. And have access to that content for not more than 365 days

But as I said, I think the code - the way I wrote it above - is wrong, could you please help?

Thank you!

Statistics: Posted by candy — May 31st, 2011, 2:32 pm


]]>