Log in

View Full Version : How do I do this?


N9ne
12-11-2002, 05:42 PM
I want to create a setting in my vB options page in adminCP, with yesno switch, to switch debug mode on and off with ease...

What's the query to run to achieve this?

NTLDR
12-11-2002, 05:47 PM
Use setting.php to add them, thats the best way ;)

N9ne
12-11-2002, 05:58 PM
What do I enter in the following fields:

Variable name:
Value:

? Is variable name 'debug' and value 1 ?

Xenon
12-11-2002, 06:11 PM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=43721" target="_blank">https://vborg.vbsupport.ru/showt...threadid=43721</a>

Dean C
12-11-2002, 06:15 PM
Does this add a column to the setting table then?

- miSt

N9ne
12-11-2002, 06:19 PM
It adds a row.

N9ne
12-11-2002, 06:21 PM
Originally posted by Xenon
https://vborg.vbsupport.ru/showthread.php?s=&threadid=43721

Thanks :D

N9ne
12-11-2002, 06:26 PM
Hmm ok now what do I add to the URL again? I tried a few things with debug, none seem to work...lol

Dean C
12-11-2002, 06:48 PM
Lol row yes :)

- miSt

N9ne
12-11-2002, 06:49 PM
Figured out the url. it was &showqueries=1 or something...

NTLDR
12-11-2002, 08:15 PM
&showqueries=1 and &explain=1

I find sowqueries most usefull, also you'll notice a few new menu options in the ACP if you didn't already know they existed ;)

N9ne
12-11-2002, 09:00 PM
I did know they existed, I used to use debug mode a long long time ago and still do, just forgot a few simple things ;)

Xenon
12-11-2002, 09:33 PM
i think the best one is, that you can edit the global templateset
creating new custom templates ;)

just be sure to backup them before upgrading ;)