Community Support Forums — WordPress® ( Users Helping Users ) — 2011-02-08T18:48:24-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2146 2011-02-08T18:48:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2146&p=6517#p6517 <![CDATA[Re: Add Login / Logout to top navigation.]]> thanks.

Statistics: Posted by urbanryno — February 8th, 2011, 6:48 pm


]]>
2011-02-08T14:58:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2146&p=6511#p6511 <![CDATA[Re: Add Login / Logout to top navigation.]]>
Code:
<?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 } ?>

It adds an extra link after they've logged in ("member home"), so strip that out if you don't want that feature.

Statistics: Posted by nhsatomom — February 8th, 2011, 2:58 pm


]]>
2011-02-08T06:04:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2146&p=6496#p6496 <![CDATA[Re: Add Login / Logout to top navigation.]]> Statistics: Posted by camillemm — February 8th, 2011, 6:04 am


]]>
2011-02-08T00:27:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2146&p=6491#p6491 <![CDATA[Add Login / Logout to top navigation.]]>
Thanks for the help.

Statistics: Posted by urbanryno — February 8th, 2011, 12:27 am


]]>