Stadler
02-05-2004, 10:00 PM
Ok, this hack enables the debug mode in your Admin-CP only (not on the user-side) and limited to super-admins there. In other words: You have to be in your ACP and listed as a super-admin to 'see' the and use debug-mode.
I think it's quite useful to be able to fiddle around with your MASTER-style, -settings on your online forum and so on, without displaying the debug-stuff for everyone else.
To apply this hack do the following:
find in /forum/admincp/global.php:require_once('./includes/sessions.php');
add after that:// ###################### Enable debug mode for super administrators #######################
if (in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY)))
{
$debug = 1;
}
and you're done :)
Note: I haven't tested this, but I suppose you can apply the same to /forum/global.php if you want to enable this everywhere on your forum, but still for super-admins only.
I think it's quite useful to be able to fiddle around with your MASTER-style, -settings on your online forum and so on, without displaying the debug-stuff for everyone else.
To apply this hack do the following:
find in /forum/admincp/global.php:require_once('./includes/sessions.php');
add after that:// ###################### Enable debug mode for super administrators #######################
if (in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY)))
{
$debug = 1;
}
and you're done :)
Note: I haven't tested this, but I suppose you can apply the same to /forum/global.php if you want to enable this everywhere on your forum, but still for super-admins only.