vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - ZH - Debug Mode (https://vborg.vbsupport.ru/showthread.php?t=165623)

Ziki 12-18-2007 10:00 PM

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

Ziki 12-19-2007 06:57 PM

~Reserved~

Ba$im 12-20-2007 08:15 AM

thanx.

Snake 12-21-2007 02:38 PM

Thanks!

Namaless 12-25-2007 01:58 PM

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:
Code:

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 :)

Surviver 12-25-2007 07:27 PM

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

https://vborg.vbsupport.ru/showthread.php?t=130212

Ziki 09-15-2008 09:22 AM

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

FreshFroot 09-25-2008 05:43 AM

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?

Ziki 09-25-2008 11:38 AM

Yes :)

djxcee 10-20-2008 09:47 AM

Quote:

Originally Posted by Namaless (Post 1408885)
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:
Code:

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
HTML Code:

<phpcode><![CDATA[if ( $vbulletin->options['zh_debugmode_forum_onoff'] == '1' and $vbulletin->userinfo['userid'] == X,Y,Z )
but getting errors.


All times are GMT. The time now is 02:57 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.01035 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete