Rating: 3.5/5
(2 votes cast)
Login to Rate
Gives you a private debug console for a specific IP address, so as not to disturb customer view...
First apply this SQL patch...
REPLACE INTO `xcart_config` ( `name` , `comment` , `value` , `category` , `orderby` , `type` , `defvalue` , `variants` )
VALUES ('enable_debug_console_ip', 'Only show debug console to this IP address', 'xx.xx.xx.xx', 'General', '611', 'text', '', '');
Then in init.php, replace...
# # Include webmaster mode # @include_once($xcart_dir."/include/webmaster.php"); if($config["General"]["enable_debug_console"]=="Y" || $editor_mode=='editor') $smarty->debugging=true;
With...
#
# Include webmaster mode
#
@include_once($xcart_dir."/include/webmaster.php");
if($config["General"]["enable_debug_console"]=="Y" || $editor_mode=='editor')
# $smarty->debugging=true;
if ($config["General"]["enable_debug_console_ip"] == $_SERVER['REMOTE_ADDR']) {
$smarty->debugging=true;
}
Then go into General Settings and add your IP address.
To view all available Smarty variables in the debug console (ie. not just templates), then in smarty.php, replace...
$smarty->debug_tpl = "file:debug_templates.tpl";
With...
$smarty->debug_tpl = "file:debug.tpl";
