Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 06-17-2005, 01:53 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default $_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?
Reply With Quote
  #2  
Old 06-17-2005, 01:55 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
print_standard_redirect($redir_phrase, $doquery = true, $forceredirect = false)
Reply With Quote
  #3  
Old 06-17-2005, 01:57 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 06-17-2005, 02:02 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean you want to force redirect messages somewhere in default vB Files in some cases?
Hmm, what about setting $vbulletin->options['useheaderredirect'] = false?
Reply With Quote
  #5  
Old 06-17-2005, 02:05 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 06-17-2005, 02:11 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, does work for me
Reply With Quote
  #7  
Old 07-18-2005, 11:17 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:32 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04065 seconds
  • Memory Usage 2,226KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete