View Full Version : Redirection after logout
vuzzupp
05-29-2011, 10:17 AM
I was wondering if there was a way of redirecting the user to the previous page automatically after logging out of the forum? At the moment there is text that says, "All cookies cleared" and then it's up to the user to click on "Return to previous page". I would like this to happen automatically.
Many thanks in advance.
borbole
05-29-2011, 11:43 AM
I was wondering if there was a way of redirecting the user to the previous page automatically after logging out of the forum? At the moment there is text that says, "All cookies cleared" and then it's up to the user to click on "Return to previous page". I would like this to happen automatically.
Many thanks in advance.
Can you try this and let me know if it will work?
Create a hook and choose logout_process as the hook name. And at the php code add this code:
standard_redirect();
I haven't tested it but this should do it.
vuzzupp
05-29-2011, 12:13 PM
How do i create a hook, sorry I'm a bit of a novice.
borbole
05-29-2011, 12:16 PM
How do i create a hook, sorry I'm a bit of a novice.
No need to be sorry :)
At the plugin Manager section in your Acp.
vuzzupp
05-29-2011, 12:23 PM
Brilliant, that worked a charm :D
borbole
05-29-2011, 12:29 PM
Brilliant, that worked a charm :D
Glad to hear it :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.