Helpful Information
 
 
Category: vBulletin 3.7
Administrative and Maintenance Tools - ZH - Debug Mode

This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Modification name
Debug Mode

~Modification description
Enables debug mode in admincp/modcp and forums

~Modification options

Turn on/off in forums
Turn on/off in admincp
Turn on/off in modcp
Turn on/off in archive


~Modification info
File uploads: 0
Template edits: 0
File edits: 0
Plugins: 4
SQL Queries: 0
Phrases: 9
Settings: 4

Install time: 2 sec
Install level: Easy

~Modification installation
Step 1: Import product



~Modification screenshots
None


~Modification copyright
This may not be distributed,released or claimed as your work without author's permission.

New version here,with explain feature :) http://www.kxdesign.com/plugins/53-kx-debug-mode.html

~Reserved~

thanx.

Thanks!

I have edited your plugin because I not like that all users view debug information.
With this code I have limited access to Administrators Group:

if ( $vbulletin->options['zh_debugmode_forum_onoff'] == '1' and $vbulletin->userinfo['usergroupid'] == 6 )
{
$vbulletin->debug = true;
}
else
{
$vbulletin->debug = false;
}


This is for forum view, this is most important because the users access to this part :)

Thanks for your work :)

Here is a plugin where you have a setting for that:

http://www.vbulletin.org/forum/showthread.php?t=130212

New version here,with explain feature :) http://www.kxdesign.com/plugins/53-kx-debug-mode.html

what does it mean, if the color of a template is red for the debug box? some kind of error?

EDIT: I assume it means non cache templates?

Yes :)

I have edited your plugin because I not like that all users view debug information.
With this code I have limited access to Administrators Group:

if ( $vbulletin->options['zh_debugmode_forum_onoff'] == '1' and $vbulletin->userinfo['usergroupid'] == 6 )
{
$vbulletin->debug = true;
}
else
{
$vbulletin->debug = false;
}


This is for forum view, this is most important because the users access to this part :)

Thanks for your work :)
How do you add multiple userids instead of usergroup?
I tried
<phpcode><![CDATA[if ( $vbulletin->options['zh_debugmode_forum_onoff'] == '1' and $vbulletin->userinfo['userid'] == X,Y,Z )
but getting errors.

@djxcee if ( $vbulletin->options['zh_debugmode_forum_onoff'] == '1' and in_array($vbulletin->userinfo['usergroupid'], array(5,6,7)))
{
$vbulletin->debug = true;
}
else
{
$vbulletin->debug = false;
}

should do the trick

thank you !

Seems to be dead on 3.8.4

Italian Translation: Download (http://www.namaless.com/development/vbulletin/add-ons/kx-debug-mode/)










privacy (GDPR)