Page 1 of 1

How to remove Page Generation Time Footer?

PostPosted: Sat Nov 22, 2008 3:34 pm
Author: slowfamily
Hi All,

I was wondering how to disable or remove the page generation time footer at the bottom of the forum:

[Page generation time: 0.4273s (PHP: 85% | SQL: 15%) | SQL queries: 62 | GZIP disabled | Debug off]

I haven't seen a button to disable it, and haven't seen if there's a place to remove it from the templates.

Thanks in advance!

Re: How to remove Page Generation Time Footer?

PostPosted: Sat Nov 22, 2008 9:21 pm
Author: Helter
you can make it so that only admins can see it by opening includes/page_tail.php

FIND

Code: Select all
/* 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' ] + $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;  //}*/


REPLACE WITH

Code: Select all
/* 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' ] + $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;  }