Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
logout page
Avatar
psaudio
Member
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 3:01 pm

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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 3:25 pm

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...

Avatar
psaudio
Member
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 3:58 pm

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" ?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 4:21 pm

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/.....g-a-theme/)... in that same area of the codex will be more info about sp themes...

Avatar
psaudio
Member
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 5:21 pm

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 6, 2013 - 5:29 pm

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....?

andy-signature.png
YELLOW
SWORDFISH
Avatar
psaudio
Member
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 5:35 pm

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

Avatar
psaudio
Member
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 5:47 pm

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

Avatar
psaudio
Member
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 5:57 pm

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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2013 - 6:48 pm

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

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625