Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-04-2009, 10:48 PM
joyfulmiller joyfulmiller is offline
 
Join Date: Jul 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 09-28-2010, 10:12 PM
ethanwa ethanwa is offline
 
Join Date: Aug 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #3  
Old 09-29-2010, 01:26 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joyfulmiller View Post
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.
Reply With Quote
  #4  
Old 01-05-2011, 02:52 PM
tjhanes tjhanes is offline
 
Join Date: Nov 2008
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfect, thanx!
Reply With Quote
  #5  
Old 01-14-2011, 11:51 AM
amorosso amorosso is offline
 
Join Date: Apr 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome thank you very much. Was a big help. I was trying to edit a file that never worked. Thanks again.
Reply With Quote
  #6  
Old 01-14-2011, 02:38 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tjhanes View Post
Works perfect, thanx!
Quote:
Originally Posted by amorosso View Post
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
Reply With Quote
  #7  
Old 04-02-2012, 03:07 AM
Binrock Binrock is offline
 
Join Date: Jun 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #8  
Old 04-02-2012, 04:03 AM
Pandemikk Pandemikk is offline
 
Join Date: Jul 2009
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add the domain you're redirecting to the whitelist. If that doesn't work, add the full link.
Reply With Quote
  #9  
Old 02-17-2017, 12:28 PM
A693BCBAFD72's Avatar
A693BCBAFD72 A693BCBAFD72 is offline
 
Join Date: Feb 2010
Location: germany
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:14 PM.


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.04841 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete