Seite 1 von 1
Page Generation Time
Verfasst: 06.07.2005 00:44
von Gast660
Hi, ich habe den Page Generation Time mod eingebaut. Ich würde nur gerne, dass die Zeile
Code: Alles auswählen
Page generation time: 0.1537s (PHP: 100% - SQL: 0%) - SQL queries: 21 - GZIP enabled - Debug on
etwas weiter oben steht !!
Hier ist mal ein Bild:
[ externes Bild ]
Und
Hier ein Link
Wo ist das Problem
Verfasst: 06.07.2005 07:55
von gloriosa
Hallo,
wo ist das Problem. Du verschiebst die letzte Zeile der overall_footer.tpl Datei nach oben !
Stelle die overall_footer.tpl schon einmal zum Download bereit (KB:81) !

Verfasst: 06.07.2005 10:04
von Gast660
Das Problem ist, dass die Zeile in der overall_footer gar nicht auftaucht !!!
Overall_footer
Hier noch mal der Link zum MOD:
Page Generation Time
Verfasst: 06.07.2005 10:58
von Fundus
du musst aus dem echo eine variable $pgt = machen und die wie die versionsangabe ans template übergeben 'PGT' = $pgt, und dann kannst du deine Variable in der tpl nach wunsch ausgeben mit {PGT}
Verfasst: 06.07.2005 11:52
von Gast660
Fundus hat geschrieben:du musst aus dem echo eine variable $pgt = machen und die wie die versionsangabe ans template übergeben 'PGT' = $pgt, und dann kannst du deine Variable in der tpl nach wunsch ausgeben mit {PGT}
In welcher Datei muss ich dass denn ändern ???
Verfasst: 06.07.2005 16:44
von easygo
Gast660 hat geschrieben:In welcher Datei muss ich dass denn ändern ???
includes/page_tail.php
Verfasst: 06.07.2005 19:55
von Gast660
Irgendwie wird das nicht angezeigt !!!
Hier ist meine
page_tail.php
Verfasst: 06.07.2005 20:17
von easygo
Gast660 hat geschrieben:Irgendwie wird das nicht angezeigt !!!
Hier ist meine
page_tail.php
KEIN WUNDER !!!!
Code: Alles auswählen
/* Un-comment the line below to restrict Admins only to view page generation info */
//if( ($userdata['session_logged_in']) and ($userdata['user_level'] == ADMIN) )
{
$gzip_text = ($board_config['gzip_compress']) ? 'GZIP enabled' : 'GZIP disabled';
$debug_text = (DEBUG == 1) ? 'Debug on' : 'Debug off';
$excuted_queries = $db->num_queries;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$gentime = round(($endtime - $starttime), 4);
$sql_time = round($db->sql_time, 4);
$sql_part = round($sql_time / $gentime * 100);
$php_part = 100 - $sql_part;
$pgt = '<br /><div style="font-family: Verdana; font-size: 10px; color: #000000; letter-spacing: -1px" align="center">Page generation time: '. $gentime .'s (PHP: '. $php_part .'% - SQL: '. $sql_part .'%) - SQL queries: '. $excuted_queries .' - '. $gzip_text .' - '. $debug_text .'</div>';
}
gehört in dem Fall vor
Code: Alles auswählen
$template->assign_vars(array(
'PHPBB_VERSION' => '2' . $board_config['version'],
'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '',
'ADMIN_LINK' => $admin_link,
'PGT' => $pgt)
);
Verfasst: 06.07.2005 20:38
von Gast660
Jo, jetzt klappt alles !!!
BIG THX