PDA

View Full Version : Administrative and Maintenance Tools - KX - Debug Mode


Ziki
07-22-2011, 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.x to 4.x.x.

~Modification options

Turn on/off globally
Only show for admins
Turn on/off in administrator control panel
Administrator ID
Turn on/off in moderator control panel
Moderator ID
Show template name in comments only to admins

~Modification info
File uploads: 0
Template edits: 0
File edits: 0
Plugins: 5
SQL Queries: 0
Phrases: 15
Settings: 7

Install time: 3 sec
Install level: Easy

~Modification installation
Step 1: Import product

~Modification Changelog

1.0.0 - Initial release
1.0.2
Changed staff viewing permission from can_moderate() to users with admin permission, to make sure it also works with custom groups with admin rights
New option to hide template name in HTML comments for people without admin rights

1.0.3 - Debug Mode works now in CMS
1.0.4 - Explain feature now works even if debug mode is disabled in the forums


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

Ziki
07-23-2011, 09:57 AM
~Reserved~

Didn't find a similar mod for 4.x.x, so I re-released it :)

Ziki
07-23-2011, 01:25 PM
I meant one that uses the vBulletins default debug system, without file edits.

Boofo
07-23-2011, 01:31 PM
I've been using the 3.8 version of this mod on vb 4 for quite a while now and it has always worked fine. I'll go ahead and switch to this one, although when comparing the files they are almost identical.

Thanks. ;)

Boofo
07-23-2011, 02:09 PM
Where does the explain feature work? Only on the forums? It doesn't work in the Admin CP.

eTiKeT?
07-23-2011, 02:53 PM
İnstalled...

Ziki
07-23-2011, 04:54 PM
I've been using the 3.8 version of this mod on vb 4 for quite a while now and it has always worked fine. I'll go ahead and switch to this one, although when comparing the files they are almost identical.

Thanks. ;)

Yeah, it's pretty much the same, I just imported it into vb4, checked if everything works and exported again :p

Where does the explain feature work? Only on the forums? It doesn't work in the Admin CP.

It doesn't? It works fine for me, even in the Mod Cp. Tried it now on fresh vB4 installation :-/

Boofo
07-23-2011, 06:29 PM
It doesn't? It works fine for me, even in the Mod Cp. Tried it now on fresh vB4 installation :-/

What were you doing in the Admin CP when you used it? Maybe I'm not in the right area.

Ziki
07-23-2011, 07:28 PM
What were you doing in the Admin CP when you used it? Maybe I'm not in the right area.

Well I opened it up right away from the forum and then clicked the first explain link I saw next to the debug stats. Worked on every page I tried, even the sidebar.

Boofo
07-23-2011, 08:22 PM
Well I opened it up right away from the forum and then clicked the first explain link I saw next to the debug stats. Worked on every page I tried, even the sidebar.

Then you didn't open it up first in the Admin CP. That is where I tried it first.

ozzy47
07-24-2011, 04:00 AM
Excellent mod, installed and 5 stars.

Ziki
07-24-2011, 07:35 AM
Then you didn't open it up first in the Admin CP. That is where I tried it first.

Went straight to admincp and still works for me, no matter what page I try :-/, I even installed a new forum on localhost to try it on and it still worked. Can you try it on a different forum?

Boofo
07-24-2011, 09:03 AM
Went straight to admincp and still works for me, no matter what page I try :-/, I even installed a new forum on localhost to try it on and it still worked. Can you try it on a different forum?

I only clicked on it in the Admin CP. I never clicked on it in the fourms.

Ziki
07-24-2011, 09:58 AM
Yeah, I meant to try it on a different vB installation :) The explain feature works fine on my board even in the admincp.

Raeven
07-29-2011, 05:19 PM
Very useful indeed :). Installed and Nominated ;).

Ziki
08-12-2011, 08:49 AM
I only clicked on it in the Admin CP. I never clicked on it in the fourms.

So did it work then?

Boofo
08-12-2011, 09:02 AM
Not in the Admin CP.

Ziki
08-15-2011, 12:21 PM
Not in the Admin CP.

:-/

Could someone say if this is working for them or not as well?

HMBeaty
08-15-2011, 02:47 PM
The one for 3.5 still works for me just fine :)

yahooooh
08-15-2011, 03:25 PM
can you add ability to exclude some administrators to completey can not see the debug mode including the site , in this version only for admin controle panel

Raeven
08-19-2011, 10:25 AM
Works (also worked) nice for me on:

4.1.3, 4.1.4 and 4.1.5 (on 2 Forums, one Forum has over 60 Addons installed, no problems there too). And I still love this addon.

Ziki
06-16-2012, 04:54 PM
Version 1.0.2 released. Below is the list of updates:

- Changed staff viewing permission from can_moderate() to users with admin permission, to make sure it also works with custom groups with admin rights
- New option to hide template name in HTML comments for people without admin rights

Rocco97
06-16-2012, 06:05 PM
Installed...

Ziki
06-25-2012, 06:40 PM
I was thinking on improving this a bit. What other tools would you like to see?

Ziki
07-18-2012, 07:40 AM
1.0.3 released

- Debug info did not show up in CMS, thanks to CvP

megabink
07-18-2012, 08:34 PM
Installed and it works fine on 4.2.0 thanks buddy.

OcR Envy
08-22-2012, 05:32 PM
As to Bofos comments you have to have this mod turned on in forums in order for explain to work in the AdminCP/ModCP.

Ziki
08-24-2012, 11:43 AM
As to Bofos comments you have to have this mod turned on in forums in order for explain to work in the AdminCP/ModCP.

Good catch, I'll fix this :)

Ziki
08-27-2012, 12:50 PM
v1.0.4 released: Explain feature now works even if debug mode is disabled in the forums

Nirjonadda
08-27-2012, 01:12 PM
KX - Spider Permissions ! Have any update for work on 4.1.10 ?

Ziki
08-28-2012, 07:28 PM
KX - Spider Permissions ! Have any update for work on 4.1.10 ?

Quite irrelevant, but no :)

seb5594
03-31-2017, 10:01 AM
Really useful addon, works like a charm on vB 4.2.4 :)

BirdOPrey5
05-11-2017, 11:48 AM
FYI for those who upgrade to VB 4.2.5 and PHP 7.x this mod was causing a fatal error in the init_startup plugin which means you can't get to the admincp or the forum. You can either do the edits below before upgrading to PHP7, or add the disable hooks line to your config.php file to get access back if you already updated:


define("DISABLE_HOOKS",true);



In Plugin Manager edit the Explain plugin (on hook init)startup) as follows.

Find the line:

$newdb =& new vB_Database_Explain($vbulletin);

and comment it out - which means change it to:

//$newdb =& new vB_Database_Explain($vbulletin);

Then find the line:

$newdb =& new vB_Database_MySQLi_Explain($vbulletin);

and change it to:

$newdb = new vB_Database_MySQLi_Explain($vbulletin);

That should fix the error.

If you added the disable hooks line to config.php you can now remove it or comment it out.