Howto: Fast enable debug mode
Sometimes it is needed to enable the debug mode (when you want to download templatesets, or adding global templates by hands...)
normally you have to open config.php and enter $debug=1; in it. but that's annoying if you need it more often here's a fast way to give you the chance to enable/disable it from within your admin-cp: run your admin/setting.php at section Turn Your vBulletin on and off klick add setting use this: Title Enable Debug Mode Variable Name debug Value 0 Description If you want to add standart templates, or download templateset, you should set this to 1 Code to generate option yesno Display Order 3 that would be all WARNING: enabled debugmode is a security risk. so always disable it after you've done what you wanted..... |
great tip. :)
thanks. |
thanks! :)
|
Thanks! I will definately be using that :
|
a very late post but I've recently noticed this tip! great hint! :) Should be a default vb feature
|
There's a quicker phpinclude way... but I leave that up to Stefan to reveal... ;)
|
*gg*
some secrects shouldn't be revealed ;) |
;) :p
|
A quicker way to do this, run this query:
[sql] INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,1,'Enable Debug Mode','debug','0','If you want to add standart templates, or download templateset, you should set this to 1','yesno','3'); [/sql] |
Quote:
i like experimenting with it... i usually like going the config.php way... but thanks for the neat idea Xenon :) didn't think of it that way before... regards, g-force2k2 |
well, but not everything is possible with this way....
$explain=1 wouldn't work, because the phpinclude is evaled after the explain is reset in global.php |
when would you want to edit global templates
|
if you have a lot of templatesets and want to change one template in all of them for example?
|
All times are GMT. The time now is 11:24 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|