vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Debug Mode In Admincp Only (https://vborg.vbsupport.ru/showthread.php?t=92985)

Logikos 07-26-2005 10:00 PM

Debug Mode In Admincp Only
 
What this does:
This will turn debug mode on in the admincp area only. Sometimes you might want to make a change to the master style, or add a quick vBulletin option but don't want your users seeing any query/template info on the footer of your forums.

I placed this as a hack since you have to hack a file to do it. I was debating if it was more of a how-to or a hack. I'll let the mods decide.

In /includes/config.php Find:
PHP Code:

$config['Mysqli']['ini_file'] = ''

Add Under:
PHP Code:

if (VB_AREA == 'AdminCP')
{
        
$config['Misc']['debug'] = true;


Done! Yes a very small hack I know.

Marco van Herwaarden 07-27-2005 11:30 AM

Hmm i think there was once a talk about adding an Admin only debug mode over at vb.com, and it was agreed by jelsoft staff that this could be very usefull. But i like this also.

Xenon 07-27-2005 12:08 PM

i have an admin only debug mode hack released for 3.0 which works for 3.5 as well :)

Boofo 07-27-2005 09:20 PM

Quote:

Originally Posted by Xenon
i have an admin only debug mode hack released for 3.0 which works for 3.5 as well :)

I was going to use that but yours has file edits. :(

Barakat 07-28-2005 12:47 AM

thanks for that ....

Xenon 07-28-2005 12:33 PM

as the debug var is one of the most important things, it has to be a file edit ;)
it has to be set in config.php

Chris M 07-28-2005 12:35 PM

Quote:

Originally Posted by Boofo
I was going to use that but yours has file edits. :(

Enabling debug mode in config.php doesn't really count as a file edit, as it does not invalidate support ;)

Satan

Boofo 07-28-2005 01:04 PM

Quote:

Originally Posted by Xenon
as the debug var is one of the most important things, it has to be a file edit ;)
it has to be set in config.php

True, but if I remember right, yours did file edits in another file, too, right?

Neal-UK 07-29-2005 05:22 PM

Quote:

Originally Posted by Boofo
True, but if I remember right, yours did file edits in another file, too, right?

who cares, both good and both work.

Installed LiveWire, many thanks

Chris M 07-30-2005 01:14 AM

Quote:

Originally Posted by nealparry
who cares, both good and both work.

Installed Boofo, many thanks

I think you mean LiveWire:p

Satan


All times are GMT. The time now is 11:35 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.01200 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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