UBB.Dev
Posted By: Brett [6.4 - 6.5 - 6.6 - 6.7] [beta] Quick Transition - 10/25/2003 12:53 PM
Modification Name: Quick Transition

Author(s): Brett

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;
hey thx. smile

i installed it but i am not really sure what does it make ? nothing changed to me ?!

you mean the screen after posting "sit tight... bla bla"? it's still there for me confused
Sorry about that, should have tested it first shocked

Well, it should work now. smile Yeah, the "sit tight " screen would be gone.
well uhm.... my result now is this:

Forbidden
You don't have permission to access /cgi-bin/ubb/ on this server. confused
Darn, well can you try this?
Code
change
window.location = '$goto';

to this in the added code
window.location = unescape('$_[0]');
now it worked if i add the

Code
print qq~<html><script language="Javascript">n<!--nwindow.location = '$goto';n--></script></html>~; exit(0);
after the "goto...." and not after the "cut..." wink

thx. !

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);
uhm well.... it seems like the forum summary page is not updated anymore with the last post time and date.

the public forum summary is okay but not the forum summary page with all the thread listings...

is this a possible bug ? or did I broke sth. else tipsy ?
eek , 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;'
ok, ehehe, don't worry smile

i tested it out and it seems to work now smile let's see what else i can find tipsy laugh
according to some of the 56K users on my boards, it's amazingly better smile
cool, thanks brett laugh
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;
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...
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.
*hands $5 to Gizzy*

Darn, I figured Charles would miss this one shocked tipsy
© UBB.Developers