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™

Members Can't Logout

s2Member Plugin. A Membership plugin for WordPress®.

Members Can't Logout

Postby peterjr » June 22nd, 2010, 10:36 am

I just setup s2Member and when I logged in a free member for testing, I can't logout. There is no log out link anywhere. Did I miss something during setup? A link to wordpress admin show at the bottom, but that's it.
Do I have to specify logout pages and links?
User avatar
peterjr
Registered User
Registered User
 
Posts: 2
Joined: June 22, 2010

Re: Members Can't Logout

Postby Jason Caldwell » June 22nd, 2010, 10:52 am

You can either add a Meta widget to your Sidebar in WordPress, or use a plugin like this one:
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: Select all
<?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: Select all
wp_logout_url()
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Members Can't Logout

Postby peterjr » June 22nd, 2010, 11:35 am

Thank you Jason. I got it to work. One of my widget areas wasn't working so I couldn't see the links.
User avatar
peterjr
Registered User
Registered User
 
Posts: 2
Joined: June 22, 2010

Re: Members Can't Logout

Postby Jason Caldwell » June 22nd, 2010, 12:59 pm

Awesome. ~Thanks for reporting back.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests

cron