Results 1 to 10 of 10

Thread: Remove the re-direction

  1. #1

    Thread Starter
    Addicted Member ProgrammerJon's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    203

    Remove the re-direction

    Would it be possible to remove the redirection window so that it just goes strate to the indended place?

  2. #2

  3. #3

    Thread Starter
    Addicted Member ProgrammerJon's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    203
    I talking about the webpage that is disaplyed for a seccond telling you that you have completed a search or posted a message.

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    It would require a modification of the vBulletin code.
    Anyway, as soon as you've created a new thread, the second you hit the submit button, it does not yet exist as a thread that can be viewed.

    The item has to be added into the vBulletin database first.
    So vBulletin has to redirect the browser somewhere...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by plenderj
    It would require a modification of the vBulletin code.
    Anyway, as soon as you've created a new thread, the second you hit the submit button, it does not yet exist as a thread that can be viewed.

    The item has to be added into the vBulletin database first.
    So vBulletin has to redirect the browser somewhere...
    It exists when you're show the redirection page. I believe there's even a link to "not wait" or something, isn't there?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Yes but think about it.
    You hit the submit button. You don't know what the threadid will be.

    So you're sent to a redirection page, and that brings you to the page thread.
    Otherwise there would be no way for the forum to give your browser the threadid.

    Its the generated redirection page that has it, not the thread creation page.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  7. #7

    Thread Starter
    Addicted Member ProgrammerJon's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    203
    I get it now, but how about setting the delay time to 0?

  8. #8
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Code:
    <meta http-equiv="Refresh" content="1; URL=showthread.php?s=&threadid=xxxxxx">
    Well its 1 second. Perhaps there's a reason for it.
    ie. The threadid has been reserved, but it still might take a little while to enter the data to the DB.

    Actually, what might happen, and this is a complete guess, is that the browser, after 1 second asks for threadid xxxxxx, but if its not available yet, the browser might be given back the redirection page.

    So that way the forum can keep browsers waiting until its ready.
    That's just a guess though
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  9. #9

  10. #10
    Fanatic Member Kings's Avatar
    Join Date
    Aug 2001
    Posts
    673
    The redirects aren't necessary. When you click the submit button the form is posted to a page (e.g post.php?action=post). This page processes this POST request by validating it and entering it in the database. After entering it in the database, the threadid is already available, and a header redirect (e.g header('Location: showthread.php?threadid=23234'); could just be done to the thread.

    There are a few hacks over at vBulletin.org to remove redirects, but I don't think the administrators of this board install hacks.

    vBulletin 3 won't have the redirects by default, and that's coming pretty soon so the redirects will go away soon (as long as the administrator's upgrade that is
    K i n g s

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width