coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: MrBiggZ on November 05, 2007, 01:45:54 AM

Title: php includes
Post by: MrBiggZ on November 05, 2007, 01:45:54 AM
I searched the forum and found a few things about php includes.  Unfortunately, I thought the solutions where rather vague.

I saw that in almost every instance it was said you can't use an include with the gallery.  I read something about using an iframe.  I gave that a try and that didn't work either.

I'd rather not .. but I'm guessing that you have to include all that code in the include right in the template.html file.

Is there an easier way to get this to function??    ???

Thx in advance!
Title: Re: php includes
Post by: Joachim Müller on November 05, 2007, 08:01:09 AM
You can't use a PHP include within template.html, as this file is for plain HTML, JavaScript and CSS only. There are various threads that explain how to include custom PHP code. The tricky bit is that you can not include anything, but only certain files: you can not include PHP code that tries to manipulate the file header, but only stuff that manipulates or creates the HTML output within the body section.
If you need instructions ready for copy and paste, you'll have to explain what the file you want to include does. For a start, post the code of the file you want to include.