The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Redirect to a homepage after log out.
I'm not using vbhome. what I have is a regular site not integrated with vb. I'd like my vb to redirect to my homepage after users logout.
|
#2
|
|||
|
|||
Quote:
In login.php, find: Code:
$url = fetch_replaced_session_url($url); eval(print_standard_error('error_cookieclear')); } // ############################### start do login ############################### if ($_REQUEST['do'] == 'login') Code:
$url = 'YOUR HOMEPAGE URL GOES HERE'; eval(print_standard_redirect('Logout', false)); |
#3
|
|||
|
|||
Ok that one works. Also can it have a 2 - 3 second delay so that users can see the options.
|
#4
|
|||
|
|||
i would like to use the same thing but can i set it to close window. my forum opens in new window from flash site. id like logout to then close the window.
plz ty |
#5
|
|||
|
|||
anyone?
|
#6
|
|||
|
|||
Same question for 3.5.2.
Different code in the logout section, so I don't want to do it by trial and error. TIA. |
#7
|
|||
|
|||
Sorry for bumping a 10 month old thread, but it's the only one I found that had the exact same problem I was having.
I'm using 3.5.4 and have the same problem as the guy above - the code is different than the code posted in this thread. How can I redirect to the main site's index.php when logged out? |
#8
|
||||
|
||||
same here <_<
need this for 3.6 |
#9
|
|||
|
|||
Not entirely sure if this is the 'correct' way to handle it, but it works for 3.6.0:
in your login.php file, find: PHP Code:
PHP Code:
|
#10
|
|||
|
|||
2 quick questions:
1) Any way to define the url to redirect to without putting it in the code? If yoyu want to redirect to some page in your domain cant you just use variables that represent the domain the path any parameters and aram values 2) Dont I want to put the exit() function at the END of the code. EX: process_logout(); $vbulletin->url = fetch_replaced_session_url($vbulletin->url); if (strpos($vbulletin->url, 'do=logout') !== false) { $vbulletin->url = $vbulletin->options['forumhome'] . '.php' . $vbulletin->session->vars['sessionurl_q']; } $show['member'] = false; eval(standard_error(fetch_error('cookieclear', create_full_url($vbulletin->url), $vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q']), '', false)); header("Location: /url/to/your/redirect/page"); exit(); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|