Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Tommy Boy Tommy Boy is offline
Developer Last Online: Oct 2014 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-20-2001 Last Update: Never Installs: 29
 
No support by the author.

For some odd reason, I didn't see any request for such a feature, although as far as I know, vBulletin is the only bulletin board which uses this useless redirection system. I'm talking about the "Thank you for logging in...", "Thank you for posting...", "Please wait while searching...", etc. pages.

This hack (I'm not even sure you can call it a hack, it's just 1 line of code) will get rid of this page. It works with all the browsers, but just in case a VERY old browser is being used, the original redirection system will be used, so basically you have nothing to lose.

In the admin/functions.php file, find:
Code:
eval("dooutput(\"".gettemplate("standardredirect")."\");");
Before it, add:
PHP Code:
header ("Location: $url"); 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-05-2001, 07:41 PM
Streicher Streicher is offline
 
Join Date: Oct 2001
Location: Reinbek, Germany
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack does not work with Opera 6.
Reply With Quote
  #23  
Old 12-07-2001, 05:40 PM
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

many tx Tommy
gr8 hack
Reply With Quote
  #24  
Old 12-08-2001, 01:41 AM
derfelix derfelix is offline
 
Join Date: Nov 2001
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Streicher
This hack does not work with Opera 6.


and also if you post an image in your thread although you use the no-cache headers etc...
somehow in netscape 4.7 it is still the old one in cache!!! have to do a shift reload to see the new one..
with the intermediate page and the same headers it works fine...
Reply With Quote
  #25  
Old 12-08-2001, 03:56 AM
Crinos's Avatar
Crinos Crinos is offline
 
Join Date: Oct 2001
Location: Los Angeles, CA
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone noticed a strange behavior when this hack was installed? My members just brought to me attention that after they reply to a post, it brings them back to the beginning of the thread instead of the message they just posted ...

I tried undoing the redirection hack and now it's working again ... it seems the redirection page is necessary to anchor back to the recent post ... anyone else having this behavior?

I have uninstalled the hack for now until I get some more info
Reply With Quote
  #26  
Old 12-08-2001, 04:12 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Crinos
Anyone noticed a strange behavior when this hack was installed? My members just brought to me attention that after they reply to a post, it brings them back to the beginning of the thread instead of the message they just posted ...

I tried undoing the redirection hack and now it's working again ... it seems the redirection page is necessary to anchor back to the recent post ... anyone else having this behavior?

I have uninstalled the hack for now until I get some more info
I had the same problem and uninstalled the hack because of it. I think there needs to be a little more code in this one to take you where you are supposed to go.
Reply With Quote
  #27  
Old 12-08-2001, 09:56 AM
Meta's Avatar
Meta Meta is offline
 
Join Date: Nov 2001
Location: Germany (north)
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same problem. And didn't find a clue. So i uninstalled it.

Nice that i'm not the only one.

Without redirect there is missing the second parameter in the url.

Instead of

PHP Code:
=&postid=20548#post20548 
it only says

PHP Code:
=&postid=20548 
Reply With Quote
  #28  
Old 12-08-2001, 11:46 AM
Tommy Boy Tommy Boy is offline
 
Join Date: Nov 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like you're right. The reason why I didn't notice it, is because I've set my board to go back to the forum after posting, instead of returning to the thread.

Anyway, I have investigated it for a couple of hours, and it seems to be an Internet Explorer problem, since the header is passed just fine. In other words, IE ignores internal anchors (#post1234) in the Location URL, in this specific case. In my tests, when having an internal anchor in the Location URL, but having it as the only header line, it worked just fine. Therefore, there seems to be another header line which confuses IE in this case, but I haven't been able to find it. If someone could help, it would be great.

In the meantime, you can replace:
PHP Code:
doshutdown();
header ("Location: $url");
eval(
"dooutput(\"".gettemplate("standardredirect")."\");"); 
with
PHP Code:
doshutdown();
header ("Refresh: 0; URL=$url");
// eval("dooutput(\"".gettemplate("standardredirect")."\");"); 
This does not perform "smooth" redirect, as it uses a technique close to the original one vBulletin uses, however it will transfer internal anchors, and it is faster than the original vBulletin redirection. If the internal anchors problem doesn't bother you, you should stay with the original Location line, until we find a better solution.
Reply With Quote
  #29  
Old 01-03-2002, 11:01 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack did not work on my forum, which is 2.0.3. It did not take out the redirection pages. I do have a hack that puts people back to the forum, but this hack changed nothing.
Reply With Quote
  #30  
Old 01-03-2002, 11:26 PM
-.valkyre's Avatar
-.valkyre -.valkyre is offline
 
Join Date: Oct 2001
Location: California
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gutspiller, this is simple: Update your forums

And I love this hack! But I'm not sure about installing it on my forums. Could you (or someone else) make it like the others said? An option to turn it on/off? That would be awesome!
Reply With Quote
  #31  
Old 01-04-2002, 12:48 AM
Tommy Boy Tommy Boy is offline
 
Join Date: Nov 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by -.valkyre
Gutspiller, this is simple: Update your forums

And I love this hack! But I'm not sure about installing it on my forums. Could you (or someone else) make it like the others said? An option to turn it on/off? That would be awesome!
I'll try to find the time for that.
Reply With Quote
Reply


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 09:10 PM.


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.05171 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete