Helpful Information
 
 
Category: vBulletin 3.0 Full Releases
Debug-mode in Admin-CP and for super admins only

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.

Nice job :)

i still like my enable debug mode more.

it does the same, but works on cookiebase, so you can use it logged out as well, which is usefull when checking for differnt templates..

So what do I get from this?
Any screenshots, I don't get it ....
And yes - it would be fine if super admin could log as user in the vB3 Gold by default ...

add $debug = 1; to your config.php and you can see it ;)

What I've done was limiting it to the admincp and super-admins

Installed. Definitely useful indeed. good job.

Installed. Definitely useful indeed. good job.
One note:

Not all debug-messages will appear in the ACP, but I personally don't need the debug-messages. Access to the MASTER-stuff is much more important to me ...

One more tip :)
If you will add one yesno setting with var for example
show_debug
and write (in same place - after sessions.php include) in global.php in root vb folder
if ($vboptions['show_debug'] && in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY)))
{
$debug = 1;
}
You will be able to switch debug info for forums on and off from admin CP :)

does not work :(

What 'does not work' ?

nothing i need to do 0 on the debug
now ist"s work tnx!










privacy (GDPR)