Make content visible/not visible based on EOT?
Posted: November 12th, 2011, 3:52 pm
Hi.
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
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