Heres a mod i use all the time so that when im using the debug console its not shown to anyone else but me.
Its done on 4.1.x but you could adjust to work with other versions too.
It basically compares your IP address with an IP address that you set in config
WARNING : If you like to use webmaster mode etc this will probably not help and may well break it. Only use this if you know what your doing
I add the following to the database
ADD YOUR IP IN PLACE OF ##.##.##.## in this sql command
Code:
INSERT INTO `xcart_config` ( `name` , `comment` , `value` , `category` , `orderby` , `type` , `defvalue` , `variants` )
VALUES (
'enable_debug_console_ip', 'Only show debug to this IP', '##.##.##.##', 'General', '610', 'text', '', ''
);
then edit the
/init.php
file as follows ....
find .....
Code:
#
# Include webmaster mode
#
@include_once($xcart_dir."/include/webmaster.php");
if($config["General"]["enable_debug_console"]=="Y" || $editor_mode=='editor')
$smarty->debugging=true;
replace with
Code:
#
# Include webmaster mode
#
@include_once($xcart_dir."/include/webmaster.php");
if($config["General"]["enable_debug_console"]=="Y" || $editor_mode=='editor') {
#
# SHAN ONLY SHOW DEBUG TO MY IP
#
if ($config["General"]["enable_debug_console_ip"] == $_SERVER['REMOTE_ADDR']) {
$smarty->debugging=true;
} ;
} ;
I usually edit the way the debug console looks too by editing
/smarty.php
find ...
Code:
$smarty->debug_tpl = "file:debug_templates.tpl";
Replace with ....
Code:
$smarty->debug_tpl = "file:debug.tpl";