Topic: Change log in / log out redirect ?

Hi

When a user logs in to my forum or logs out I want them to be redirected to my sites homepage

for example - /index.php not /forums/index.php

Can anyone help with changing the redirects?

Re: Change log in / log out redirect ?

The login redirect url can be changed at the line 359 of login.php.

The logout redirect URL can be changed at the line 165.

Re: Change log in / log out redirect ?

Parpalak wrote:

The login redirect url can be changed at the line 359 of login.php.

The logout redirect URL can be changed at the line 165.


I'm having trouble editing this array

redirect(forum_link($forum_url['index']), $lang_login['Logout redirect']);

If I wanted that to basically go back a directory to /index.php how should I change it?


many thanks for your kind help

Re: Change log in / log out redirect ?

Seems like

redirect('http://example.com/index.php', $lang_login['Logout redirect']);

Re: Change log in / log out redirect ?

Parpalak wrote:

Seems like

redirect('http://example.com/index.php', $lang_login['Logout redirect']);

thank you so much worked perfect!