I'm just looking for a simple script to add to my header file that adds the text "Login" if they are not currently logged in or "Logout" once they are logged in. Seems simple. I just cant figure it out. Ug.
Thanks for the help.
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™
<?php if(is_user_logged_in()){ ?>
<a href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">Member Home</a>
| <a href="<?php echo S2MEMBER_LOGOUT_PAGE_URL; ?>">Logout</a>
<?php } ?>
<?php if(!is_user_logged_in()){ ?>
<a href="http://domain.com/commons/wp-login.php">Login</a>
<?php } ?>
Users browsing this forum: Bing [Bot] and 0 guests