MyBB Community Forums

Full Version: Changing logout page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I am trying to change the url where users are redirected to after they logout. Currently it takes the user to http://www.domain.com/forum/index.php

I would like to change it so it takes the user to http://www.domain.com

can anyone tell me how this is done?
I think you need to edit the member.php

On line 941

Find
redirect("index.php", $lang->redirect_alreadyloggedout);

and line 965

Find
redirect("index.php", $lang->redirect_loggedout);

Change the index.php the where ever you want to go i.e. ../index.php

You can also change the login redirect just above this.

Hope that helps Fishntassie
Forgot to add you can chnge the text for the logout redirect page in the inc/languages/YOUR_LANGUAGE/member.lang.php

just search for "redirect_alreadyloggedout" and "redirect_loggedout"

Cheers Fishntassie...
^^^
Using the search, this thread seemed to be the most recent for "logout redirect?"

(2007-09-15, 12:04 AM)fishntassie Wrote: [ -> ]I think you need to edit the member.php

On line 941

Find
redirect("index.php", $lang->redirect_alreadyloggedout);

and line 965

Find
redirect("index.php", $lang->redirect_loggedout);

Change the index.php the where ever you want to go i.e. ../index.php

You can also change the login redirect just above this.

Hope that helps Fishntassie

Your instructions are very useful, thanks Smile


#######
Update for MyBB 1.4.x

Same idea >>> Find the (above) code in member.php at (or near) line 1153 and 1180.