This Code was provided on the second post and I was wondering where it would go?
- Code: Select all
<?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>';
}
?>
From the Second Post as well:
If they were on the About page and logged in, I would want them to return to the About page.
If they were on the Services page and logged in, I would want them to return to the Services page.
I don't have a lot of PHP experience but am comfortable enough with Wordpress at this point to understand how the files work together (for the most part). This is something my client would like and I've searched the forum for quite a bit, these are the closest to getting what I want that I've found but don't quite understand how to do it.
Thanks in advance for your help!