Support Forum

logout page

PS psaudio
psaudio
Member

For some reason the logout page is always going here: /forums/login/?loggedout=true which is a login registration page.

I have gone to components->login and registration and try to add http://www.psaudio.com which is the home page to the logout redirect without any success.  It still goes to /forums/login/?loggedout=true

Probably something stupid I am doing.  Any advice?

12 Answers

New Answer

MP Mr Papa
Mr Papa
Member

look in your sp theme… the spHead.php template file… look for the template function:

sp_LogInOutButton(‘tagClass=spButton spRight’, __sp(‘Log In’), __sp(‘Log Out’), __sp(‘Log in and log out’));

you will want to change it there… so something like

sp_LogInOutButton(‘tagClass=spButton spRight&logOutLink=http://www.psaudio.com/’, __sp(‘Log In’), __sp(‘Log Out’), __sp(‘Log in and log out’));

should get you there…

PS psaudio
psaudio
Member

Um, please forgive my ignorance.  Do you mean the WordPress theme I am using?  

Maybe it’s just terminology, but SP is a plugin.  Where might I find this “sp theme… the spHead.php template file” ?

MP Mr Papa
Mr Papa
Member

no, I meant the sp theme… the theme you are using for simple press… you selected it on forum – themes – theme list… and where your sp theme is stored is set on forum – integration – storage locations…

an sp theme is just like a wp theme (but for the appearance of your forum)… and just like a wp theme it has template files and css files… the spHead.php template file is analogous to the header.php file of many wp themes… your sp theme controls most everything about your forum appearance… you would customize your sp theme if you want to change the appearance or layout of your forum (much like a wp theme does for your posts/pages)…

before editing a theme of ours, we highly recommend you make your own theme (see http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/)… in that same area of the codex will be more info about sp themes…

PS psaudio
psaudio
Member

Thanks Steve.  This sort of worked.  It does take me to the page I wanted but it doesn’t actually log me out.

What I really want is to logout from the forums and wind up in the forums as logged out.  So, if I log out of the main website and I go to the forums, it asks me to login.  I can do that from the SP login and all is fine.  Now, if I logout from the SP site, I’d simply like to go to the SP forums page as a logged out user.

Hope that makes sense.

YS Yellow Swordfish
Yellow Swordfish
Member

Let’s step back here. What I don’t understand is what this is:

/forums/login/?loggedout=true

Do you know where that is coming from because I don’t recognise it….?

PS psaudio
psaudio
Member

I am sorry, I do not have any clue.  Without changing the file Steve suggested, that’s what I get upon logout.

PS psaudio
psaudio
Member

Gosh, I am sorry gents.  It was a plugin (of course) and I disabled it.  Sorry.

PS psaudio
psaudio
Member

I am still struggling though – now that I have disabled the errant plugin, the redirect for logout in the SP preferences area works as advertised.  However, the redirect for registration does not.  Despite what I do when I click on the SP registration button I go here: /wp-signup.php

Can this be worked so I go to a specific page?

MP Mr Papa
Mr Papa
Member

Well, sorry, I misunderstood what you wanted…

look in that same spHead.php file… at the top you will see some definitions for the login form: $loginForm

in the list of default arguments, add

‘link’ => site_url(‘wp-login.php?action=register’, ‘login’),

but change it to what you want… maybe site_url(‘wp-signup.php’);

> Simple:Press Support > Sunday, January 06, 2013 4:57 PM > >postbox-contact.jpg

BR Brandon
Brandon
Member

The register button is not really a redirect by default it sends one to the standard WP register page.
You can change the link on the register button by editing the spHead.php file and changing the line that starts with sp_RegisterButton.

For example

sp_RegisterButton('tagClass=spButton spRight&link=http://mysite.com/register', __sp('Register'), __sp('Register'));

Change mysite.com/register to where you want them to go.

The register link shown when the log-in box opens up may also need to be changed. You can change the link shown there or turn off the display of it entirely.

If you want to do one or the other with that one let us know which and we can show you where.