PDA

View Full Version : KX - Debug Mode


Ziki
11-15-2008, 10:00 PM
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Modification name
Debug Mode

~Modification description
This modification enables debug mode in forums,admincp and modcp.This version is different from all debug mode modification as this plugin version supports the query explain feature :).A must have for every vBulletin developer.Works from 3.5 to 3.8.

Original Thread: http://www.kxdesign.com/vb-3-7-add-ons/53-kx-debug-mode.html

~Modification options

Turn on/off globally
Can staff see
Turn on/off in administrator control panel
Administrator ID
Turn on/off in moderator control panel
Moderator ID

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

Install time: 3 sec
Install level: Easy

~Modification installation
Step 1: Import product


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

Ziki
11-16-2008, 08:00 AM
~Reserved~

Alfa1
11-17-2008, 03:22 AM
Please add more info about the debug mode. I have never worked with debug mode before.

Ziki
11-17-2008, 06:30 AM
Debug mode is mostly for development purposes. It allows you to add and remove settings in the Admin CP, view load stats on the forum pages, and change things you otherwise wouldn't be able to change.

:) There you go

mark370
11-17-2008, 07:46 AM
Cool thanks for your share :)

Hostboard
11-18-2008, 05:51 PM
Great mod!!! When I turn it on for staff only and in the forums, it states I am a super moderator? I do not even use that user group.

Ziki
11-18-2008, 07:32 PM
Super mod?

Hostboard
11-18-2008, 08:41 PM
At the very bottom of the debug screen there is a drop down where it says "Messages:" USER IS A SUPER MODERATOR

Ziki
11-19-2008, 03:40 AM
Hm I don't know what that message means :S I guess there is a supermod online

Hostboard
11-19-2008, 11:42 AM
Absolutly impossible becuase, this is a test site with 3 users all set in the admin user group for testing only.

Will go check at VB and see what the message means.

Thanx

Ziki
11-23-2008, 10:39 AM
Ok.

albibak
11-23-2008, 12:31 PM
Thanks for this mod Ziki.
You can find the french translation here (http://forum.vbulletin-fr.org/t14208-mode-debug.html) and in attachement.

dartho
01-06-2009, 10:07 AM
Thank you.

sweetfunny
02-07-2009, 11:44 AM
Nice one thanks, clicked installed.

Another good feature is limit to IP address, this way you can check the debug info when viewing as a guest without exposing your data to the public.

Many boards have plugins/features that only show to guests, so it's good to see how these queries are performing also. Maybe also echo your IP on the KX - Debug page so it can be easily obtained and pasted in to the box.

Thanks again, good mod. :)

Da22Da
02-07-2009, 11:59 AM
thanks for the mod will give it a shot

Hornstar
05-05-2009, 09:36 AM
Anychance to change it so just the super admin can see it and not all the staff?

dartho
05-05-2009, 09:44 AM
You could probably edit the Global Debug plugin and replace if (can_moderate()) with if (in_array($vbulletin->userinfo['userid'], $kx_debug_admin_id))

This should only show debug info to the Admin ID's specified in the Enable the debug mode in administrator control panel? section ...

untested

Hornstar
05-05-2009, 08:29 PM
thanks, I will give that ago shortly and let you know how it went. thanks.

1Unreal
07-02-2009, 02:55 PM
Great, just what I was looking for :)

NLP-er
07-17-2009, 07:24 PM
Marked Installed :) Thanks :D

cobaku
11-16-2009, 01:27 PM
You could probably edit the Global Debug plugin and replace if (can_moderate()) with if (in_array($vbulletin->userinfo['userid'], $kx_debug_admin_id))

This should only show debug info to the Admin ID's specified in the Enable the debug mode in administrator control panel? section ...

untested

not working

VonDoom
01-15-2010, 05:40 PM
Good One :D

Ramsesx
03-02-2010, 08:21 AM
Thanks, really useful.

jujubins
04-21-2010, 06:58 PM
Can you do that to VB4?

foxfirediego
06-26-2010, 03:30 PM
Can you do that to VB4?
Works for ACP in vB 4.0.4

Boofo
08-12-2010, 09:17 PM
And in 4.0.6.

CvP
12-04-2010, 12:31 AM
I have modified it a little to adjust to my needs.
Changes:

works on ALL vB page (current one doesn't work in CMS)
Works on user ID basis instead of "staff only" that included super mods


So this is like enabling debug from config.php just for the user IDs listed.
Let me know if there's any problem.

And thanks to the author of this mod :up:


EDIT: updated some phrases to reflect the changes properly.

EDIT 2: just for the reference, it's tested on 4.0.7 (will test it soon on 4.1PL2) works on 4.1.0pl2

caf20012
07-17-2012, 03:47 PM
any chance this can be ported to vb4? or does it work the same?

Thanks

BirdOPrey5
07-17-2012, 05:14 PM
See the post right above yours.

Ziki
07-18-2012, 07:38 AM
I have modified it a little to adjust to my needs.
Changes:

works on ALL vB page (current one doesn't work in CMS)
Works on user ID basis instead of "staff only" that included super mods


So this is like enabling debug from config.php just for the user IDs listed.
Let me know if there's any problem.

And thanks to the author of this mod :up:


EDIT: updated some phrases to reflect the changes properly.

EDIT 2: just for the reference, it's tested on 4.0.7 (will test it soon on 4.1PL2) works on 4.1.0pl2

Thanks, I did not notice that it didn't work in the CMS as I never use it :) I updated the vB4 version, which by the way has been for quite some time here: https://vborg.vbsupport.ru/showthread.php?t=267270