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
Remove Posting Redirection (like vB3) Details »»
Remove Posting Redirection (like vB3)
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 04-24-2003 Last Update: Never Installs: 47
 
No support by the author.

Hack: Remove posting redirection.

By: Anime-loo

Current Version:
Pre Release: [high]1.2pr 1[/high]
Stable: [high]1.1[/high]

[high]What dose this do?[/high]

This hack will removed the redirection pages that apper after posting a reply/thread. Insted of seeing a "Thanks for posting, we are now sending you to..." message before a user is sent to their post, they are sent directly to it. On 56k ive noticed a big improvement in speed.

[high]Latest news:[/high]

12 - 26 - 2003:

Version 1.2 pre release 1 released, this version answers the request(s) of many that are using this hack. That is no redirection screens after editing a post or deleting it.

If you are using 1.1 you can upgrade to 1.2pr 1 via the second attachment in this post. At this time there is no install file for 1.2 pr 1, install 1.1 then upgrade.

[high]Modification info:[/high]

5 ([high]8 for 1.2 pr 1[/high]) file edits
(files: newreply.php, newthread.php, poll.php, editpost.php ([high]1.2 pr 1 only[/high]))
1 new template

Issues with other hacks: [high]READ BEFORE INSTALLING!![/high]

Xenon's Prevent Double Posting hack --

One extra code edit to newreply.php is required if you have this hack installed. [high][click here for the fix][/high]


Version History:
version 1.2 pr 1 update released!

-- Got rid of redirection after editing/deleting posts

([high]Un-tested, upgrade at own risk!![/high])

version 1.1 released! ([high]Stable[/high])

-- got rid of redirection page after posting poll
-- added custom template for redirection page if poll option is click on newthread/reply

version 1.0 released

-- Frist code release to public

Show Your Support

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

Comments
  #12  
Old 04-25-2003, 07:38 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use this for the second one:

PHP Code:
// redirect
if ($visible && !$returntowhere) {
$goto="showthread.php?s=$session[sessionhash]&postid=$postid&goto=newpost";
} else {
if (
$returntowhere=="forumhome") {
$goto="index.php?s=$session[sessionhash]";
} elseif (
$returntowhere=="thread") {
$goto="showthread.php?s=$session[sessionhash]&postid=$postid&goto=newpost";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]";
}
}
@
header ("Location: $goto")
exit; 
Reply With Quote
  #13  
Old 04-25-2003, 08:20 AM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tu!

Ps. Is it me or u missed a ; after the last header sentence?
Reply With Quote
  #14  
Old 04-25-2003, 08:27 AM
Ihsahn Ihsahn is offline
 
Join Date: Mar 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice one ... congratz

[high]* Ihsahn clicks Install ![/high]
Reply With Quote
  #15  
Old 04-25-2003, 10:40 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod AL! Might use this one.
Reply With Quote
  #16  
Old 04-25-2003, 10:48 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about applying this to editpost.php too (I know it has different code)?
Reply With Quote
  #17  
Old 04-25-2003, 12:08 PM
Pady's Avatar
Pady Pady is offline
 
Join Date: Nov 2001
Location: UK
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great looking hack - i have always hated sitting around waiting for slow sites to load up the new page - good job anime-loo
Reply With Quote
  #18  
Old 04-25-2003, 01:12 PM
jibious's Avatar
jibious jibious is offline
 
Join Date: Nov 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe search.php as well?

if you can that is. it uses no // redirect code in the file but rather just the templates already created (same with editpost.php). which, i'm guessing, is the reason you didn't do this in the first place.

*installed*
Reply With Quote
  #19  
Old 04-25-2003, 04:20 PM
PiotrasG's Avatar
PiotrasG PiotrasG is offline
 
Join Date: Sep 2002
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME hack, works with no problems
Reply With Quote
  #20  
Old 04-25-2003, 05:10 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:20 AM Areku said this in Post #12
Tu!

Ps. Is it me or u missed a ; after the last header sentence?

Yea I did, sorry about that.


Zelda-King: I like to let the user know that the changes have been saved via the redirect, but ill look into it for you.

jibious: ill look into that to.
Reply With Quote
  #21  
Old 04-25-2003, 06:52 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work
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 01:41 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.04965 seconds
  • Memory Usage 2,308KB
  • 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_php
  • (1)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
  • (3)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