<?php
if ($days = get_user_option('s2member_auto_eot_time'))
{
$days = ceil(($days - time()) / 86400);
if ($days < 1)
echo 'Your subscription has expired.';
elseif ($days == 1)
echo 'Your subscription will end tomorrow!';
else
echo 'You have ', $days, ' days left.';
}
?>
Statistics: Posted by vigneshrajesh — December 4th, 2011, 3:30 am
Statistics: Posted by Cristián Lávaque — May 3rd, 2011, 11:54 pm
theone wrote:
That's the ticket! Thanks so much for the assistance, greatly appreciated!
For anyone who stumbles upon this thread and wants to cut to the chase.......
- Code:
<?php
if ($days = get_user_option('s2member_auto_eot_time'))
{
$days = ceil(($days - time()) / 86400);
if ($days < 1)
echo 'Your subscription has expired.';
elseif ($days == 1)
echo 'Your subscription will end tomorrow!';
else
echo 'You have ', $days, ' days left.';
}
?>
Statistics: Posted by adriarichards — May 3rd, 2011, 11:35 pm
Statistics: Posted by Cristián Lávaque — April 29th, 2011, 9:32 pm
Statistics: Posted by theone — April 29th, 2011, 8:54 pm
Statistics: Posted by Cristián Lávaque — April 28th, 2011, 12:43 am
Statistics: Posted by theone — April 27th, 2011, 11:38 pm
if ($days = get_user_option('s2member_auto_eot_time'))
{
$days = ceil(($days - time()) / 86400);
if ($days < 1)
echo 'Your subscription has expired.';
elseif ($days == 1)
echo 'Your subscription will end tomorrow!';
else
echo 'You have ', $days, ' days left.';
} else {
echo 'Your subscription has expired.';
}
Statistics: Posted by Cristián Lávaque — April 27th, 2011, 10:42 pm
<?php
if ($days = get_user_option('s2member_auto_eot_time'))
{
$days = ceil(($days - time()) / 86400);
if ($days < 1)
echo 'Your subscription has expired.';
elseif ($days == 1)
echo 'Your subscription will end tomorrow!';
else
echo 'You have ', $days, ' days left.';
}
?>
Statistics: Posted by theone — April 27th, 2011, 8:29 pm
Statistics: Posted by Cristián Lávaque — April 27th, 2011, 8:01 pm
if ($days < 1) echo 'Your subscription has expired.';
elseif ($days == 1) echo 'You have a few hours left, renew now!';
Statistics: Posted by theone — April 27th, 2011, 7:02 pm
$days = floor((get_user_option('s2member_auto_eot_time') - time()) / 86400);
if ($days < 1)
echo 'Your subscriptions has expired.';
else if ($days == 1)
echo 'You have a few hours left, renew now!';
else
echo 'You have ', $days, ' days left.';
Statistics: Posted by Cristián Lávaque — April 27th, 2011, 6:26 pm
Statistics: Posted by theone — April 27th, 2011, 6:14 pm
if ($days = get_user_option('s2member_auto_eot_time'))
{
$days = floor(($days - time()) / 86400);
if ($days < 1)
echo 'Your subscription has expired.';
elseif ($days == 1)
echo 'You have a few hours left, renew now!';
else
echo 'You have ', $days, ' days left.';
}
Statistics: Posted by Cristián Lávaque — April 27th, 2011, 5:03 pm
<?php
$remaining_days = floor((get_user_option('s2member_auto_eot_time') - time()) / 86400);
if ($remaining_days<="0")
echo "Subscription has expired!";
else
echo "$remaining_days";
print ' day' . ($remaining_days == 1 ? '' : 's');
print ' left';
?>
Statistics: Posted by theone — April 27th, 2011, 3:39 pm
Statistics: Posted by theone — April 27th, 2011, 10:45 am
<?php echo get_user_option('s2member_auto_eot_time'); ?>
Statistics: Posted by Cristián Lávaque — April 27th, 2011, 1:13 am
$remaining_days = floor((get_user_option('s2member_auto_eot_time') - time()) / 86400);
Statistics: Posted by Cristián Lávaque — April 26th, 2011, 10:04 pm
<?php
$remaining_days = (time() - get_user_option('s2member_auto_eot_time')) / 86400;
echo "<p>$remaining_days</p>";
?>
Statistics: Posted by theone — April 26th, 2011, 4:56 pm
$remaining_days = (time() - get_user_option('s2member_auto_eot_time')) / 86400;
Statistics: Posted by Cristián Lávaque — April 26th, 2011, 1:23 pm
Statistics: Posted by theone — April 26th, 2011, 12:59 pm
Statistics: Posted by Cristián Lávaque — April 26th, 2011, 11:25 am