|
|
Joined: Feb 2002
Posts: 11
Newbie
|
|
Newbie
Joined: Feb 2002
Posts: 11 |
Hi,
is there way insert page load time ?
D
|
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I don't know... what's it look like?
|
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
|
That 70's Guy
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...
|
|
|
|
|
Joined: May 1999
Posts: 90
Member
|
|
Member
Joined: May 1999
Posts: 90 |
You mean page generation time?
|
|
|
|
|
Joined: Feb 2002
Posts: 11
Newbie
|
|
Newbie
Joined: Feb 2002
Posts: 11 |
Hi,
yes, in how many time server need.
Regards
D
|
|
|
|
|
Joined: May 1999
Posts: 90
Member
|
|
Member
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.
|
|
|
|
|
Joined: Feb 2002
Posts: 11
Newbie
|
|
Newbie
Joined: Feb 2002
Posts: 11 |
Hi, many thx, but there are problems control please http://www.sitofox.com/ubbthreads/ubbthreads.phpmy file ubbt.inc.php has this line global $config, $theme, $thispath, $VERSION, $ubbt_lang, $timea; I'm using ver 5.5 D
|
|
|
|
|
Joined: May 1999
Posts: 90
Member
|
|
Member
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.
|
|
|
|
|
Joined: Feb 2002
Posts: 11
Newbie
|
|
Newbie
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
|
|
|
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: 87
Joined: December 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 1167
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
|
|
|
|