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™
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");
[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;
beppodb wrote:Oh, I'd also like a way to edit this easily after-the-fact. So, if a user registers in November, but I want to edit it so it appears they registered in October, I'd like control over that.
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" /]
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"); ?>
KirkWard wrote:In reading the response you provide in the post above (viewtopic.php?f=4&t=602#p2620), my question is, what does this do for tracking content released at the lower levels? Is it possible to pull that information from somewhere and insert it into a modification button?
Thanks
Jason Caldwell wrote:Here is one other solution.
s2Member supports "Custom" variables in your Button Code.
- Code: Select all
[s2Member-PayPal-Button ... custom="www.example.com|TIMESTAMP" /]
- Code: Select all
[s2Member-PayPal-Button ... custom="www.example.com|<?php echo time(); ?>" /]
This would give you the original date of the transaction if you needed it.
If a Member signs up with a Button Code that contains the TIMESTAMP above,
here is how you would access that information in WordPress®.
- Code: Select all
$custom = get_user_option("s2member_custom");
list($domain, $timestamp) = preg_split("/\|/", $custom);
echo $timestamp;
Jason Caldwell wrote:Using the TIMESTAMP solution that I mentioned, you can edit this inside WordPress®.
From your Dashboard, go to Users -> and just click Edit next to a specific User.
You can change the TIMESTAMP in the User Editing panel, under the "Custom" field.
( you'll want to have s2Member v3.2.3+ installed for this )
Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests