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)

ImportPassion 05-02-2003 01:06 AM

I would love to see more pages updated with this, as would all of us I think.

D

Opie 05-02-2003 03:11 AM

Quote:

04-25-03 at 10:44 PM Anime-loo said this in Post #22
Xenon's Prevent Double Posting hack fix:

----------------------------
Open newreply.php
----------------------------

Find:

PHP Code:

if ($visible) {
            
$goto "showthread.php?s=$session[sessionhash]&postid=" $lastpost['postid'] . "#post" $lastpost['postid'];
              } else {
            
$goto "forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]";
              }
              eval(
"standardredirect(\"".gettemplate("redirect_postthanks")."\",\"$goto\");");
              exit;     
      } 

Replace with:

PHP Code:

if ($visible) {
            
$goto "showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$threadid";
              } else {
            
$goto "forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]";
              }
              @
header ("Location: $goto");
              exit;     
      } 

// Dev note - if user has double posted he had the last post in thread anyway. Showthread link was changed because of this.

Everything works find and all, but when I post it doesn't take me to my post, takes me to the first page. I have the double post hack installed and really don't want to uninstall it because of this.

Is there some code to add or something?

Another thing is that it doesn't do it on ome new forums I added..

Seems to only do it every now and then.. any ideas?

sonic3d 05-05-2003 09:34 PM

this hack is conflicting with the multi-quote hack. if u want to quote a person it will just reply with only the quote. it will not take you to the screen to add ur comments. is there neway to fix this?

l8er
sonic

exTracT 05-06-2003 08:58 AM

does this hack work with 2.2.8?

Boofo 05-06-2003 09:11 AM

Quote:

Yesterday at 05:34 PM sonic3d said this in Post #43
this hack is conflicting with the multi-quote hack. if u want to quote a person it will just reply with only the quote. it will not take you to the screen to add ur comments. is there neway to fix this?

l8er
sonic

Recheck your code. I have the multi-quote hack installed and it runs fine with this hack.

exTracT - I am running it with 2.2.9 so, yes, it will work fine with 2.2.8. ;)

Martin64 05-06-2003 09:42 AM

Works good, nice job. :)

mymilkexpired 05-06-2003 07:32 PM

Im liking this hack alot! i have many users who are going to like it :)

Any luck on doing this to the other pieces? Seach, Edit, etc....

sonic3d 05-06-2003 09:10 PM

Quote:

Today at 05:11 AM Boofo said this in Post #45
Recheck your code. I have the multi-quote hack installed and it runs fine with this hack.

exTracT - I am running it with 2.2.9 so, yes, it will work fine with 2.2.8. ;)

which one do u have installed?
chens or xiphoid

i will recheck it agian but iam sure that i will get the same results

l8er
sonic

Boofo 05-06-2003 09:18 PM

They are the same hack. ;)

week9 05-07-2003 04:58 AM

thanks

OmaniMan 05-13-2003 04:53 AM

Woow .. Its Great ...
I have just tested on Vb2.3.0 .. and worked great

hope to upgrade it to edit whole files :) ...
Well Done Anime - loo ...

xware 05-13-2003 06:21 AM

you can easily do this.
open functions.php in editor

find:
$url = str_replace("\"", "", $url);
header ("Location: $url");
eval("dooutput(\"".gettemplate("standardredirect") ."\");");

replace with:
$url = str_replace("\"", "", $url);
header ("Location: $url");
// eval("dooutput(\"".gettemplate("standardredirect") ."\");");

works well!

Opie 08-04-2003 04:42 AM

Quote:

05-13-03 at 02:21 AM xware said this in Post #52
you can easily do this.
open functions.php in editor

find:
$url = str_replace("\"", "", $url);
header ("Location: $url");
eval("dooutput(\"".gettemplate("standardredirect") ."\");");

replace with:
$url = str_replace("\"", "", $url);
header ("Location: $url");
// eval("dooutput(\"".gettemplate("standardredirect") ."\");");

works well!

works great for me too. Thanks.

except I did this instead since header ("Location: $url"); isn't in my functions (2.3.0)

Code:

find:
$url = str_replace("\"", "", $url);

eval("dooutput(\"".gettemplate("standardredirect")."\");");

replace with:
$url = str_replace("\"", "", $url);
header ("Location: $url");
// eval("dooutput(\"".gettemplate("standardredirect")."\");");


FleaBag 08-12-2003 05:32 PM

Just what the doctor ordered - cheers.

stark427 08-14-2003 10:26 PM

I've just installed it to 2.3.2 with no probs so far :)

"clicks install"

p.s. Not sure what the edit at the function.php is needed for (?) :rolleyes:

MaDCaT75 08-21-2003 08:59 PM

But what about skipping the "the post has been successfully edited" message? :cry:

Brad 12-28-2003 05:27 AM

Quote:

Originally Posted by Alien
Excellent job, it works perfectly for me! :)

I look forward to your editpost modification!

The modifications for editpost.php are now included in this hack, see the frist post for more details.

tiedyetoga 01-16-2004 10:12 PM

For some reason the it doesn't get rid of the redirect page after you make a new thread. Any suggestions?


All times are GMT. The time now is 01:49 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.01146 seconds
  • Memory Usage 1,765KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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