Community Support Forums — WordPress® ( Users Helping Users ) — 2010-06-22T12:59:03-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=264 2010-06-22T12:59:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=264&p=1034#p1034 <![CDATA[Re: Members Can't Logout]]> Statistics: Posted by Jason Caldwell — June 22nd, 2010, 12:59 pm


]]>
2010-06-22T11:35:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=264&p=1016#p1016 <![CDATA[Re: Members Can't Logout]]> Statistics: Posted by peterjr — June 22nd, 2010, 11:35 am


]]>
2010-06-22T10:52:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=264&p=1000#p1000 <![CDATA[Re: Members Can't Logout]]> http://wordpress.org/extend/plugins/sidebar-login/

s2Member does NOT introduce anything new to your theme by itself. You have to create your own Membership Options Page, Login Welcome Page, and if you want logout links, you can use the tools built into WordPress for that, or apply widgets to a Sidebar, like the one I listed above.

For developers, s2Member makes an API Constant available:

S2MEMBER_LOGOUT_PAGE_URL
This is the full URL to the Membership Logout Page ( the WordPress® logout page ).
Code:
<?php if (S2MEMBER_CURRENT_USER_IS_LOGGED_IN){ ?>
  <a href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">My Account</a>
  | <a href="<?php echo S2MEMBER_LOGOUT_PAGE_URL; ?>">Logout</a>
<?php } ?>

All of s2Member's API Constants are documented inside your WordPress Dashboard, under:
s2Member -> API /Scripting -> Constants

Developers can also just use this built-in WordPress function:
Code:
wp_logout_url()

Statistics: Posted by Jason Caldwell — June 22nd, 2010, 10:52 am


]]>
2010-06-22T10:36:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=264&p=993#p993 <![CDATA[Members Can't Logout]]> Do I have to specify logout pages and links?

Statistics: Posted by peterjr — June 22nd, 2010, 10:36 am


]]>