Page 1 of 1

logout screen confusion

PostPosted: August 6th, 2011, 5:39 pm
by Jane1
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!

Re: logout screen confusion

PostPosted: August 6th, 2011, 5:58 pm
by Bruce C
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.

Re: logout screen confusion

PostPosted: August 6th, 2011, 7:12 pm
by Jane1
Very cool info:)
This was the text I used and it worked: <?php echo wp_logout_url(); ?>

Thank you!

Re: logout screen confusion

PostPosted: August 6th, 2011, 7:14 pm
by Bruce C
No problem!

Happy I helped!