coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: MaThIbUs on January 17, 2004, 03:09:27 PM

Title: How to use php in your template? + errors in the docs
Post by: MaThIbUs on January 17, 2004, 03:09:27 PM
Well, the title says it all...

I tried renaming template.html to template.php and then change the variable in includes/init.inc.php, but it just doesn't seem to work :(

btw, there are some small errors in the documentation (http://coppermine.sourceforge.net/demo/docs/index.htm#creating):
QuoteTo create a new template the best solution is to use an existing one as a basis. Do do that make a copy of the folder of the theme you want to use as a basis then edit the "template.html" and "template.php" files and replace all occurences of "themes/old_theme_dir" with "themes/new_theme_dir" in order for the links to point to the correct place.
It should say:
QuoteTo create a new template, the best solution is to use an existing one as a basis. To do that, make a copy of the folder of the theme you want to use as a basis. Then edit the "template.html" and "theme.php" files and replace all occurences of "themes/old_theme_dir" with "themes/new_theme_dir" in order for the links to point to the correct place.
Title: How to use php in your template? + errors in the docs
Post by: Joachim Müller on January 18, 2004, 10:55:27 AM
you simply can't use php in the templates (see faq: custom header (http://coppermine.sourceforge.net/faq.php?q=customHeader#customHeader)).
Thanks for pointing out the typos, I updated the dev version of the readme accordingly.

GauGau
Title: How to use php in your template? + errors in the docs
Post by: MaThIbUs on January 18, 2004, 07:11:21 PM
Thanks for the reply. I'll try editing theme.php then.

I thought it might've been possible using a hack, as there's a mod for this for phpBB... More info about that here (http://www.trushkin.net/phpbbmods.php).

/m_aTh!bUs