vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How do I redirect to specific URL after logout? (https://vborg.vbsupport.ru/showthread.php?t=217855)

joyfulmiller 07-04-2009 09:48 PM

How do I redirect to specific URL after logout?
 
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 09:12 PM

bump

borbole 09-29-2010 12:26 PM

Quote:

Originally Posted by joyfulmiller (Post 1842922)
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:

PHP Code:

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

And replace
Code:

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

Quote:

Originally Posted by tjhanes (Post 2144436)
Works perfect, thanx!

Quote:

Originally Posted by amorosso (Post 2148895)
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 02: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 03: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

Quote:

Originally Posted by borbole (Post 2104625)
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:

PHP Code:

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

And replace
Code:

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


All times are GMT. The time now is 10:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01494 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete