Helpful Information
 
 
Category: vBulletin Article Depository
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:


INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorde r) 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');

Yesterday at 06:04 AM Xenon said this in Post #7 (http://www.vbulletin.org/forum/showthread.php?postid=376261#post376261)
*gg*
some secrects shouldn't be revealed ;)

lol phpinclude template can be abusive :confused:

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?










privacy (GDPR)