Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-13T09:32:22-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15883 2011-11-13T09:32:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15883&p=52919#p52919 <![CDATA[Re: Make content visible/not visible based on EOT?]]>
Code:
$startdiv '<div class="with-round-borders with-extra-padding with-box-shadows" style="text-align: center; width: 400px; margin-right: auto; margin-left: auto;">You can now renew on-line using PayPal, a credit card, or a debit card! Click the PayPal button below to renew now.<p style="padding-top: 10 px;">';
$enddiv '</p></div>';
        if (
$days get_user_option('s2member_auto_eot_time'))
    {
        
$days ceil(($days time()) / 86400);

        if (
$days 60)
            echo 
$startdiv do_shortcode('[s2Member-PayPal-Button ... /]') , $enddiv;
        else
            echo 
'<strong><center>Thank-you for renewing your membership.</center></strong>';
    }
}
add_shortcode('driprenew''driprenew');
/*end dripping renewal shortcode*/ 

Statistics: Posted by MarRxK — November 13th, 2011, 9:32 am


]]>
2011-11-12T21:48:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15883&p=52905#p52905 <![CDATA[Re: Make content visible/not visible based on EOT?]]> You can't do it without that plugin installed.

Statistics: Posted by Eduan — November 12th, 2011, 9:48 pm


]]>
2011-11-12T21:12:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15883&p=52904#p52904 <![CDATA[Re: Make content visible/not visible based on EOT?]]> Statistics: Posted by MarRxK — November 12th, 2011, 9:12 pm


]]>
2011-11-12T20:02:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15883&p=52900#p52900 <![CDATA[Re: Make content visible/not visible based on EOT?]]> Statistics: Posted by MarRxK — November 12th, 2011, 8:02 pm


]]>
2011-11-12T16:00:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15883&p=52896#p52896 <![CDATA[Re: Make content visible/not visible based on EOT?]]> WP Admin -> s2Member -> API / Scripting -> s2Member Content Dripping.

Statistics: Posted by Eduan — November 12th, 2011, 4:00 pm


]]>
2011-11-12T15:52:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15883&p=52895#p52895 <![CDATA[Make content visible/not visible based on EOT?]]>
I've been reviewing some of the code here: http://www.primothemes.com/forums/viewtopic.php?f=4&t=14842&hilit=eot+display but can seem to find a way to create a code to do what I would like within a post (using either the exc-php or php-execution plugins).

We use s2member pro to run a membership-based association. Automatic EOT is manually set for December 31st each year. Our members may renew starting November 1 for the following year. I've put a "Buy Now" button on the "Welcome" page that purchases the same level of membership for a one year, non-renewing term with the s2member option to extend remaining EOT set to on (i.e., a purchase extends their membership to December 31 of the following year). I would like, upon returning to the welcome page after renewing, that button to disappear. If there a way to code it such that if the days to EOT are 60 or less, the button appears, but if not, it is not visible?

Thanks!

Mark

Statistics: Posted by MarRxK — November 12th, 2011, 3:52 pm


]]>