Welcome, Guest. Please Login or Register.
May 05, 2024, 06:00:05 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  |  Page created in xx seconds?? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Page created in xx seconds??  (Read 3934 times)
Putin
Noobie
*
Posts: 21


Page created in xx seconds??
« on: April 02, 2003, 10:27:56 AM »
Reply with quote

I'd like to add something similar to a yapp board? Anybody can help me please?  ;D
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Page created in xx seconds??
« Reply #1 on: April 02, 2003, 11:30:35 AM »
Reply with quote

add this code at the beginning of index.php, after the version variable:
$time_start = getmicrotime();
function getmicrotime()
{
   list($usec, $sec) = explode(" ", microtime());
   return ((float)$usec + (float)$sec);
}


Subs.php
search for      echo "$curline\n";
add before      if (stristr($curline, '</body>'))
      {
         $time_end = getmicrotime();
         $time = round($time_end - $time_start, 3);
         $curline = preg_replace('/<\/body>/i', '<div align="center"><font size="1">Page created in ' . $time . ' seconds.</font></div></body>', $curline);
      }

and add $time_start to the global statement in footer()
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Putin
Noobie
*
Posts: 21


Re:Page created in xx seconds??
« Reply #2 on: April 02, 2003, 01:52:57 PM »
Reply with quote

thanks for the input!!! :)
Logged
Putin
Noobie
*
Posts: 21


Re:Page created in xx seconds??
« Reply #3 on: April 04, 2003, 02:38:45 PM »
Reply with quote

there must be something wrong I'm getting "Page created in 1049466768.23 seconds" but the page loads fast
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:Page created in xx seconds??
« Reply #4 on: April 04, 2003, 04:12:21 PM »
Reply with quote

Quoteand add $time_start to the global statement in footer()

what you mean with this? in wich file?

thx, Surfy
Logged
Omar Bazavilvazo
YaBB SE Developer
YaBB God
*****
Posts: 2153


I never said I would stay to the end...

WWW
Re:Page created in xx seconds??
« Reply #5 on: April 05, 2003, 07:12:42 AM »
Reply with quote

is already implemented in 1.5.1 :)
Logged

Greetings from México!
http://omarbazavilvazo.com
Mi foro Español-Japonés
http://hablajapones.org
http://hablajapones.org/index.php/japones/tutoriales/b16.php

NO me manden IM para soporte o dudas
...Leo los foros como todos...
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Page created in xx seconds??
« Reply #6 on: April 05, 2003, 07:53:22 AM »
Reply with quote

Quote from: Omar Bazavilvazo on April 05, 2003, 07:12:42 AM
is already implemented in 1.5.1 :)
it's for yapp :P


Quote from: Surfy on April 04, 2003, 04:12:21 PM
Quoteand add $time_start to the global statement in footer()
what you mean with this? in wich file?
in Subs.php, function footer()
its recommended to use yabbse 1.5.1 or pfabb, because yapp is using yse 1.4.1
there are a lot of improvements in yse 1.5.1, including security
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
MagstaBanane
Noobie
*
Posts: 14


Re:Page created in xx seconds??
« Reply #7 on: November 08, 2003, 05:23:04 AM »
Reply with quote

Is there any way to move that text from the bottom of the page into the info box (where the yabb © is...)?

That'd look miles better on my http://www.magstabanane.de/yabbse/ ... :(
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Page created in xx seconds??
« Reply #8 on: November 08, 2003, 07:44:05 AM »
Reply with quote

SMF can do it.

-[Unknown]
Logged
MagstaBanane
Noobie
*
Posts: 14


Re:Page created in xx seconds??
« Reply #9 on: November 08, 2003, 08:39:14 PM »
Reply with quote

What the heck is SMF? :)
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Page created in xx seconds??
« Reply #10 on: November 08, 2003, 11:21:14 PM »
Reply with quote

Quote from: MagstaBanane on November 08, 2003, 08:39:14 PM
What the heck is SMF? :)

http://www.simplemachines.org/

-[Unknown]
Logged
MagstaBanane
Noobie
*
Posts: 14


Re:Page created in xx seconds??
« Reply #11 on: November 09, 2003, 02:25:19 AM »
Reply with quote

I'm sorry, but how will that thingy move any text in my YaBB SE?!
Logged
zoki
Noobie
*
Posts: 40


Have you seen me offline?

ICQ - 46742125
Re:Page created in xx seconds??
« Reply #12 on: November 12, 2003, 09:05:17 PM »
Reply with quote

New version of Yabbse, that is called SMF (Simple Machines) supports the feature that you want.

That's what [Unknown] meant.


Apparently, SMF is not yet available for public, only for charter (special) members.
Logged

All your psychedelics are belong to us!
Thomas
Full Member
***
Posts: 203


WWW
Re:Page created in xx seconds??
« Reply #13 on: December 11, 2003, 10:03:52 PM »
Reply with quote

I have Yabb SE 1,54, and activated the "show the time in seconds". but it doesent show.

I have also cheked that I have the lines that Spaceman-Spiff mentions here, and I have them too.

Is there something other I need?

/Thomas
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Page created in xx seconds?? « 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.017 seconds with 19 queries.