Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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:
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;

Sponsored Links
Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
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

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Sorry about that, should have tested it first shocked

Well, it should work now. smile Yeah, the "sit tight " screen would be gone.

Joined: Sep 2001
Posts: 93
Member
Member
Offline
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. confused

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Darn, well can you try this?
Code
change
window.location = '$goto';

to this in the added code
window.location = unescape('$_[0]');

Sponsored Links
Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
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);

Joined: Sep 2001
Posts: 93
Member
Member
Offline
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 tipsy ?

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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;'

Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
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

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
according to some of the 56K users on my boards, it's amazingly better smile

Sponsored Links
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 laugh


- Allen wavey
- What Drives You?
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:

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;


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
*hands $5 to Gizzy*

Darn, I figured Charles would miss this one shocked tipsy


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)