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™
if (current_user_can('access_s2member_level1')) {
echo '<ul><li><a href="http://yoursite.com/stage1" alt="Stage 1">Stage 1</a></li>';
$stages = array (
'Stage 2' => 'http://yoursite.com/stage2',
'Stage 3' => 'http://yoursite.com/stage3',
'Stage 4' => 'http://yoursite.com/stage4',
'Stage 5' => 'http://yoursite.com/stage5',
'Stage 6' => 'http://yoursite.com/stage6',
'Stage 7' => 'http://yoursite.com/stage7',
'Stage 8' => 'http://yoursite.com/stage8',
);
$stage_day = 10;
foreach ($stages as $stage_name => $stage_url) {
if (S2MEMBER_CURRENT_USER_REGISTRATION_DAYS < $stage_day)
break;
echo '<li><a href="', $stage_url, '" alt="', $stage_name, '" />', $stage_name, '</li>';
$stage_day += 10;
}
echo '</ul>';
}
<p><a href="http://www.MyWebsite.com/member-home-page/">Member Home Page</a></p>
<p><strong>Seminar Success Boot Camp</strong></p>
<p><?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 1){ ?>
<a href="http://www.MyWebsite.com/bootcamp1/">Boot Camp Level 1</a>
<?php } ?>
</p>
<p><?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 11){ ?>
<a href="http://www.MyWebsite.com/ bootcamp2/">Boot Camp Level 2</a>
<?php } ?>
</p>
<p><?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 21){ ?>
<a href="http://www.MyWebsite.com/ bootcamp3/">Boot Camp Level 3</a>
<?php } ?>
</p>
<p><a href="http://www.mywebsite.com/member-home-page/">Member Home Page</a></p>
<p><strong>Seminar Success Boot Camp</strong></p>
<ul class="stages">
<li class="available"><a href="http://www.mywebsite.com/bootcamp1/" alt="Boot Camp Level 1">Boot Camp Level 1</a></li>
<?php
$stages = array (
'Boot Camp Level 2' => 'http://www.mywebsite.com/bootcamp2/',
'Boot Camp Level 3' => 'http://www.mywebsite.com/bootcamp3/',
'Boot Camp Level 4' => 'http://www.mywebsite.com/bootcamp4/',
'Boot Camp Level 5' => 'http://www.mywebsite.com/bootcamp5/',
'Boot Camp Level 6' => 'http://www.mywebsite.com/bootcamp6/',
'Boot Camp Level 7' => 'http://www.mywebsite.com/bootcamp7/',
'Boot Camp Level 8' => 'http://www.mywebsite.com/bootcamp8/',
);
$stage_day = 10;
foreach ($stages as $stage_name => $stage_url) {
if (S2MEMBER_CURRENT_USER_REGISTRATION_DAYS > $stage_day) {
echo '<li class="available"><a href="', $stage_url, '" alt="', $stage_name, '" />', $stage_name, '</li>';
else
echo '<li class="pending">', $stage_name, '</li>';
$stage_day += 10;
}
?>
</ul>
<?php
$stage = 2
$stage_day = ($stage - 1) x 10;
if (S2MEMBER_CURRENT_USER_REGISTRATION_DAYS > 10) { ?>
Here goes the content for this stage.
<?php } else {
echo 'This stage will be available to you';
$days_left = ($stage_day + 1) - S2MEMBER_CURRENT_USER_REGISTRATION_DAYS;
if ($days_left == 1)
echo 'tomorrow.';
else
echo 'in', $days_left, 'days.';
}
?>
Users browsing this forum: Google [Bot] and 2 guests