View Full Version : $_REQUEST['forceredirect']
Link14716
06-17-2005, 01:53 AM
In 3.0.x, you could set $_REQUEST['forceredirect'] somewhere to force a redirect to appear. This, however, no longer works. Is there any method of setting or modifying a variable to force a redirect in 3.5.0?
Andreas
06-17-2005, 01:55 AM
print_standard_redirect($redir_phrase, $doquery = true, $forceredirect = false)
Link14716
06-17-2005, 01:57 AM
That doesn't help if you only want to set it in certain situations and you don't want to edit a standard vB redirect. That is why $_REQUEST['forceredirect'] was useful.
Andreas
06-17-2005, 02:02 AM
You mean you want to force redirect messages somewhere in default vB Files in some cases?
Hmm, what about setting $vbulletin->options['useheaderredirect'] = false?
Link14716
06-17-2005, 02:05 AM
You mean you want to force redirect messages somewhere in default vB Files in some cases?
Hmm, what about setting $vbulletin->options['useheaderredirect'] = false?
I've tried that and it didn't seem to work.
Now I see why - AJAX QR doesn't like to be told to redirect.
I've tried that and it didn't seem to work.
Now I see why - AJAX QR doesn't like to be told to redirect.
Solved. In my particular case it was the AJAX QR. I guess I need to think about these things a little more. $vbulletin->GPC['ajax'] = false; solves the problem.
Andreas
06-17-2005, 02:11 AM
Hmm, does work for me
sv1cec
07-18-2005, 11:17 AM
In the past, I was using the following code to force a redirect:
$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');
Where the warn_redirect template contained the followings:
<META HTTP-EQUIV="REFRESH" CONTENT="1; URL={$url}">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_redirect')"><img id="collapseimg_forumhome_redirect" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>
<div align='center'>Redirecting..</div></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_redirect" style="">
<tr>
<td class="thead" width="100%">Please Wait..</td>
</tr>
<tr>
<td class='alt2' align='center' width='100%'>{$message_left}<br/><br/>Your browser is now redirecting you</td>
</tr>
etc.
etc.
This does not seem to be working anymore. Can you please help?
Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.