Remove Generation Info from bottom of page source

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
cameronj
New Member
New Member
Posts: 2
Joined: Thu Nov 27, 2008 9:34 am

Remove Generation Info from bottom of page source

Post by cameronj »

Hi guys,

How do i remove the generation numbers from the bottom of my html files.  Also how do i remove the CMS stuff from the top of the CMSMS stylesheet.  Yes I am still referencing my website to CMSMS, just don't want this gimmicks in the source code.
NaN

Re: Remove Generation Info from bottom of page source

Post by NaN »

http://www.cmsmadesimple.org/support/commercial-license

Since this is not inside a template but in the codebase, you are (imho) not allowed to remove the generation info unless you purchased a commercial license.
For the stylesheet stuff take a look into the stylesheets.
Last edited by NaN on Sun Nov 30, 2008 6:48 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Remove Generation Info from bottom of page source

Post by jmcgin51 »

I don't think there's anything in the GPL that prevents you from removing the information about how long it took to generate the page and how many SQL queries it took.  It's only the copyright info that you have to leave in.  If you want to remove the copyright stuff, then you have to purchase the commercial license.
NaN

Re: Remove Generation Info from bottom of page source

Post by NaN »

If this is the case you should take a look at the bottom of the index.php.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Remove Generation Info from bottom of page source

Post by jmcgin51 »

I'm not sure I follow you, NaN.  What exactly are you referring to at the bottom of index.php?  Are you looking at the source or the generated html output?
NaN

Re: Remove Generation Info from bottom of page source

Post by NaN »

I mean the source code of the index.php at your server.
Not the html ouptput in the browser.
In the index.php at line 330 you will find something like that:

Code: Select all


else if( !isset($config['hide_performance_info']) )

That means the performance info will only be displayed if there is no such setting in the config.php.
And that means that you just need to add a line like

Code: Select all


$config['hide_performance_info'] = true;

To your config.php.
Did not test that but it should work.
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm
Location: Norway

Re: Remove Generation Info from bottom of page source

Post by reneh »

This is changed from cmsms 1.7.1 !  Because of found problems with json actions.

From now the performance info is set OFF by default.
Now it's posible to turn it back ON by adding a NEW setting to config.php.

Code: Select all

#New parameter to still show the old fashion performance data in footer of show source
$config['show_performance_info'] = 1;
Last edited by reneh on Fri May 14, 2010 6:54 am, edited 1 time in total.
ReneH 8-)
A search will save you hours waiting for an answer! Image
Post Reply

Return to “Developers Discussion”