coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Maarika on June 28, 2006, 07:08:41 PM

Title: Theme question
Post by: Maarika on June 28, 2006, 07:08:41 PM
Hello! I've installed Coppermine on my site and it's located in the same folder as my site's PHP files.
So now what I want to do is, to integrate those PHP files to Coppermine's template. How is that done? I don't know how to code PHP.
Copying the code from template.html and using it in my php files doesn't work obviously. >.<
Thank you if anyone can help.
Title: Re: Theme question
Post by: Nibbler on June 28, 2006, 07:24:41 PM
Put your code in a skeleton file, like this


<?php

define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Your title');

/* insert php code here */

pagefooter();

?>

Title: Re: Theme question
Post by: Maarika on June 28, 2006, 07:31:53 PM
Thank you very much for the quick reply.
I was trying out different includes and requires but none of them worked.

Thanks again! It's working now.