Previous Thread
Next Thread
Print Thread
Rate Thread
#214024 02/20/2002 1:15 PM
Joined: Feb 2002
Posts: 11
Newbie
Newbie
Offline
Joined: Feb 2002
Posts: 11

Hi,

is there way insert page load time ?

D

Sponsored Links
anhdzung #214025 02/20/2002 3:16 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I don't know... what's it look like?

Joined: Feb 2002
Posts: 11
Newbie
Newbie
Offline
Joined: Feb 2002
Posts: 11
Hi,

see here http://www.sitofox.it/forum/ this is snitz forum and in footer there is load time (page)
now see here http://www.sitofox.com/ubbthreads/ubbthreads.php
I want insert load time in this forum

Regards

D

anhdzung #214027 02/20/2002 3:49 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
ohh... I thought you had the code and wanted to know where to place it.

hmmm.. I'm not realy sure about how to set this one up...

anhdzung #214028 02/20/2002 4:51 PM
Joined: May 1999
Posts: 90
Member
Member
Offline
Joined: May 1999
Posts: 90
You mean page generation time?

Sponsored Links
Techster #214029 02/20/2002 4:59 PM
Joined: Feb 2002
Posts: 11
Newbie
Newbie
Offline
Joined: Feb 2002
Posts: 11
Hi,

yes, in how many time server need.

Regards

D

anhdzung #214030 02/20/2002 5:31 PM
Joined: May 1999
Posts: 90
Member
Member
Offline
Joined: May 1999
Posts: 90
edit ubbt.inc.php:

- insert this at the beginning (before the includes):
// start time
$stime = explode(' ', microtime());
$stime = $stime[1] + $stime[0];

- find function send_footer() { and insert
// end time
$etime = explode(' ', microtime());
$etime = $etime[1] + $etime[0];
$rtime = number_format($etime - $stime, 5);

echo '<div align="center" style="font-size: 10px;">' . $rtime . '</div>';
after the $html -> close_table(); line.


- change the "global $config, $theme, $thispath, $VERSION, $ubbt_lang, $timea, $querycounter;" line to:
"global $config, $theme, $thispath, $VERSION, $ubbt_lang, $timea, $querycounter, $stime;


PS. The vars in the original global line above hints that the functionality for this may be already included in the program (timea and querycounter) but it's either not enabled or the actual lines required to display it are not included.

Techster #214031 02/20/2002 6:11 PM
Joined: Feb 2002
Posts: 11
Newbie
Newbie
Offline
Joined: Feb 2002
Posts: 11
Hi,

many thx, but there are problems control please
http://www.sitofox.com/ubbthreads/ubbthreads.php

my file ubbt.inc.php has this line
global $config, $theme, $thispath, $VERSION, $ubbt_lang, $timea;

I'm using ver 5.5

D

anhdzung #214032 02/20/2002 6:44 PM
Joined: May 1999
Posts: 90
Member
Member
Offline
Joined: May 1999
Posts: 90
From the number displayed on your page I'd say you didn't add the $stime to the "global..." line. I don't have neither 5.5 nor 5.5.1 installed so what I've told you above is from one of my scripts and the instructions/line numbers are from looking inside ubbt.inc.php. I used ubbt.inc.php from 5.5.1 as reference so this may explain why yours is slightly different. Regardless of that, if you change 'global $config, $theme, $thispath, $VERSION, $ubbt_lang, $timea;' to 'global $config, $theme, $thispath, $VERSION, $ubbt_lang, $timea, $stime;' it should work.

Techster #214033 02/20/2002 8:11 PM
Joined: Feb 2002
Posts: 11
Newbie
Newbie
Offline
Joined: Feb 2002
Posts: 11
Hi,

thx again, but I'm sure does't work.
If you want download my ubbt.inc.php

sitofox.com
anonymous

i have uploaded ubbt.inc.php

Regards

D

P.S i thin best solution is update to 5.5.1


Sponsored Links

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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
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
Morgan 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 20240506)