vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   KX - Debug Mode (https://vborg.vbsupport.ru/showthread.php?t=196422)

Ziki 11-15-2008 10:00 PM

KX - Debug Mode
 
1 Attachment(s)
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-o...ebug-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

Quote:

Originally Posted by Jake Bunce
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

1 Attachment(s)
Thanks for this mod Ziki.
You can find the french translation here 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

Quote:

Originally Posted by dartho (Post 1804920)
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

Quote:

Originally Posted by jujubins (Post 2025054)
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

1 Attachment(s)
I have modified it a little to adjust to my needs.
Changes:
  1. works on ALL vB page (current one doesn't work in CMS)
  2. 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 [s](will test it soon on 4.1PL2)[/s] 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

Quote:

Originally Posted by CvP (Post 2129027)
I have modified it a little to adjust to my needs.
Changes:
  1. works on ALL vB page (current one doesn't work in CMS)
  2. 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 [s](will test it soon on 4.1PL2)[/s] 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


All times are GMT. The time now is 02:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03246 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete