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™
http://example.com/wp-login.php?redirect_to=http://example.com/a-particular-page
/wp-login.php?redirect_to=<?php echo rawurlencode($_SERVER["REQUEST_URI"]); ?>
if (is_user_logged_in() && current_user_can("access_s2member_level4")){
echo '<p class="login-links"><span class="login-greeting">Welcome back, ';
echo S2MEMBER_CURRENT_USER_FIRST_NAME;
echo '</span><br /><a href="
http://www.workplacecoachinstitute.com/cmd.php?cmd=cart">View Cart</a> <span class="login-spacing">|</span> <a href="http://workplacecoachinstitute.com/?s2member_profile=1">Profile</a> <span class="login-spacing">|</span> <a href="http://workplacecoachinstitute.com/wp-login.php?action=logout">Logout</a></p>';
} else {
return '<p><a href="
http://www.workplacecoachinstitute.com/cmd.php?cmd=cart">View Cart</a> <span class="login-spacing">|</span> <a href="http://workplacecoachinstitute.com//wp-login.php?redirect_to=<?php echo rawurlencode($_SERVER["REQUEST_URI"]); ?>">Login</a></p>';
}
<?php
if (is_user_logged_in () && current_user_can ("access_s2member_level4"))
{
echo '<p class="login-links">';
echo '<span class="login-greeting">Welcome back, ' . S2MEMBER_CURRENT_USER_FIRST_NAME . '</span><br />';
echo '<a href="http://www.workplacecoachinstitute.com/cmd.php?cmd=cart">View Cart</a> <span class="login-spacing">|</span> ';
echo '<a href="http://workplacecoachinstitute.com/?s2member_profile=1">Profile</a> <span class="login-spacing">|</span> ';
echo '<a href="http://workplacecoachinstitute.com/wp-login.php?action=logout">Logout</a>';
echo '</p>';
}
else
{
echo '<p>';
echo '<a href="http://www.workplacecoachinstitute.com/cmd.php?cmd=cart">View Cart</a> <span class="login-spacing">|</span> ';
echo '<a href="http://workplacecoachinstitute.com/wp-login.php?redirect_to=' . rawurlencode ($_SERVER["REQUEST_URI"]) . '">Login</a>';
echo '</p>';
}
?>
Users browsing this forum: Exabot [Bot] and 3 guests