The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Remove Posting Redirection (like vB3) Details »» | |||||||||||||||||||||||||
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
|
Comments |
#23
|
|||
|
|||
Xenon's Prevent Double Posting hack fix:
---------------------------- Open newreply.php ---------------------------- Find: PHP Code:
PHP Code:
|
#24
|
||||
|
||||
THANKS!!!!!!!!
*dances*....awesome hack *clicks install becuz he forgot earlier* heh *dances* |
#25
|
|||
|
|||
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 if ($visible) { $goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid"; } else { $goto="forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]"; } if ($closeopen) { if (!ismoderator($threadinfo[forumid],'canopenclose')) { $permissions=getpermissions($threadinfo[forumid]); if (!$permissions[canview] or !$permissions[canopenclose]) { show_nopermission(); } else { $firstpostinfo=$DB_site->query_first("SELECT userid FROM post WHERE threadid='$threadid' ORDER BY dateline LIMIT 1"); if ($bbuserinfo[userid]!=$firstpostinfo[userid]) { show_nopermission(); } } } updateuserforum($threadinfo[forumid]); if ($threadinfo[open]) { $threadinfo[open]=0; $action='closed'; } else { $threadinfo[open]=1; $action='opened'; } $threadinfo[notes]="Thread $action by $bbuserinfo[username] on ".vbdate($dateformat." ".$timeformat,time()).". $threadinfo[notes]"; $DB_site->query("UPDATE thread SET open=$threadinfo[open],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'"); eval("standardredirect(\"".gettemplate("redirect_openclose")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");"); |
#26
|
|||
|
|||
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. |
#27
|
||||
|
||||
**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 ** |
#28
|
|||
|
|||
You wouldn't have to edit anything else if you're using quick reply would you?
|
#29
|
|||
|
|||
Nope, the hack works perfectly with the quick reply box.
|
#30
|
|||
|
|||
I'm having problems, both newreply and newthread are giving parse errors. Maybe it's related to that missing semicolon?
Edit: Figured it out. |
#31
|
||||
|
||||
Excellent job, it works perfectly for me!
I look forward to your editpost modification! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|