PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
get_user_option('s2member_auto_eot_time', S2MEMBER_CURRENT_USER_ID);
<?php echo get_user_option('s2member_auto_eot_time', S2MEMBER_CURRENT_USER_ID); ?>
$remaining_days = (time() - get_user_option('s2member_auto_eot_time')) / 86400;
<?php
$remaining_days = (time() - get_user_option('s2member_auto_eot_time')) / 86400;
echo "<p>$remaining_days</p>";
?>
$remaining_days = floor((get_user_option('s2member_auto_eot_time') - time()) / 86400);
<?php echo get_user_option('s2member_auto_eot_time'); ?>
<?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';
?>
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.';
}
$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.';
if ($days < 1) echo 'Your subscription has expired.';
elseif ($days == 1) echo 'You have a few hours left, renew now!';
<?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.';
}
?>
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.';
}
Cristián Lávaque wrote:Yeah, it makes sense, but then you also need to figure out which of the two you're dealing with so you know if you are talking about 1 or 3 months.
Users browsing this forum: Yahoo [Bot] and 0 guests