vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $_REQUEST['forceredirect'] (https://vborg.vbsupport.ru/showthread.php?t=83264)

Link14716 06-17-2005 01:53 AM

$_REQUEST['forceredirect']
 
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

Code:

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

Quote:

Originally Posted by KirbyDE
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.

Quote:

Originally Posted by Link14716
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:

PHP Code:

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

Where the warn_redirect template contained the followings:

HTML Code:

<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


All times are GMT. The time now is 04:02 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.01098 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete