forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: gymnastdude182 on February 27, 2005, 11:13:10 am

Title: where does theme.php go?
Post by: gymnastdude182 on February 27, 2005, 11:13:10 am
i have the template.html file , and the style.css file, but i dont see where the theme.php comes in, can some1 PLEASE help me?
Title: Re: where does theme.php go?
Post by: Tranz on February 27, 2005, 11:31:48 am
Please provide more background information.
Title: Re: where does theme.php go?
Post by: gymnastdude182 on February 27, 2005, 09:13:57 pm
like i made a template.html file, and a style.css file, and i HAVE a theme.php file, but i dont see where it says theme.php in either the template or css in even the default templates, how do u even edit the theme.php and have it show up on the template
Title: Re: where does theme.php go?
Post by: Tranz on February 27, 2005, 09:19:17 pm
Please specify exactly what you want to do so we can tell you what and where to edit.
Title: Re: where does theme.php go?
Post by: donnoman on February 27, 2005, 09:28:16 pm
I think hes saying he doesn't see any interaction between them.

when you ask for a coppermine page, it INCLUDES init.inc.php;
init.inc.php reads the database and request vars determines the theme;
init.inc.php then reads the themes template.html into memory
init.inc.php INCLUDES the themes theme.php
from then on out the coppermine script calls the functions in theme.php which produce html output based
on the in-memory template.html and its own internal templates..

only half of your theme is in template.html, all of the guts of the theme are in theme.php; ie: all of your menu buttons, etc.

and to answer the title, the theme.php goes right beside your template.html in the theme directory. Look at the default themes for examples.


Title: Re: where does theme.php go?
Post by: gymnastdude182 on March 01, 2005, 06:04:57 am
o awesome , i think i understand! thanks!