Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-15T21:37:43-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10149 2011-06-15T21:37:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20880#p20880 <![CDATA[Re: What triggers content dripping?]]> viewtopic.php?f=40&t=9011&src_doc_v=110605#src_doc_S2MEMBER_CURRENT_USER_REGISTRATION_DAYS

And this is the line that defines it:

Code:
define ("S2MEMBER_CURRENT_USER_REGISTRATION_DAYS", ($c[] = (($user && $user->user_registered) ? (int)floor ((strtotime ("now") - strtotime ($user->user_registered)) / 86400) : 0)));
 

Statistics: Posted by Cristián Lávaque — June 15th, 2011, 9:37 pm


]]>
2011-06-15T21:30:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20879#p20879 <![CDATA[Re: What triggers content dripping?]]> Statistics: Posted by Cristián Lávaque — June 15th, 2011, 9:30 pm


]]>
2011-06-15T21:25:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20877#p20877 <![CDATA[Re: What triggers content dripping?]]>
"...not sure if that was available exactly when my user had 48hrs, I get the feeling this could be considering GMT/UTC=0..."

Change day @ GMT was about 2 hours ago

Statistics: Posted by ricarod — June 15th, 2011, 9:25 pm


]]>
2011-06-15T21:21:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20876#p20876 <![CDATA[Re: What triggers content dripping?]]>
Yes I did set up a test user before and that is how I know day 1 was not next day and was not 24 hours later unless there's something really funny with my server's time. As a matter of fact now that I checked my test user I do have access to my 2nd day content and my user/membership is about 52 hours old but just not sure if that was available exactly when my user had 48hrs, I get the feeling this could be considering GMT/UTC=0 but not sure.

Again, at this point my question is not inquiring on functionality (which I'm very happy with btw) but is just more of a curiosity thing :)

Thanks again for your great support and you can definitely count me in for sure under your developer's license program in the very near future ;)

Statistics: Posted by ricarod — June 15th, 2011, 9:21 pm


]]>
2011-06-15T20:40:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20868#p20868 <![CDATA[Re: What triggers content dripping?]]> Statistics: Posted by Cristián Lávaque — June 15th, 2011, 8:40 pm


]]>
2011-06-15T13:41:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20842#p20842 <![CDATA[Re: What triggers content dripping?]]>
I mean, if it is '>=1' when exactly does '1' happen? makes sense? Let me put it this way:

Is 1 day 24hrs after subscribing?
Is 1 day next calendar day? Let's say I subscribed on Monday will 'CONTENT...' be available on Tuesday? If so then that will be next day according to who? GMT? Server time?

I think my confusion started because I was doing a testing and I was hopping 'CONTENT...' to become available 24 hours after I subscribed but that didn't happen so I guess I'm just asking for my own knowledge while at the same time I'm currently waiting for my next released on my testing scenario which will allow me new content when 'CURRENT_USER_REGISTRATION_DAYS >=2' :ugeek:

Statistics: Posted by ricarod — June 15th, 2011, 1:41 pm


]]>
2011-06-14T22:48:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20768#p20768 <![CDATA[Re: What triggers content dripping?]]>

Statistics: Posted by Cristián Lávaque — June 14th, 2011, 10:48 pm


]]>
2011-06-14T22:39:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20766#p20766 <![CDATA[Re: What triggers content dripping?]]>

Statistics: Posted by ricarod — June 14th, 2011, 10:39 pm


]]>
2011-06-14T22:16:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20764#p20764 <![CDATA[Re: What triggers content dripping?]]>
Let me do some more testing and get back here with comments.

Thank you very much.

Statistics: Posted by ricarod — June 14th, 2011, 10:16 pm


]]>
2011-06-14T22:06:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20762#p20762 <![CDATA[Re: What triggers content dripping?]]> S2MEMBER_CURRENT_USER_REGISTRATION_TIME and maybe the PHP date/time functions to do it in hours.

I'm sure you can with free members too, but you may need to check what those constants values are to make sure what you're comparing with in the conditions.

Code:
<?php echo S2MEMBER_CURRENT_USER_REGISTRATION_DATE?>


By the way, have you installed the plugin that allows you to use PHP in your post/page and added the code to the HTML editor instead of the Visual one?

Statistics: Posted by Cristián Lávaque — June 14th, 2011, 10:06 pm


]]>
2011-06-14T21:31:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20756#p20756 <![CDATA[Re: What triggers content dripping?]]>

I guess I won't be notified via email or anything I just need to login there after 1 day (in this specific example) and I should see whatever content is there, right? Didn't happened but I guess I'll just try again.

Just to make it shorter for testing can I set it up to hours instead of days? Will this also work for free members?

Statistics: Posted by ricarod — June 14th, 2011, 9:31 pm


]]>
2011-06-14T21:22:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20754#p20754 <![CDATA[Re: What triggers content dripping?]]> S2MEMBER_CURRENT_USER_REGISTRATION_DAYS.

Code:
<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 1) { ?>
    Content...
<?php } ?>

Statistics: Posted by Cristián Lávaque — June 14th, 2011, 9:22 pm


]]>
2011-06-14T20:03:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20746#p20746 <![CDATA[Re: What triggers content dripping?]]>
Instructions said that is for paid members so I'm not really sure if that'll work for a dummy user I manually make it member of level1? therefore my question what would triggered the content availability?

Thanks.

Statistics: Posted by ricarod — June 14th, 2011, 8:03 pm


]]>
2011-06-14T19:06:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20743#p20743 <![CDATA[Re: What triggers content dripping?]]> WP Admin -> s2Member -> API / Scripting -> s2Member Content Dripping.

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — June 14th, 2011, 7:06 pm


]]>
2011-06-14T15:50:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10149&p=20725#p20725 <![CDATA[What triggers content dripping?]]> Statistics: Posted by ricarod — June 14th, 2011, 3:50 pm


]]>