Welcome, Guest. Please Login or Register.
May 02, 2025, 03:13:45 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  This page was generated in..... « previous next »
Pages: [1] Reply Ignore Print
Author Topic: This page was generated in.....  (Read 635 times)
tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

This page was generated in.....
« on: January 18, 2002, 03:36:48 PM »
Reply with quote

Ive got a php script that i would think would be great, ist like the topic says, a generated in X sec script.

Dont know if any of the admins wanna ad it, since its php and cant be added in the template file.

Anyway, heres the file:
<?php
$mtime 
microtime();
$mtime explode(" ",$mtime);
$mtime $mtime[1] + $mtime[0];
$starttime $mtime;

// Here is the page or something :)

$mtime microtime();
$mtime explode(" ",$mtime);
$mtime $mtime[1] + $mtime[0];
$endtime $mtime;
$totaltime = ($endtime $starttime);
printf("<center>This page was generated in %f sec.</center>"$totaltime);
?>

Edit by John R - Just to keep things in the proper format.  Examples of code should be placed inside the code tags.
« Last Edit: April 28, 2002, 05:16:43 PM by John R » Logged

Star wars rules!
Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:This page was generated in.....
« Reply #1 on: January 18, 2002, 03:43:45 PM »
Reply with quote

Is like xmb footer: render time, total kb, total kb gzipped

in xmb it is available only if debugging mode is activated :)
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
klumy
Sr. Member
****
Posts: 432


Re:This page was generated in.....
« Reply #2 on: January 18, 2002, 05:28:58 PM »
Reply with quote

would be a great idea. mabye this can be displayed in the statistics page?
Logged
tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:This page was generated in.....
« Reply #3 on: January 18, 2002, 05:55:26 PM »
Reply with quote

i think it would be great, like an addon or mod or something.
Logged

Star wars rules!
tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:This page was generated in.....
« Reply #4 on: April 27, 2002, 06:33:32 AM »
Reply with quote

you can also just add it to the end of the template.php file, works for me (forum.filmanmelderen.com)
Logged

Star wars rules!
Delinquently insane
Foolish One
YaBB God
*****
Posts: 529


The One Surpassed By God!!!!

Re:This page was generated in.....
« Reply #5 on: April 27, 2002, 07:09:01 PM »
Reply with quote

Works For Me ..Added It To Template.php And It Works Swell  :)
Logged

ALL MODS Cancelled projected terminated
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:This page was generated in.....
« Reply #6 on: April 27, 2002, 09:26:15 PM »
Reply with quote

u shud put that in code brackets
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:This page was generated in.....
« Reply #7 on: April 27, 2002, 09:36:28 PM »
Reply with quote

Quote from: groundup on April 27, 2002, 09:26:15 PMu shud put that in code brackets


why? :)
Logged

Star wars rules!
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:This page was generated in.....
« Reply #8 on: April 27, 2002, 09:43:57 PM »
Reply with quote

if you look, there's already something commented out in Subs.php   look in footer()
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:This page was generated in.....
« Reply #9 on: April 28, 2002, 02:08:41 AM »
Reply with quote

Quote from: tore- on April 27, 2002, 09:36:28 PM
Quote from: groundup on April 27, 2002, 09:26:15 PMu shud put that in code brackets


why? :)

5th line down.. what is that?
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Dic
Noobie
*
Posts: 44


Re:This page was generated in.....
« Reply #10 on: April 28, 2002, 02:58:20 AM »
Reply with quote

lol yes i agree with joesph

look and ye shall find :)
Logged
tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:This page was generated in.....
« Reply #11 on: April 28, 2002, 06:22:52 AM »
Reply with quote

Quote from: Dic on April 28, 2002, 02:58:20 AMlol yes i agree with joesph

look and ye shall find :)


talking to me?
Logged

Star wars rules!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  This page was generated in..... « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.204 seconds with 20 queries.