Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2001
Posts: 1,153
Likes: 83
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,153
Likes: 83
About:
This additional javascript enables modern browsers to forward directly to the next page without needing to load the "middle" acknowledgement page. It removes the "2 second" delay page between new posts, post edits, post deletions...etc. This also eliminates the server building and page downloading of your site's header-page-footer templates, saving a bit of server resources, and bandwidth for the user -- who might be on a data-limited mobile devices.

Because it does not remove the "refresh" meta tag, it keeps the "view post" and "return to the forum" middle-page functionality for older browsers -- which cannot support the "window.location.href" script command. I'm looking at you, IE6!

This is just a quick upgrade in which many users have asked for in the past -- without removing the current functionality for older browsers and browsers with javascript turned off.

How-To:
FIND IN libs/html.inc.php:
Code
$meta = "<meta http-equiv=\"Refresh\" content=\"{$delay};url=" . make_ubb_url("ubb={$redirect['redirect']}", "", false) . "\" />";

REPLACE WITH:
Code
$meta = "<meta http-equiv=\"Refresh\" content=\"{$delay};url=" . make_ubb_url("ubb={$redirect['redirect']}", "", false) . "\" /><script type=\"text/javascript\">window.location.href = \"" . make_ubb_url("ubb={$redirect['redirect']}", "", false) . "\"</script>";

done.


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Sponsored Links
Entire Thread
Subject Posted By Posted
[7.x] Remove the middle acknowledgement page delay isaac 05/08/2014 8:26 AM
Re: [7.x] Remove the middle acknowledgement page delay Bill B 05/08/2014 11:18 AM
Re: [7.x] Remove the middle acknowledgement page delay Gizmo 05/08/2014 11:43 AM
Re: [7.x] Remove the middle acknowledgement page delay isaac 05/08/2014 1:18 PM
Re: [7.x] Remove the middle acknowledgement page delay Bill B 05/08/2014 12:46 PM
Re: [7.x] Remove the middle acknowledgement page delay isaac 05/08/2014 1:02 PM
Re: [7.x] Remove the middle acknowledgement page delay Bill B 05/08/2014 1:20 PM
Re: [7.x] Remove the middle acknowledgement page delay isaac 05/08/2014 1:28 PM

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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,153
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 4540
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 25
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)