PDA

View Full Version : Howto: Fast enable debug mode


Xenon
19 Sep 2002, 13:23
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.....

TECK
21 Sep 2002, 14:45
great tip. :)
thanks.

N9ne
11 Dec 2002, 20:21
thanks! :)

Automated
30 Dec 2002, 12:27
Thanks! I will definately be using that :

Logician
31 Mar 2003, 12:47
a very late post but I've recently noticed this tip! great hint! :) Should be a default vb feature

Erwin
31 Mar 2003, 22:43
There's a quicker phpinclude way... but I leave that up to Stefan to reveal... ;)

Xenon
01 Apr 2003, 11:04
*gg*
some secrects shouldn't be revealed ;)

Erwin
01 Apr 2003, 12:15
;) :p

N9ne
02 Apr 2003, 14:39
A quicker way to do this, run this query:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

g-force2k2
02 Apr 2003, 16:42
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

Xenon
02 Apr 2003, 16:47
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

kdog316
25 Apr 2003, 02:33
when would you want to edit global templates

Xenon
25 Apr 2003, 13:27
if you have a lot of templatesets and want to change one template in all of them for example?