Description: I don't know why i thought of this now, but i always thought it was useful. I forgot how the old author 'joetan2004' created it, as the link is down. link to old topic
This hack will get rid of all transition pages, and quickly load the next page.
Credits: joetan2004
Instructions / Other Info:
Code:
in public_common.pl
# find
$goto =~ s/;/&/g;
# add under
print qq~<html><script language="Javascript">n<!--nwindow.location = '$goto';n--></script></html>~; return 1;
edit: i modified it a bit and it looks nicer like this:
Code:
print qq~<html><table border="0" style="border-collapse: collapse" width="100%" id="table1" cellpadding="0"
height="100%"><tr><td><p align="center"><b><font face="Verdana" size="2">Hold on while we take you back to your
post.....</font></b></td></tr></table><script language="Javascript">n<!--nwindow.location = '$goto';n--></script></html>~;
exit(0);
, yeah, the exit part is what is messing it up, bc after the transition it is supposed to clear the cache. you gotta replace the 'exit(0);' with 'return 1;'
Gizmo
Wizard
Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA
Very very nice, I modifide Stamoulis's code just a bit to:
Code:
print qq~<html><body bgcolor="#000000" text="#FFFFFF"><table border="0"
style="border-collapse: collapse" width="100%" id="table1" cellpadding="0" height="100%"><tr><td><p align="center"><b><font face="Verdana" size="2">Hold on while we take you back to your post...</font></b></td></tr></table><script language="Javascript">n<!--nwindow.location = '$goto';n--></script></body></html>~; return 1;
Gizmo
Wizard
Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA
Found something fun, when you're browsing topics with next/previous and you reach the end of the line, it's quite entertaining when you have it say "Please hold while we bring you back to your post"... Cas each time they click next/previous instead of seeing "There are no newer posts" they keep seeing "Please hold while we take you back to your post" lol...
Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
WARNING: The pause between forwards is intentional to allow the server to catch up with itself. Installing this hack may cause unusual side effects and will cause a performance impact.
_________________________
UBB.classic: Love it or hate it, it was mine.