Statistics: Posted by Jason Caldwell — November 24th, 2011, 10:11 pm
update_user_option (S2MEMBER_CURRENT_USER_ID, "s2member_auto_eot_time", $expire_on);
This is all correct. Your code should work as expected in this scenario.
In a perfect world, I will create a button for a one time buy now payment for a year term.
The person will click that and pay their $$ through PayPal and then, PayPal will report back to S2 that the 1 year payment was completed.
When that happens, my code is triggered to set that specific end date instead of the "1 year" associated with the button.
Front side indicates it's a User registering themselves on the front-side of your site, as opposed to *any* registration that occurs, which could perhaps be initiated on the back-side of a site, by a site administrator. You'll want to use the front_side variation.
As noted previously, I presume thatis essentially the same as
- Code:
"ws_plugin__s2member_during_configure_user_registration_front_side
but what does "front_side" mean?.
- Code:
ws_plugin__s2member_during_configure_user_registration
Use this one please:does not seem relevant to my need but I am not sure.
- Code:
ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars
And I presumeis triggered when an existing paid subscription is active and it is somehow modified so I dont think I need it.
- Code:
ws_plugin__s2member_during_paypal_notify_during_subscr_modify
So bottom line, it does not look to me that any of these are appropriate for my needs. Which action(s) do I need in my scenario?
ws_plugin__s2member_during_configure_user_registration_front_side
Statistics: Posted by Jason Caldwell — November 24th, 2011, 10:05 pm
Statistics: Posted by gemini6887 — November 24th, 2011, 2:03 am
update_user_option (S2MEMBER_CURRENT_USER_ID, "s2member_auto_eot_time", $expire_on);
"ws_plugin__s2member_during_configure_user_registration_front_side
ws_plugin__s2member_during_configure_user_registration
ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars
ws_plugin__s2member_during_paypal_notify_during_subscr_modify
Statistics: Posted by man-O-media — September 6th, 2011, 10:59 pm
Statistics: Posted by Cristián Lávaque — September 2nd, 2011, 11:41 pm
Statistics: Posted by man-O-media — September 2nd, 2011, 11:24 pm
Statistics: Posted by Cristián Lávaque — September 2nd, 2011, 9:46 pm
"ws_plugin__s2member_during_configure_user_registration_front_side"
"ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars"
"ws_plugin__s2member_during_paypal_notify_during_subscr_modify
Statistics: Posted by man-O-media — September 2nd, 2011, 12:57 pm
Statistics: Posted by man-O-media — September 2nd, 2011, 4:14 am
Statistics: Posted by man-O-media — August 31st, 2011, 7:32 pm
D – for days; allowable range is 1 to 90
W – for weeks; allowable range is 1 to 52
M – for months; allowable range is 1 to 24
Y – for years; allowable range is 1 to 5
Statistics: Posted by Jason Caldwell — August 30th, 2011, 11:24 pm
I don't mean to be a stickler but what do you mean "it's best to have a PayPal Pro account"?
However, if you choose to integrate this with s2Member Pro Forms, then yes; it's best to have a PayPal Pro account...
Yes, the PHP Execution plugin allows you to incorporate PHP tags into your Shortcodes as well....
Statistics: Posted by man-O-media — August 30th, 2011, 6:33 pm
Statistics: Posted by Jason Caldwell — August 30th, 2011, 6:07 pm
The PHP code that I posted could go right inside your Post/Page that contains the Shortcode, but you will need to install the PHP Execution plugin for that to work. ... I recommend the PHP Execution route, because that keeps the variables confined only to the scope of the Shortcode, as it exists inside a particular Post/Page, thereby reducing your risk of creating a plugin conflict within WordPress.
Statistics: Posted by man-O-media — August 30th, 2011, 5:55 pm
And just as important, where can that "$days_until_fixed_time code" live?
Can I simply have it in the template for my form along with the rest or must it live in theme functions?
<?php
$now = strtotime("now");
$fixed_time = strtotime("30 April 2011");
$days_until_fixed_time = round(($fixed_time - $now) / ($seconds_in_one_day = 86400));
?>
Statistics: Posted by Jason Caldwell — August 30th, 2011, 3:49 pm
<?php
$now = strtotime("now");
$fixed_time = strtotime("30 April 2011");
$days_until_fixed_time = round(($fixed_time - $now) / ($seconds_in_one_day = 86400));
?>
[s2Member-Pro-PayPal-Form ... ra="10.00" rp="<?php echo $days_until_fixed_time; ?>" rt="D" rr="BN" /]
Statistics: Posted by man-O-media — August 29th, 2011, 8:50 pm
Statistics: Posted by Jason Caldwell — April 7th, 2011, 7:29 am
Statistics: Posted by lucjager — April 4th, 2011, 5:20 am
Statistics: Posted by Jason Caldwell — April 4th, 2011, 5:09 am
p.s. is it possible to open an "paying" support part of the forum which is dedicated to the pro version of the plugin?
Statistics: Posted by Jason Caldwell — April 4th, 2011, 5:07 am
Statistics: Posted by lucjager — April 4th, 2011, 4:39 am
lucjager wrote:
If i am a custommer i registrer on 1 april 2011, but i would like to see that this account will be demoted to a free subscriber on a fixed date which i can set in the s2member button option like 23 april 2011.
<?php
$now = strtotime("now");
$fixed_time = strtotime("30 April 2011");
$days_until_fixed_time = round(($fixed_time - $now) / ($seconds_in_one_day = 86400));
?>
[s2Member-Pro-PayPal-Form ... ra="10.00" rp="<?php echo $days_until_fixed_time; ?>" rt="D" rr="BN" /]
Statistics: Posted by Jason Caldwell — April 4th, 2011, 4:03 am
Statistics: Posted by Cristián Lávaque — March 30th, 2011, 9:20 pm
Statistics: Posted by lucjager — March 30th, 2011, 5:31 pm
Statistics: Posted by Cristián Lávaque — March 30th, 2011, 5:05 pm