[solved] How to remove the comment at the bottom of output pages

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Jonn
New Member
New Member
Posts: 2
Joined: Mon Apr 12, 2010 4:23 pm

[solved] How to remove the comment at the bottom of output pages

Post by Jonn »

Hi,

I'm trying to receive some JSON from some php code in a UDT with jQuery 1.4. The problem is that the page that has the UDT and outputs the JSON is also very fond of outputting an annoying comment in the end of the page (ex: ).

How do I teach CMSMS to be obedient and not to output something I have no interest in and renders my JSON invalid?

CMSMS version : 1.6.6 "Bonde"
PHP version : 5.2

Notes : I use showtemplate=false in the request url and yes, my php code has been tested on an independent file.
Last edited by Jonn on Mon Apr 12, 2010 5:16 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How to remove the comment at the bottom of output pages

Post by calguy1000 »

add this line to your config.php

$config['hide_performance_info'] = 1;
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Jonn
New Member
New Member
Posts: 2
Joined: Mon Apr 12, 2010 4:23 pm

Re: How to remove the comment at the bottom of output pages

Post by Jonn »

Awsome that seemed to do the trick. Thank you very much :)
Post Reply

Return to “CMSMS Core”