Welcome, Guest. Please Login or Register.
November 02, 2024, 05:24:31 PM
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  |  German User Help  |  Hilfe zu YaBB SE  |  "Seite erstellt in x.xx Sekunden." « previous next »
Pages: [1] Reply Ignore Print
Author Topic: "Seite erstellt in x.xx Sekunden."  (Read 798 times)
MagstaBanane
Noobie
*
Posts: 14


"Seite erstellt in x.xx Sekunden."
« on: November 11, 2003, 06:47:42 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.3.0
MySQL Version:
Server Plattform: Unix, Linux, or BSD
Link zum Forum: http://www.magstabanane.de/yabbse/

Problem Beschreibung:
Lässt sich dieser Text irgendwie von ganz unten auf der Page in das Copyright-Feld darüber verlegen?

Würde in meinem Fall um einiges besser aussehen. :)

Danke schonmal im Voraus!
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:"Seite erstellt in x.xx Sekunden."
« Reply #1 on: November 12, 2003, 09:30:42 AM »
Reply with quote

Diese Zeitangabe wird in der Subs.php erstellt.
if ($modSettings['timeLoadPageEnable'] == 1 && stristr($curline, '</body>'))
      {
         $time_end = getmicrotime();
         $time = round($time_end - $time_start, 3);
         $curline = preg_replace('/<\/body>/i', '<div align="center"><font size="1">' . $txt['yse301'] . $time . $txt['yse302'] . '</font></div></body>', $curline);
      }

      echo "$curline\n";

Damit kannst Du schon einmal basteln.
Logged

MagstaBanane
Noobie
*
Posts: 14


Re:"Seite erstellt in x.xx Sekunden."
« Reply #2 on: November 12, 2003, 07:00:27 PM »
Reply with quote

Ahhh, sehr schön, vielen Dank! :)
Logged
MagstaBanane
Noobie
*
Posts: 14


Re:"Seite erstellt in x.xx Sekunden."
« Reply #3 on: November 15, 2003, 06:43:43 PM »
Reply with quote

Done:

if ($modSettings['timeLoadPageEnable'] == 1 && stristr($curline, '<yabbbottom>'))
      {
         $time_end = getmicrotime();
         $time = round($time_end - $time_start, 3);
         $curline = preg_replace('/<\yabbbottom>/i', '<div align="center"><font size="1">' . $txt['yse301'] . $time . $txt['yse302'] . '</font></div>', $curline);
      }

      echo "$curline\n";

In der Template:

<td valign="middle" align="center" width="50%" bgcolor="#000000">
                 <font color="#FFFFFF"><yabb copyright><br><yabbbottom></font>
               </td>
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  German User Help  |  Hilfe zu YaBB SE  |  "Seite erstellt in x.xx Sekunden." « 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.074 seconds with 20 queries.