PDA

View Full Version : Where are the settings pulled from the database?


Admin
09-15-2001, 03:45 PM
What the title says. I looked for it for about 10 minutes now and can't find it. :confused:

Devs?

Freddie Bingham
09-15-2001, 04:35 PM
The current options or the settings themselves?

Look at the template name 'options' in the template table and then the settings are built from the entries in the 'setting' table.

Admin
09-15-2001, 04:57 PM
[QUOTE]Originally posted by freddie
The current options or the settings themselves?

Freddie Bingham
09-15-2001, 04:58 PM
You can use any setting that appears in the options template on every page. If you are inside of a function you need to globalize any settings though before they will be open to you.

Admin
09-15-2001, 05:11 PM
Yup, found it. :)

Acually I want NOT to use a setting from there, I want to make it something per-user.

Admin
09-15-2001, 05:20 PM
Umm, just out of curiosity, why do you keep that in the template table?
Wouldn't it be easier to just get it from the setting table?

Admin
09-15-2001, 05:27 PM
Oh ok, I see how it's done. Hell lot easier. :)

Wayne Luke
09-16-2001, 04:21 PM
Originally posted by FireFly
Umm, just out of curiosity, why do you keep that in the template table?
Wouldn't it be easier to just get it from the setting table?

Speed...

Building a string of options few times (only when one is changed) as opposed to building an array of options on every page load.