Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-29T04:07:33-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10100 2011-12-29T04:07:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=59058#p59058 <![CDATA[Re: Setting EOT date on join/renew]]>

Statistics: Posted by Cristián Lávaque — December 29th, 2011, 4:07 am


]]>
2011-12-27T18:41:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=58978#p58978 <![CDATA[Re: Setting EOT date on join/renew]]> Statistics: Posted by Dennis Nolan — December 27th, 2011, 6:41 pm


]]>
2011-06-25T20:23:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21726#p21726 <![CDATA[Re: Setting EOT date on join/renew]]> ws_plugin__s2member_during_configure_user_registration_front_side

If you want to cover all of the bases, including modifications, please use this instead:
Code:
<?php
add_action 
("ws_plugin__s2member_during_configure_user_registration_front_side", "my_fixed_EOT_time");
add_action ("ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars", "my_fixed_EOT_time");
add_action ("ws_plugin__s2member_during_paypal_notify_during_subscr_modify", "my_fixed_EOT_time");
function my_fixed_EOT_time ($vars)
    {
        $expire_on = strtotime ("2012-06-30");
        update_user_option ($vars["user_id"], "s2member_auto_eot_time", $expire_on);
    }
?>

Statistics: Posted by Jason Caldwell — June 25th, 2011, 8:23 pm


]]>
2011-06-25T13:01:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21701#p21701 <![CDATA[Re: Setting EOT date on join/renew]]>
Try this:

1) Update your 'jasontest' user's EOT to blank.
2) then use my 'Renew Test' button (cost is only .01), and see if it updates EOT now that the member acct already exists.

Maybe the problem is that the code only works for new users? We NEED it to reset EOT for both new users and renewals.

Statistics: Posted by dexterinteractive — June 25th, 2011, 1:01 pm


]]>
2011-06-25T00:18:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21663#p21663 <![CDATA[Re: Setting EOT date on join/renew]]> Investigation completed.
So sorry, I've been unable to reproduce this issue on your site. I registered a test user and the custom script did set the EOT Time as expected. Please see the User account ( jasontest ) in your WP Dashboard. If there is more information you can provide about this bug report, please let me know. Thanks!

Statistics: Posted by Jason Caldwell — June 25th, 2011, 12:18 am


]]>
2011-06-24T00:49:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21587#p21587 <![CDATA[Re: Setting EOT date on join/renew]]> Statistics: Posted by Jason Caldwell — June 24th, 2011, 12:49 am


]]>
2011-06-22T01:11:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21381#p21381 <![CDATA[Re: Setting EOT date on join/renew]]> Statistics: Posted by Jason Caldwell — June 22nd, 2011, 1:11 am


]]>
2011-06-20T10:09:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21227#p21227 <![CDATA[Re: Setting EOT date on join/renew]]> Statistics: Posted by dexterinteractive — June 20th, 2011, 10:09 am


]]>
2011-06-20T05:17:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21197#p21197 <![CDATA[Re: Setting EOT date on join/renew]]> http://www.s2member.com/contact/
We'll take a quick look for you.

Statistics: Posted by Jason Caldwell — June 20th, 2011, 5:17 am


]]>
2011-06-19T17:17:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21162#p21162 <![CDATA[Re: Setting EOT date on join/renew]]> Statistics: Posted by dexterinteractive — June 19th, 2011, 5:17 pm


]]>
2011-06-17T01:17:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=21001#p21001 <![CDATA[Re: Setting EOT date on join/renew]]> Statistics: Posted by Jason Caldwell — June 17th, 2011, 1:17 am


]]>
2011-06-15T20:05:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20861#p20861 <![CDATA[Re: Setting EOT date on join/renew]]> WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes (Explained) -> rt

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


]]>
2011-06-15T10:57:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20835#p20835 <![CDATA[Re: Setting EOT date on join/renew]]>
[s2Member-PayPal-Button level="2" ccaps="" desc="Associate Member Renewal." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.website.org" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="1" image="default" output="button" /]

The price is only .01 for testing and I changed the website value for this post.

Statistics: Posted by dexterinteractive — June 15th, 2011, 10:57 am


]]>
2011-06-15T01:17:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20785#p20785 <![CDATA[Re: Setting EOT date on join/renew]]> Thanks for your inquiry.
~ and thanks for the heads up Cristián.

Yes, this code should still work as expected with s2Member 110606.
Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
    add_action
("ws_plugin__s2member_during_configure_user_registration_front_side","my_fixed_EOT_time");

    function my_fixed_EOT_time($vars)
       {
          $expire_on = strtotime("2012-06-30");
          update_user_option ($vars["user_id"], "s2member_auto_eot_time", $expire_on);
       } 
?>
If this is not working for you, please post a copy of the Shortcode that you're using for checkout.

Statistics: Posted by Jason Caldwell — June 15th, 2011, 1:17 am


]]>
2011-06-14T10:47:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20705#p20705 <![CDATA[Re: Setting EOT date on join/renew]]>
Here is the code Jason gave me to update this last time, (and it worked in an older version)
I put it in s2-hacks.php as suggested.

Code:
add_action("ws_plugin__s2member_during_configure_user_registration_front_side","my_fixed_EOT_time");

function my_fixed_EOT_time($vars)
   {
      $expire_on = strtotime("2012-06-30");
      update_user_option ($vars["user_id"], "s2member_auto_eot_time", $expire_on);
   } 

Statistics: Posted by dexterinteractive — June 14th, 2011, 10:47 am


]]>
2011-06-13T23:21:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20651#p20651 <![CDATA[Re: Setting EOT date on join/renew]]> /wp-content/mu-plugins/s2hacks.php and use the code there.

Statistics: Posted by Cristián Lávaque — June 13th, 2011, 11:21 pm


]]>
2011-06-13T16:38:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20626#p20626 <![CDATA[Re: Setting EOT date on join/renew]]> Statistics: Posted by dexterinteractive — June 13th, 2011, 4:38 pm


]]>
2011-06-10T00:37:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20496#p20496 <![CDATA[Re: Setting EOT date on join/renew]]> Statistics: Posted by Cristián Lávaque — June 10th, 2011, 12:37 am


]]>
2011-06-09T19:16:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20479#p20479 <![CDATA[Re: Setting EOT date on join/renew]]>
viewtopic.php?f=4&t=570&hilit=specific+EOT+date

Statistics: Posted by dexterinteractive — June 9th, 2011, 7:16 pm


]]>
2011-06-09T12:42:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10100&p=20470#p20470 <![CDATA[Setting EOT date on join/renew]]> have an EOT date of 6/30/2011 - (I set this via export/import). I need this EOT date to be changed (to 6/30/2012) upon a member renewing, or a new member joining. Isn't there some way to add this as a field in the button code? Basically the membership ends on this date each year regardless of when you join.

Statistics: Posted by dexterinteractive — June 9th, 2011, 12:42 pm


]]>