Page 1 of 1

[SOLVED] removing page generation info

PostPosted: Sat Jul 28, 2007 3:18 am
Author: phuket
Your phpBB Version: 2.0.22
phpBB Type: Integramod 141
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://www.heididotcom.com

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?
Removing page generation info from footer



De.scription and Message

Hi everybody,
from where can i remove the page generation info in the footer??

thx

*EDIT* - marked solved

Re: removing page generation info

PostPosted: Sat Jul 28, 2007 8:20 am
Author: .QUACK.Major.Pain
probably in the overall_footer.tpl I would think

Re: removing page generation info

PostPosted: Sat Jul 28, 2007 10:52 am
Author: tmotley
I believe the generation data occurs after the footer... in the page_tail.

I experimented and achieved success with minimal changes.

OPEN: page_tail.php

FIND: (mine's starts on line 113)
Code: Select all
if( defined('DEBUG') ){     $debug_out = '<div>[Page generation time]</div>';}else{     $debug_out = '<br>';}


Put // in front of the if and // in front of the else. On my site, this removed the page generation line with no issues that I could tell.

NOTE - On line 90 of page_tail.php, I found
Code: Select all
/* Un-comment the line below to restrict Admins only to view page generation info */  


This seems much better. That way admins could still see that information. However, I couldn't get it to work that simply. (Perhaps I'm stupid.) I had to uncomment several lines and move a closing } to after the code posted above. It seems to work fine. When I'm logged in as an admin, it shows the page generation information but it doesn't if I'm not logged in as an admin.

If you want to try it, back up your page_tail.php, and then here's my edited replacement code from after
Code: Select all
/* Un-comment the line below to restrict Admins only to view page generation info */  
to right before
Code: Select all
$template->assign_vars(array(  


REPLACEMENT CODE TO ONLY SHOW PAGE GEN TO ADMINS]  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;  if( defined('DEBUG') ){     $debug_out = '<div>[Page generation time: '. $gentime .'s (PHP: '. $php_part .'% | SQL: '. $sql_part .'%) | SQL queries: '. $excuted_queries .' | '. $gzip_text .' | '. $debug_text .']</div>';}else{     $debug_out = '<br>';}}    [/code]

(Hope this makes sense. Now you see why I'm not good at coding stuff...)

Re: removing page generation info

PostPosted: Sun Jul 29, 2007 1:21 am
Author: phuket
ThX a lot tmotley
:) <img>

solved

PostPosted: Thu Oct 11, 2007 2:43 am
Author: RiverFox
How do I remove all the info including the time generator? I'd like to add links to another page, but my client doesn't want all that extra stuff displaying on the bottom of every page?

Told him, I'll get the answer, but in all fairness, I want to put the credits somewhere else in the Forums.

Thanks in advance

PostPosted: Thu Oct 11, 2007 6:57 pm
Author: Helter
you may not remove the phpbb, Integramod or template info from the footer. It is part of the copyright agreement you made when downloading IntegraMOD. You may remove everything else at your discretion

PostPosted: Thu Oct 11, 2007 7:09 pm
Author: RiverFox
Okay. How does one go about doing that.

I totally understand what you're saying.

Re: [SOLVED] removing page generation info

PostPosted: Mon Oct 15, 2007 2:27 pm
Author: RiverFox
BUMP

Re: [SOLVED] removing page generation info

PostPosted: Mon Oct 15, 2007 3:23 pm
Author: CaNNon
Edit: "your-root-here"phpBB2templates"your-template-here"overall_footer.tpl

Make a backup copy first, you'll also see the notes in it reminding you what not to remove.

PostPosted: Mon Oct 15, 2007 4:26 pm
Author: RiverFox
Thanks very much. Again, we won't remove anything we're not supposed to, in order to maintain legal/authorship.

Some of us are legal, ya know. <img>

Re: [SOLVED] removing page generation info

PostPosted: Mon Oct 15, 2007 4:48 pm
Author: CaNNon
It's not that for me, I like GPL software and alot of it is better that store bought...
So to speak. I think they deserve the little credits they ask for in return. <img>

PostPosted: Mon Oct 15, 2007 4:51 pm
Author: RiverFox
Oh yea, make no mistake. I've seen GPL software beat the pants off their retail counterparts for sure.

Just wanted to reduce the clutter w/o having a legal issue.