PDA

View Full Version : Redirect stopped working in 3.5


sv1cec
08-19-2005, 12:16 PM
I was using the following code to show a message and then redirect the user to a predefined page:


$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');


The warn redirect template started with:


<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">

etc.
etc.


In vB 3.5 this method of redirection, stopped working. The page created by the template loads fine, but the META instruction is not included. The $url parameter is passed fine, I use it further down and it is there, it's just that the META part is not included.

Any ideas will be sincerely appreciated.

amykhar
08-19-2005, 12:19 PM
Do you need to do the redirect that way for a special reason? The standard

// Send the User to the Updated Page
$vbulletin->url = "userpage.php?do=main&page=$pagenum&userid=".$vbulletin->GPC['userid'] . $vbulletin->session->vars['sessionurl'];

eval(print_standard_redirect('page_saved'));


is so much easier.

sv1cec
08-19-2005, 02:06 PM
I guess so, since I need to present a specific message to the end user, which varies depending on his selections. I'll keep your alternative in mind though.

Tnx