phpSensei Posted August 28, 2007 Share Posted August 28, 2007 I added a feature where user's can login to my forum from the index of my site... everything works, but once the user logs in, it redirects the user to my index page. function do_login_redirect() { global $vbulletin; if ( $vbulletin->url == 'login.php' OR $vbulletin->url == $vbulletin->options['forumhome'] . '.php' OR strpos($vbulletin->url, 'do=logout') !== false ) { $vbulletin->url = $vbulletin->options['forumhome'] . '.php' . $vbulletin->session->vars['sessionurl_q']; } else { $vbulletin->url = fetch_replaced_session_url($vbulletin->url); $vbulletin->url = preg_replace('#^/+#', '/', $vbulletin->url); // bug 3654 don't ask why } $temp = strpos($vbulletin->url, '?'); if ($temp) { $formfile = substr($vbulletin->url, 0, $temp); } else { $formfile =& $vbulletin->url; } $postvars = $vbulletin->GPC['postvars']; ($hook = vBulletinHook::fetch_hook('login_redirect')) ? eval($hook) : false; eval(print_standard_redirect('redirect_login', true, true)); } How would I go about changing this redirect function from Vbulletin, to redirect to its normal page? Link to comment https://forums.phpfreaks.com/topic/66986-vbulletin-question/ Share on other sites More sharing options...
phpSensei Posted August 28, 2007 Author Share Posted August 28, 2007 bump.... nothing? Link to comment https://forums.phpfreaks.com/topic/66986-vbulletin-question/#findComment-336334 Share on other sites More sharing options...
Jessica Posted August 28, 2007 Share Posted August 28, 2007 This is a third-party question...try posting on Vbulletin's forums or find the code in the Vbulletin files. Link to comment https://forums.phpfreaks.com/topic/66986-vbulletin-question/#findComment-336335 Share on other sites More sharing options...
phpSensei Posted August 28, 2007 Author Share Posted August 28, 2007 This is a third-party question...try posting on Vbulletin's forums or find the code in the Vbulletin files. that is the code in the vbulletin files... thanks for the help though. Link to comment https://forums.phpfreaks.com/topic/66986-vbulletin-question/#findComment-336349 Share on other sites More sharing options...
Jessica Posted August 28, 2007 Share Posted August 28, 2007 The code for this function: print_standard_redirect - it's not a PHP function, it's defined somewhere in the code. Link to comment https://forums.phpfreaks.com/topic/66986-vbulletin-question/#findComment-336352 Share on other sites More sharing options...
MadTechie Posted August 28, 2007 Share Posted August 28, 2007 shot in the dark... die($vbulletin->url);//add this for testing if ( $vbulletin->url == 'login.php' OR $vbulletin->url == "HERE" . '.php' //replace HERE with the result from the die (excluding the .php) OR $vbulletin->url == $vbulletin->options['forumhome'] . '.php' OR strpos($vbulletin->url, 'do=logout') !== false ) Link to comment https://forums.phpfreaks.com/topic/66986-vbulletin-question/#findComment-336355 Share on other sites More sharing options...
phpSensei Posted August 28, 2007 Author Share Posted August 28, 2007 thanks, Ill try it. Link to comment https://forums.phpfreaks.com/topic/66986-vbulletin-question/#findComment-336417 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.