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™
$eot_time = get_user_field('s2member_auto_eot_time', $user_id);
<?php if (function_exists('$s2member_auto_eot_time')){$s2member_auto_eot_time = $s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time");} ?>
<?php
echo date("j F Y", $s2member_auto_eot_time);
?>
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.';
}
camillemm wrote:
- Code: Select all
<?php if (function_exists('$s2member_auto_eot_time')){$s2member_auto_eot_time = $s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time");} ?>
<?php
echo date("j F Y", $s2member_auto_eot_time);
?>
if (function_exists('$s2member_auto_eot_time')){$s2member_auto_eot_time = $s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time");} ?>
<?php
echo '<p><em>Membership expires ';
echo date("F j, Y", $s2member_auto_eot_time);
echo '</em></p>';
if ($s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time") ) {
echo '<p><em>Membership expires ';
echo date("F j, Y", $s2member_auto_eot_time);
echo '</em></p>';
}
Users browsing this forum: Yahoo [Bot] and 1 guest