Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-16T00:31:32-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10034 2011-06-16T00:31:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20911#p20911 <![CDATA[Re: Attention Cristian]]> I will investigate ..................................

Thanks again.

Statistics: Posted by roydellray — June 16th, 2011, 12:31 am


]]>
2011-06-16T00:19:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20906#p20906 <![CDATA[Re: Attention Cristian]]> Statistics: Posted by Cristián Lávaque — June 16th, 2011, 12:19 am


]]>
2011-06-16T00:03:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20902#p20902 <![CDATA[Re: Attention Cristian]]> This was great, and I watched the video too.
This tells me if they are logged in, how do I log them out, or did I miss something

Statistics: Posted by roydellray — June 16th, 2011, 12:03 am


]]>
2011-06-15T23:23:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20901#p20901 <![CDATA[Re: Attention Cristian]]> viewtopic.php?p=9683#p9683

Statistics: Posted by Cristián Lávaque — June 15th, 2011, 11:23 pm


]]>
2011-06-15T23:11:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20900#p20900 <![CDATA[Hi again Cristian and also Jason]]>
So if there is a code snippet either of you could share with me on how to call the s2Member logout function from a custom PHP page I would be most greatful. I have the button already to go, just need the code and what to include.

THANKS :mrgreen:

ps. my pages live in wp-content/mypages

where "mypages" is the name of the folder where most of my cust PH lives, the rest live in wp-includes

Statistics: Posted by roydellray — June 15th, 2011, 11:11 pm


]]>
2011-06-06T00:49:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20163#p20163 <![CDATA[Re: Attention Cristian]]> Statistics: Posted by roydellray — June 6th, 2011, 12:49 am


]]>
2011-06-06T00:43:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20161#p20161 <![CDATA[Re: Attention Cristian]]>

Statistics: Posted by Cristián Lávaque — June 6th, 2011, 12:43 am


]]>
2011-06-05T17:21:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20105#p20105 <![CDATA[Re: Attention Cristian]]>
Cristián Lávaque wrote:
I see. Well, maybe you'll find something helpful with a search like this http://www.google.com.mx/search?q=wordp ... in+outside

If you don't need to bother checking the status of the person, you could have a logout link that's always there /wp-login.php?action=logout&redirect_to=/

Just a quick note here. Something that's bitten me in the past.
WordPress requires a "logout" request to be accompanied by an "nonce" for verification. So the proper way to create a logout link with a redirection, is with this function call. This does the same thing your manual entry accomplishes, but it does it without a warning notification from WordPress.
Code:
<?php echo wp_logout_url("/"); ?>
See: http://codex.wordpress.org/Function_Ref ... logout_url

Statistics: Posted by Jason Caldwell — June 5th, 2011, 5:21 pm


]]>
2011-06-05T17:15:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20104#p20104 <![CDATA[Re: Attention Cristian]]> I am sorry to have bothered you, but as they say, you want the right answers, ask the right people.
I will try this and keep you posted.

Statistics: Posted by roydellray — June 5th, 2011, 5:15 pm


]]>
2011-06-05T11:23:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20083#p20083 <![CDATA[Re: Attention Cristian]]> http://www.google.com.mx/search?q=wordp ... in+outside

If you don't need to bother checking the status of the person, you could have a logout link that's always there /wp-login.php?action=logout&redirect_to=/

Statistics: Posted by Cristián Lávaque — June 5th, 2011, 11:23 am


]]>
2011-06-05T05:35:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10034&p=20073#p20073 <![CDATA[Attention Cristian]]>
As you might recall the question (viewtopic.php?f=4&t=6311#p14153) last time.

I realised what was causing it.

There is a WP page with a button that logged in users land on, this page then (after clicking button) goes off to my custom php pages which dont have the logout bar. The logged in users subsequently don't log out they just close the window.

1. How do I include the logout bar in my custom code and get it to work
2. Can I put a session into a WP Page and how. This will hopefully control the inadvertant logouts

Statistics: Posted by roydellray — June 5th, 2011, 5:35 am


]]>