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-25-2003 07:38 AM

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; 


Areku 04-25-2003 08:20 AM

Tu!

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

Ihsahn 04-25-2003 08:27 AM

Very nice one ... congratz :)

[high]* Ihsahn clicks Install ![/high]

Tony G 04-25-2003 10:40 AM

Nice mod AL! Might use this one. :)

Zelda-King 04-25-2003 10:48 AM

How about applying this to editpost.php too (I know it has different code)?

Pady 04-25-2003 12:08 PM

great looking hack - i have always hated sitting around waiting for slow sites to load up the new page - good job anime-loo :D

jibious 04-25-2003 01:12 PM

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*

PiotrasG 04-25-2003 04:20 PM

AWESOME hack, works with no problems

Brad 04-25-2003 05:10 PM

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

zajako 04-25-2003 06:52 PM

good work


All times are GMT. The time now is 08:53 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.01137 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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