vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Remove Posting Redirection (like vB3) (https://vborg.vbsupport.ru/showthread.php?t=52098)

Brad 04-24-2003 10:00 PM

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

alkatraz 04-25-2003 03:36 AM

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

romanticyao 04-25-2003 03:37 AM

Quote:

Today at 11:36 PM alkatraz said this in Post #2
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
same question...

Brad 04-25-2003 03:39 AM

Quote:

Why would the developers add the posting redirection if it wasn't required somehow?
Mostly to let the user know whats going on, and to pass some important info to the url.

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. ;) :)

Koutaru 04-25-2003 03:48 AM

:) glad to see you got this working. I think I'm going to check it out

Kurayami 04-25-2003 06:07 AM

Interesting... I'm definitely giving this a try! *Whaps Install* :)

Erwin 04-25-2003 06:28 AM

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.

Brad 04-25-2003 06:32 AM

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 :).

Areku 04-25-2003 07:24 AM

Lovely!!!!!

/me licks install!!

Areku 04-25-2003 07:29 AM

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?


All times are GMT. The time now is 09:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01919 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete