PDA

View Full Version : How do I redirect to specific URL after logout?


joyfulmiller
07-04-2009, 10:48 PM
I've read several other threads about how to redirect after logout to a specific URL, but none of them seem to work for me.

I want to be able to direct my paid members to my public homepage after logging out of the forum. I'm assuming I need to add/change something in login.php, but what do I do? I have vBulletin 3.8.3.

I should add that I'm using the integration plugin for aMember as well. When I click logout on my forum, it currently redirects to the aMember login screen.

ethanwa
09-28-2010, 10:12 PM
bump

borbole
09-29-2010, 01:26 PM
I've read several other threads about how to redirect after logout to a specific URL, but none of them seem to work for me.

I want to be able to direct my paid members to my public homepage after logging out of the forum. I'm assuming I need to add/change something in login.php, but what do I do? I have vBulletin 3.8.3.

I should add that I'm using the integration plugin for aMember as well. When I click logout on my forum, it currently redirects to the aMember login screen.

Go to your Acp->Plugins & Products->Add New Plugin.

For Hook Location choose: logout_process

For Title enter whatever name you want

Execution Order leave it to 5

And where it says: Plugin PHP Code enter this code:

$vbulletin->url = 'http://www.logoutredirecturl.com';
standard_redirect();

And replace http://www.logoutredirecturl.com with the actual url where you want to redirect your members when logging out of your forum

And as last but not least, set to Yes the Plugin is Active option.

tjhanes
01-05-2011, 02:52 PM
Works perfect, thanx!

amorosso
01-14-2011, 11:51 AM
Awesome thank you very much. Was a big help. I was trying to edit a file that never worked. Thanks again.

borbole
01-14-2011, 02:38 PM
Works perfect, thanx!

Awesome thank you very much. Was a big help. I was trying to edit a file that never worked. Thanks again.

You are both welcome :)

Binrock
04-02-2012, 03:07 AM
I added this plugin, set to active and added the necessary domain to the whitelist. I still get an invalid redirect.

Invalid Redirect URL (http://www.augi.com/forum/logout)

Trying to get vbulletin to run normal logout then redirect to a site logout page.

Is there anything wrong with the link shown?

I've got the following in the whitelist?

http://www.augi.com
http://augi.com

Should I add the logout link?

Thanks,

Pandemikk
04-02-2012, 04:03 AM
Add the domain you're redirecting to the whitelist. If that doesn't work, add the full link.

A693BCBAFD72
02-17-2017, 12:28 PM
Go to your Acp->Plugins & Products->Add New Plugin.

For Hook Location choose: logout_process

For Title enter whatever name you want

Execution Order leave it to 5

And where it says: Plugin PHP Code enter this code:

$vbulletin->url = 'http://www.logoutredirecturl.com';
standard_redirect();

And replace http://www.logoutredirecturl.com with the actual url where you want to redirect your members when logging out of your forum

And as last but not least, set to Yes the Plugin is Active option.


PERFECT!

Thanks,
Alex