Statistics: Posted by Cristián Lávaque — April 6th, 2011, 12:31 am
Statistics: Posted by justawizard — April 5th, 2011, 11:41 pm
<?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.';
}
?>
Statistics: Posted by Cristián Lávaque — April 5th, 2011, 5:29 pm
Statistics: Posted by justawizard — April 5th, 2011, 4:57 pm
<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>
Statistics: Posted by Cristián Lávaque — April 5th, 2011, 4:36 pm
<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>
Statistics: Posted by justawizard — April 5th, 2011, 3:58 pm
Statistics: Posted by Cristián Lávaque — April 5th, 2011, 3:34 pm
Statistics: Posted by justawizard — April 5th, 2011, 3:05 pm
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>';
}
Statistics: Posted by Cristián Lávaque — April 5th, 2011, 2:31 pm
Statistics: Posted by justawizard — April 5th, 2011, 10:38 am
Statistics: Posted by Cristián Lávaque — April 5th, 2011, 1:22 am
Statistics: Posted by justawizard — April 5th, 2011, 12:52 am