![]() |
Remove Posting Redirection (like vB3)
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 |
will this affect the way vbulletin performs? Why would the developers add the posting redirection if it wasn't required somehow? plz let me know cuz i'd like to install this
|
Quote:
|
Quote:
I found a way of getting the url without the extra pageload (redirection). I have it running on my board and the members are loving it. The only change im seeing in performance is a big speed up on the users end when it comes to posting. ;) :) |
:) glad to see you got this working. I think I'm going to check it out
|
Interesting... I'm definitely giving this a try! *Whaps Install* :)
|
I use a different version, but nice work getting the URL variable to be passed. :)
vB3 doesn't have redirection pages either. ;) It's not needed. I haven't had them for over a year with no problems. |
Thanks Erwin, ive been trying to do this for awhile and never found a 'working' hack for it. If you dont mind can you pm me a link to your forums, i know its a private url you dont give out but ive been wanting to see it for ages cause it sounds like youve done alot of work there :).
|
Lovely!!!!!
/me licks install!! |
Uh oh
I think I never hacked the redirection stuff, but I only got these in vb 2.2.0: // redirect if ($prevpost[visible]) { $goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid"; } else { $goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid"; } eval("standardredirect(\"".gettemplate("redirect_p ostthanks")."\",\"$goto\");"); AND // redirect if ($visible && !$returntowhere) { $goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid"; } else { if ($returntowhere=="forumhome") { $goto="index.php?s=$session[sessionhash]"; } elseif ($returntowhere=="thread") { $goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid"; } else { $goto="forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]"; } } eval("standardredirect(\"".gettemplate("redirect_p ostthanks")."\",\"$goto\");"); 1st is fine but second does not match... ideas? |
Use this for the second one:
PHP Code:
|
Tu!
Ps. Is it me or u missed a ; after the last header sentence? |
Very nice one ... congratz :)
[high]* Ihsahn clicks Install ![/high] |
Nice mod AL! Might use this one. :)
|
How about applying this to editpost.php too (I know it has different code)?
|
great looking hack - i have always hated sitting around waiting for slow sites to load up the new page - good job anime-loo :D
|
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* |
AWESOME hack, works with no problems
|
Quote:
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. :) |
good work
|
great hack....only one problem i encountered....
this hack code interferes with Xenon's Prevent Double Posting hack found Here any help? if needed, i'll post my code up:P |
Xenon's Prevent Double Posting hack fix:
---------------------------- Open newreply.php ---------------------------- Find: PHP Code:
PHP Code:
|
THANKS!!!!!!!!
*dances*....awesome hack *clicks install becuz he forgot earlier* heh *dances* |
Quote:
Just tried installing it but my code is much different... your code says to find: [code]// redirect if ($prevpost[visible]) { $goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid"; } else { $goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid"; } eval("standardredirect(\"".gettemplate("redirect_p ostthanks")."\",\"$goto\");");[/quote] But My code looks like this: Code:
// redirect |
Looks like you installed the open/close checkbox option for mods and admins.
At any rate the code block you gave me is incomplete so I cant give you a fix. Link me to the hack you have installed (so I can add it to the issues list and make a fix) or give me the compleate block (from // redirect to where redirect_postthanks is evaled) and ill provide you with a fix. |
**claps hands** amazing :> I h8 that loading page (cause i got 56k) so sometimes ur starin at it for agessss.
Thank youuuuuuuuuuuuu **clicks install loadsss of times :p ** |
You wouldn't have to edit anything else if you're using quick reply would you?
|
Nope, the hack works perfectly with the quick reply box.
|
I'm having problems, both newreply and newthread are giving parse errors. Maybe it's related to that missing semicolon?
Edit: Figured it out. |
Excellent job, it works perfectly for me! :)
I look forward to your editpost modification! |
Nice hack. Thanks!
|
Ok, one problem left. This line is giving me a parse error in newthread.php:
PHP Code:
EDIT: I just figured out that it's not that line, but the line below it. I still can't figure it out though... |
well, taking a look at the line below this, you get:
Code:
eval("standardredirect(\"".gettemplate("redirect_buildingpoll")."\",\"$goto\");"); redirect_buildingpoll i'd take the guess that you didn't :) |
I did.
|
nice.
|
nice. I had previously used another hack to remove re-directs, but removed it and use this one. I like that you have re-directs where needed, and removed the ones that aren't.
|
Awesome hack! Works just fine on 2.3.0.
|
Great hack, installed perfectly :D
|
When submitting a post through the QRB, I get a little javascript error in my task bar. Then it goes away and works like normal. Any idea where this may be from?
|
what about removing the re-directs from search?
|
All times are GMT. The time now is 03:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|