View Full Version : Remove ALL Redirects, No Bugs, All Browsers
First, I created a new thread or Hack because I myself was having trouble getting this to work out right, although, I really can?t claim full credit for it. Other than thinking to combine a few hacks in a special way I didn?t do much. :)
These 2 hacks together (Sort of, I removed a lot from Anime-loo?s hack) make it work!
Anime-loo (https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=1068)
Remove Posting Redirection (like vB3) (https://vborg.vbsupport.ru/showthread.php?s=&threadid=52098)
Tommy Boy (https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=1890)
Remove Intermediate Redirection Page (https://vborg.vbsupport.ru/showthread.php?s=&threadid=32564)
What does this hack do?
This hack will remove ALL intermediate redirection messages from all pages (vB 3 style). In addition, when posting a reply to a thread you will be taken to the correct post, i.e. The post that was just created by yourself. This hack will work with all browsers.
Also, this hack works with the quick reply box just in case you were wondering.
Difficultly?
Easy: Edit 2 php files, admin/functions.php and newreply.php. Add one line of code and change 2 lines of code.
See attached text file for instructions. :D
UPDATE 9/26/2003
For instructions on using this hack in vB version 2.3.2 please click below:
https://vborg.vbsupport.ru/showpost.php?p=436791&postcount=71
Curll
06-02-2003, 10:29 PM
Hell yeah, Nomb! Installing it now!
Curll
06-02-2003, 10:46 PM
Nomb, you are a prince among men :D
- RiZ
This is VERY similar to: https://vborg.vbsupport.ru/showthread.php?s=&threadid=53457&highlight=redirections
:ermm:
WEForums
06-02-2003, 11:24 PM
Today at 12:50 AM 006 said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=403596#post403596)
This is VERY similar to: https://vborg.vbsupport.ru/showthread.php?s=&threadid=53457&highlight=redirections
:ermm: That hack, however, has a lot of instructions and even an MySQL query. I think this one looks a lot easier and most likely better.
Not sure about it being anything new as it has been done by a lot of people, but still looks pretty good. I think I am going to try it.
Erwin
06-03-2003, 12:10 AM
LOL! Very smart, using newpost rather than the postid in newreply. Now, why didn't I think of that! Good work.
alkatraz
06-03-2003, 12:31 AM
that was painlessly easy! THANK YOU!!!
blackice912
06-03-2003, 01:19 AM
Dude, thumbs up on this one.
Today at 07:10 PM Erwin said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=403637#post403637)
LOL! Very smart, using newpost rather than the postid in newreply. Now, why didn't I think of that! Good work.
Bout time someone said something about this ... *nudge* :p
pucca
06-03-2003, 02:29 AM
Wow, amazing. :) Thanks!
Lethal
06-03-2003, 03:45 AM
hmm, i have the other one installed now. I think I might use this one. Thanks good job.
matthepepe
06-03-2003, 04:28 AM
works great, that was a great idea on how this one functions.
Yesterday at 08:10 PM Erwin said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=403637#post403637)
LOL! Very smart, using newpost rather than the postid in newreply. Now, why didn't I think of that! Good work.
Not so great if you haven't read a few pages it won't take you to the last page.
Like how these forums are, it takes you to the top are a reply and my lazy self has to scroll down again. It's annoying..
Chris M
06-03-2003, 09:01 AM
That is strange, because my version (similar to Karsten's) works perfectly and takes me to my last post:)
Nice idea though;)
Satan
WEForums
06-03-2003, 10:05 AM
Why not use the postid? You could do showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forumid but it still takes you to the post ID.
Anyway, what's bad about it?
Today at 12:50 AM Opie said this in Post #13 (https://vborg.vbsupport.ru/showthread.php?postid=403743#post403743)
Not so great if you haven't read a few pages it won't take you to the last page.
Like how these forums are, it takes you to the top are a reply and my lazy self has to scroll down again. It's annoying..
What are you talking about? I don't understand?
WEForums
06-03-2003, 01:03 PM
Apparently vB.org does not redirect to the postid after a reply. Happens to me as well.
EDIT: I dunno, sometimes it does and sometimes it doesn't. I have ADSL and I let the page sit there for a few seconds after it says Done and still nothing happens (occasionally).
Chris M
06-03-2003, 01:41 PM
Hmm...
I haven't noticed at vB.org, but at one of the developing sites I have it works fine:)
Edit: And it just re-directed me to my post just now;)
Satan
sphinx
06-03-2003, 01:46 PM
very good m8 well done
OmaniMan
06-03-2003, 04:07 PM
Great Hack :) ...
OmaniMan Has Install It *
corsacrazy
06-03-2003, 04:32 PM
remarcably ez 2 install ;)
drumsy
06-03-2003, 06:16 PM
Installed! :)
SouledOut
06-03-2003, 08:35 PM
GREAT HACK! Now no one can critize my "Your being transfered back to your thread in 5...4...3...2...1..." message :-P and that many less templates I dont need to worry about.
SpeedStreet
06-04-2003, 02:25 AM
ooh..I think I will try it
SpeedStreet
06-04-2003, 02:32 AM
Wow...this rocks.
Nice work, very slim and tidy!
SpeedStreet
06-04-2003, 02:33 AM
ooh...I do see it though...Every now and again, it kicks me back to the first page of a thread, and not to my post.
Crazy Pete
06-04-2003, 08:04 PM
Excellent hack, I've been looking forward to this ever since I saw vb3. It's a subtle change, but it really does seem to increase speed on the boards, or at least give that impression. Great job!
Yesterday at 09:33 PM SpeedStreet said this in Post #26 (https://vborg.vbsupport.ru/showthread.php?postid=404180#post404180)
ooh...I do see it though...Every now and again, it kicks me back to the first page of a thread, and not to my post.
Happened to me a couple times here (at vB.org) too.
I think vB.org needs to use this hack. ;)
EDIT: yea, vB.org is passing:
https://vborg.vbsupport.ru/showthread.php?s=&postid=12345
It's not adding the #12345 at the end
Erwin
06-04-2003, 09:54 PM
The intermittent problem at vB.org is fixed now. :)
KelteN
06-07-2003, 11:00 PM
Works great! Thanks man!
Parker Clack
06-08-2003, 05:16 PM
On my board it doesn' take you to the last post but the 1st new post in the thread since you last logged on. Anyway around this?
Parker
Erwin
06-09-2003, 01:50 AM
Today at 04:16 AM Parker Clack said this in Post #31 (https://vborg.vbsupport.ru/showthread.php?postid=406177#post406177)
On my board it doesn' take you to the last post but the 1st new post in the thread since you last logged on. Anyway around this?
Parker
Change newpost to lastpost and see if that works better.
S.Shady
06-09-2003, 02:32 AM
I nominate this for the best damed hack ever made :) thank you works perfectly on 1.1.0 ;)
offtopic
-erwin i feel sorry who had to type that email domain ban list
/offtopic
Anyone got this on 2.2.9 ?
cirisme
06-09-2003, 01:51 PM
Yes.
Yesterday at 12:16 PM Parker Clack said this in Post #31 (https://vborg.vbsupport.ru/showthread.php?postid=406177#post406177)
On my board it doesn' take you to the last post but the 1st new post in the thread since you last logged on. Anyway around this?
Parker
This kinda shouldn't happen, err, sorta. I'm confused about how Jelsoft has a users lastvist and lastactivity. The query for goto=newpost grabs the postid where the dateline is greater than the users lastvist. For some reason lastvisit isn?t updated all the time like lastactivity is. I have no idea why they have two fields, lastactivity and lastvisit?!?
Like Erwin said, change:
goto=newpost
To:
goto=lastpost
The query for goto=lastpost simply finds the last post in the thread (The one you posted).
My text file in the original post has been updated.
Erwin
06-10-2003, 02:33 AM
Yesterday at 01:32 PM S.Shady said this in Post #33 (https://vborg.vbsupport.ru/showthread.php?postid=406355#post406355)
offtopic
-erwin i feel sorry who had to type that email domain ban list
/offtopic
I didn't. eva2000, a vB.com team member, did it. :) I just link to it.
S.Shady
06-10-2003, 04:49 PM
i didnt say you did. :) i just said i feel sorry for who did :) Must have taken awhile and to recheck them for errors :( i would have quit. lol
dslteam
06-11-2003, 05:53 PM
I have installed it (2.2.9) but since i did it, the popup notification of the private messages doesn't word !!! it comes no popup!
any idea?
This would not affect the pm popup. That is a global eval() that simply displays a template and has nothing to do with standard redirects.
TheComputerGuy
06-11-2003, 06:58 PM
good job, I like it alot!
Parker Clack
06-12-2003, 03:29 AM
Nomb:
It is working like a charm.
Now if someone could just ocme up with a new search function so the search function doesn't drag down the site.
Thanks for the wonderful hack.
Parker
Erwin
06-12-2003, 03:35 AM
Today at 02:29 PM Parker Clack said this in Post #42 (https://vborg.vbsupport.ru/showthread.php?postid=407864#post407864)
Now if someone could just ocme up with a new search function so the search function doesn't drag down the site.
Check out the hack in the Beta Hacks forum that uses native MySQL search to do vB searches, saving you lots of server load, as well as removing the need for searchindex. :)
bloodcult
06-14-2003, 02:24 PM
i have the same problem as dslteam...
i installed on 2.3.0 and the popupnotification is not working...
i will try to reproduce the error... but i think... the redirection has nothing to do with javascript vom popup?
bloodcult
06-14-2003, 03:20 PM
sorry 4 post... comment out, comment in and it works?!
jamoss
06-15-2003, 02:15 AM
Got it! Thanks.
For the PM redirects, edit private.php
Find this line:
eval("standardredirect(\"".gettemplate("redirect_pmthanks")."\",\"private.php?s=$session[sessionhash]\");");
Comment it out and put this one after it:
HEADER("LOCATION: private.php?s=$session[sessionhash]");
Erwin
06-15-2003, 04:24 AM
You don't need to edit the private.php to get rid of the redirects - the functions code will fix it.
Also, the PM popup is NOT affected by this hack. It has been working on my private forums for over a year, and PM popup works without problems.
anyone see what this guy posted here:
https://vborg.vbsupport.ru/showthread.php?postid=394468#post394468
faster and easier edit. Works great on 2.3.0, read my post under his too.
PurpleCow
08-04-2003, 05:12 AM
Besides This benefit :
it really does seem to increase speed on the boards, or at least give that impression.
What other benefit this hack offers when installed ??
I'd be interested to know more before installing it.
Thank you
Yesterday at 11:43 PM Opie said this in Post #48 (https://vborg.vbsupport.ru/showthread.php?postid=423026#post423026)
anyone see what this guy posted here:
https://vborg.vbsupport.ru/showthread.php?postid=394468#post394468
faster and easier edit. Works great on 2.3.0, read my post under his too.
That's exactly what this hack is. Except there's an extra portion so you are redirected to your own post after making a reply.
Although, after thinking about this I need to write my own little goto function similar to goto=newpost so that it takes you to the last post made by yourself. Because on busy boards things get tricky and you end up in different places if others have made replies while you were typing yours.
No time now, maybe erwin has done this, and maybe vB 3 does this as well, dunno, and haven?t looked.
Oh cool. I thought I downloaded this hack before for some reason.
drumsy
08-13-2003, 12:10 AM
How do I make this 2.3.2 compliant?
Floris
08-13-2003, 05:42 PM
This hack doesn't work on 2.3.2 - it does post the threads and new replies, but it doesn't redirect. It gives a invalid thread id or forumid error. It is the header part in functions.php that is wrong. (maybe $ url changed)
silvershad0w
08-15-2003, 05:37 AM
When I upgraded to 2.3.2, I was surprised to find this didn't work any more. I decided than rather mess with a hack, I would try this. I like the output, it is slightly slower, but faster than w/ redirects. Plus is is super easy, even for a non-coder like me :)
Changed standardredirect template:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>$pagetitle</title>
<meta http-equiv="Refresh" content="0 ; URL=$url">
$headinclude
</head>
<body>
<!-- <br><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="95%" align="center">
<tr align="center" valign="middle">
<td>
<table border="0" cellspacing="1" cellpadding="10" bgcolor="#0A293E" width="70%">
<tr>
<td bgcolor="#0E3652" align="center">
<p> <normalfont><b>$errormessage</b> <br><br> </normalfont>
<smallfont> <a href="$url">Click here if you do not want to wait any longer<br>
(or if your browser does not automatically forward you)</a> </smallfont> </p></td>
</tr>
</table>
</td>
</tr>
</table> -->
</body>
</html>
Alien
08-16-2003, 10:50 PM
I hope this is updated, otherwise I'll just use the others I suppose. :)
Definatly had to uninstall it after 2.3.2 upgrade.
Floris
08-18-2003, 12:55 PM
mist, firefly and I had a short look at it and they came up with:
header ("Location: $bburl/".str_replace("&","&",$url));
This worked, but unfortn. when someone is trying to login, they are redirected to a page with the forum//forum/index.php?s=sessionhashhere which ofcourse, results in a 404.
Some other 404 errors were reported too, so - this isn't bullet proof.
Maybe someone understands how to make a nice little fix :)
Dean C
08-18-2003, 01:02 PM
if($bbuserinfo['userid'] != 0)
{
header ("Location: $bburl/".str_replace("&","&",$url));
}
?
Floris
08-18-2003, 01:06 PM
lets try
Dean C
08-18-2003, 01:11 PM
Try this:
if($bbuserinfo['userid'] != 0)
{
header ("Location: ".str_replace("&","&",$url));
}
Floris
08-18-2003, 01:21 PM
thaz a no go :)
Dean C
08-18-2003, 01:22 PM
Actually try this:
if($bbuserinfo['userid'] != 0)
{
header ("Location: $bburl/".str_replace("&","&",$url));
} else {
if (preg_match("/^.*\/member\.php$/", $_SERVER['PHP_SELF']))
{
header ("Location: /".str_replace("&","&",$url));
}
}
DeadGaze
08-20-2003, 04:29 AM
very nice and will come in handy indeed
Alien
08-27-2003, 06:17 AM
Did the above work? I'd like to re-add this to my site since the 2.3.2 upgrade. :)
N FUL FX
09-01-2003, 12:55 PM
Ditto.
father max
09-01-2003, 06:26 PM
beautiful...thank you!
: )
drumsy
09-09-2003, 04:58 PM
Does anyone know what to do to make this 2.3.2 compatible?
N FUL FX
09-09-2003, 08:21 PM
Yes please!!! Seems like no one is responding anymore. I need it to work for 2.3.2 as well.
Bump-i-ty Bump. I'm waiting too :)
legendarysk8er
09-16-2003, 06:43 PM
Yes, I need it for 2.3.2....
Nitesh
09-19-2003, 11:02 AM
Any luck on getting this to work on 2.3.2?
For version 2.3.2:
Using the instructions in the original hack replace this:
header ("Location: $url");
with this
header ("Location: ".str_replace("&","&",$url));
PAINTBALLM
10-07-2003, 09:00 AM
works great, that was a great idea on how this one functions.
yay its matt, haahaaha....
Installed! Props to you my friend. Keep it up!
magnus
11-13-2003, 11:03 AM
I'm having the same problem as someone else mentioned, lastpost isn't taking the user to the last post, instead, it's taking them to the last page and making them scroll down to find the latest post. I've been getting numerous gripes about it, heh.
deaconxgp
01-01-2004, 02:52 AM
same here magnus
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.