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™

logout screen confusion

s2Member Plugin. A Membership plugin for WordPress®.

logout screen confusion

Postby Jane1 » August 6th, 2011, 5:39 pm

Hi,

I've noticed that upon logout, members receive a second screen that says:

"You are attempting to log out of [nothing written here].
Are you sure you want to log out?"

The phrase "log out" is then in a different color which they have to figure out to click on to actually log out.

I asked how to remove this on the wordpress forum and the moderator said to deactivate all plugins (which based on the link below is not correct) and made me check out the S2member forum about this and I found this link which discusses this:

viewtopic.php?f=4&t=165&p=1143&hilit=logout+screen#p1143

However, I am following up on this topic because I changed the logout link as recommended but still get the screen. Do I have to change the php as mentioned above the suggested link though? If so, would you mind saying which file needs to get changed? I thought I'd try to follow up about this here since there was a already a post involving this rather than reexplaining all this on the wordpress forum.

Thank you!
User avatar
Jane1
Registered User
Registered User
 
Posts: 19
Joined: January 17, 2011

Re: logout screen confusion

Postby Bruce C » August 6th, 2011, 5:58 pm

In order to automatically logout without that screen, you have to paste <?php echo wp_logout_url(); ?> as the link's location ( or href ). As in, if you were making a link that said "Logout" and would automatically logout, it would look like this:

Code: Select all
<a href="<?php echo wp_logout_url(); ?>">Logout</a>


In order to do this you have to have Exec-PHP (or something like it) installed.
Last edited by Bruce C on August 6th, 2011, 8:47 pm, edited 1 time in total.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: logout screen confusion

Postby Jane1 » August 6th, 2011, 7:12 pm

Very cool info:)
This was the text I used and it worked: <?php echo wp_logout_url(); ?>

Thank you!
User avatar
Jane1
Registered User
Registered User
 
Posts: 19
Joined: January 17, 2011

Re: logout screen confusion

Postby Bruce C » August 6th, 2011, 7:14 pm

No problem!

Happy I helped!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011


Return to s2Member Plugin

Who is online

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

cron