|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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: 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;
|
|
|
|
Joined: Sep 2001
Posts: 93
Member
|
Member
Joined: Sep 2001
Posts: 93 |
hey thx. 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
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Sorry about that, should have tested it first Well, it should work now. Yeah, the "sit tight " screen would be gone.
|
|
|
|
Joined: Sep 2001
Posts: 93
Member
|
Member
Joined: Sep 2001
Posts: 93 |
well uhm.... my result now is this: Forbidden You don't have permission to access /cgi-bin/ubb/ on this server.
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Darn, well can you try this? change window.location = '$goto';
to this in the added code window.location = unescape('$_[0]');
|
|
|
|
Joined: Sep 2001
Posts: 93
Member
|
Member
Joined: Sep 2001
Posts: 93 |
now it worked if i add the print qq~<html><script language="Javascript">n<!--nwindow.location = '$goto';n--></script></html>~; exit(0); after the "goto...." and not after the "cut..." thx. ! edit: i modified it a bit and it looks nicer like this: 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);
|
|
|
|
Joined: Sep 2001
Posts: 93
Member
|
Member
Joined: Sep 2001
Posts: 93 |
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 ?
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
, 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;'
|
|
|
|
Joined: Sep 2001
Posts: 93
Member
|
Member
Joined: Sep 2001
Posts: 93 |
ok, ehehe, don't worry i tested it out and it seems to work now let's see what else i can find
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
according to some of the 56K users on my boards, it's amazingly better
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
cool, thanks brett
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Very very nice, I modifide Stamoulis's code just a bit to: 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;
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
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...
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
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.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
*hands $5 to Gizzy* Darn, I figured Charles would miss this one
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|