Statistics: Posted by nhsatomom — February 7th, 2011, 9:53 am
[s2Member-PayPal-Button ... custom="www.example.com|TIMESTAMP" /]
[s2Member-PayPal-Button ... custom="www.example.com|<?php echo time(); ?>" /]
$custom = get_user_option("s2member_custom");
list($domain, $timestamp) = preg_split("/\|/", $custom);
echo $timestamp;
Statistics: Posted by Cristián Lávaque — December 29th, 2010, 2:15 pm
Statistics: Posted by tribsel — November 16th, 2010, 6:40 pm
Statistics: Posted by Jason Caldwell — October 27th, 2010, 11:55 pm
Yes, absolutely.tech-mentor wrote:
I want to provide a "Remaining Days" before renewing for my paying customers who use a yearly subscription with PayPal. I am using the "s2member_last_payment_time" field to calculate how much time they have left before PayPal will renew their membership automatically.
My question is: Will PayPal notify the s2Member plugin on my website when the recurring payment is applied and is the "s2member_last_payment_time" field will be properly updated in my database for that user with the new payment date?
Thanks for your help!
<?php echo get_user_option("s2member_last_payment_time"); ?>
Statistics: Posted by Jason Caldwell — October 27th, 2010, 11:03 pm
tribsel wrote:
Hi Jason,
thanks for adding this to @todo, any idea when could this ready?
timestamp with buy button is probably a solution for one course with several lessons, thanks for that.
Is there a way how to buy a "course" for 0 (free) and use it just to get a timestamp? In other words, is there a way how to get START button, not buy button
<?php echo S2MEMBER_CURRENT_USER_REGISTRATION_TIME; ?>
This may output something like: 1270537981
( this is a Unix timestamp, which is based on seconds )
---- s2member Shortcode Equivalent ----
[s2Get constant="S2MEMBER_CURRENT_USER_REGISTRATION_TIME" /]
Statistics: Posted by Jason Caldwell — October 27th, 2010, 10:47 pm
Statistics: Posted by KirkWard — October 27th, 2010, 12:47 pm
Statistics: Posted by tech-mentor — October 27th, 2010, 12:11 pm
Statistics: Posted by tribsel — September 21st, 2010, 12:40 pm
Statistics: Posted by Jason Caldwell — August 30th, 2010, 1:21 pm
Statistics: Posted by Guest — August 29th, 2010, 9:33 pm
[s2Member-PayPal-Button ... custom="www.example.com|TIMESTAMP" /]
[s2Member-PayPal-Button ... custom="www.example.com|<?php echo time(); ?>" /]
$custom = get_user_option("s2member_custom");
list($domain, $timestamp) = preg_split("/\|/", $custom);
echo $timestamp;
Statistics: Posted by Jason Caldwell — August 27th, 2010, 2:01 pm
I need to be able to deliver each part in specified intervals. Dripping content based on member's registration date does not help! I dont care when they registered. I need to set time intervals based on when they STARTED specific program (and it can be included free in their membership, so its not possible to connect this to date when they paid for specific program).
Is this possible to achieve with s2 member?
$timestamp = get_user_option("s2member_last_payment_time");
Statistics: Posted by Jason Caldwell — August 27th, 2010, 1:56 pm
Statistics: Posted by tribsel — August 23rd, 2010, 4:36 am