4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Caelestis on March 30, 2003, 12:20:55 PM

Title: this should be easy but i can't find it
Post by: Caelestis on March 30, 2003, 12:20:55 PM
does anyone know where the sql statement that sets the templates dir. is located or am i wrong about how that setting is set?
Title: this should be easy but i can't find it
Post by: SLL on March 30, 2003, 01:39:20 PM
there's no setting for templates. all sub-directories under /templates/ are determined automatically
Title: this should be easy but i can't find it
Post by: Caelestis on March 30, 2003, 08:43:05 PM
Quote from: SLL
there's no setting for templates. all sub-directories under /templates/ are determined automatically


how does it know to look at templates/temp1 rather than templates/temp2? it is set in the mysql database i just need to find the statement that set and retrieves it...
Title: Re: this should be easy but i can't find it
Post by: V@no on March 30, 2003, 09:05:57 PM
Quote from: Caelestis
does anyone know where the sql statement that sets the templates dir. is located or am i wrong about how that setting is set?

in /includes/constants.php
Quote
define('TEMPLATE_DIR', 'templates');

this set the name of "templates" folder itself, then, when go to 4images settings in ACP, it will check what folders are exist in "templates" folder and give u the list of what templates are avalable, u chose the one u want.
Title: Re: this should be easy but i can't find it
Post by: Caelestis on March 31, 2003, 06:26:07 AM
Quote from: V@no
Quote from: Caelestis
does anyone know where the sql statement that sets the templates dir. is located or am i wrong about how that setting is set?

in /includes/constants.php
Quote
define('TEMPLATE_DIR', 'templates');

this set the name of "templates" folder itself, then, when go to 4images settings in ACP, it will check what folders are exist in "templates" folder and give u the list of what templates are avalable, u chose the one u want.


ok you've both missed the point... the name of the template you are using is stored in the mysql database i need to know where the sql query that finds the field it is stored in is located, i'm working on a mod so that users can have more than one template...

EDIT: nvm... i found what i was looking for... so maybe tonight or tommarrow i'll have a change template mod...

and v@no you did answer my question... kinda just not fully i guess...
Title: this should be easy but i can't find it
Post by: SLL on March 31, 2003, 08:57:53 AM
hmm... probably you're looking for template_dir which is currently selected? then it's in the 4images_settings table