[SOLVED] removing page generation info

Support for IntegraMOD 141

Moderator: Integra Moderator

[SOLVED] removing page generation info

PostAuthor: phuket » Sat Jul 28, 2007 2:18 am

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
Last edited by phuket on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
phuket
Newbie
Newbie
 
Posts: 6
Likes: 0 post
Liked in: 0 post
Joined: Wed Jul 11, 2007 12:36 am
Cash on hand: 0.00

Re: removing page generation info

PostAuthor: .QUACK.Major.Pain » Sat Jul 28, 2007 7:20 am

probably in the overall_footer.tpl I would think
Last edited by .QUACK.Major.Pain on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 10:15 am
Cash on hand: 0.00

Re: removing page generation info

PostAuthor: tmotley » Sat Jul 28, 2007 9:52 am

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...)
Last edited by tmotley on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:56 am
Cash on hand: 0.00
Location: Missouri, USA

Re: removing page generation info

PostAuthor: phuket » Sun Jul 29, 2007 12:21 am

ThX a lot tmotley
:) <img>

solved
Last edited by phuket on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
phuket
Newbie
Newbie
 
Posts: 6
Likes: 0 post
Liked in: 0 post
Joined: Wed Jul 11, 2007 12:36 am
Cash on hand: 0.00

PostAuthor: RiverFox » Thu Oct 11, 2007 1:43 am

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
Last edited by RiverFox on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

RiverFox
Newbie
Newbie
 
Posts: 21
Likes: 0 post
Liked in: 0 post
Joined: Fri Oct 05, 2007 12:44 am
Cash on hand: 0.00

PostAuthor: Helter » Thu Oct 11, 2007 5:57 pm

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
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

PostAuthor: RiverFox » Thu Oct 11, 2007 6:09 pm

Okay. How does one go about doing that.

I totally understand what you're saying.
Last edited by RiverFox on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

RiverFox
Newbie
Newbie
 
Posts: 21
Likes: 0 post
Liked in: 0 post
Joined: Fri Oct 05, 2007 12:44 am
Cash on hand: 0.00

Re: [SOLVED] removing page generation info

PostAuthor: RiverFox » Mon Oct 15, 2007 1:27 pm

BUMP
Last edited by RiverFox on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

RiverFox
Newbie
Newbie
 
Posts: 21
Likes: 0 post
Liked in: 0 post
Joined: Fri Oct 05, 2007 12:44 am
Cash on hand: 0.00

Re: [SOLVED] removing page generation info

PostAuthor: CaNNon » Mon Oct 15, 2007 2:23 pm

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.
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

PostAuthor: RiverFox » Mon Oct 15, 2007 3:26 pm

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>
Last edited by RiverFox on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

RiverFox
Newbie
Newbie
 
Posts: 21
Likes: 0 post
Liked in: 0 post
Joined: Fri Oct 05, 2007 12:44 am
Cash on hand: 0.00

Re: [SOLVED] removing page generation info

PostAuthor: CaNNon » Mon Oct 15, 2007 3:48 pm

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>
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

PostAuthor: RiverFox » Mon Oct 15, 2007 3:51 pm

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.
Last edited by RiverFox on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

RiverFox
Newbie
Newbie
 
Posts: 21
Likes: 0 post
Liked in: 0 post
Joined: Fri Oct 05, 2007 12:44 am
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: Bing [Bot], Google [Bot]

cron