PHP includes in my custom theme? PHP includes in my custom theme?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

PHP includes in my custom theme?

Started by typhooner, June 25, 2007, 08:53:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

typhooner

I have a website written in php (www.brianloncarracingteam.com) that uses php includes for the header (menu & an article) and then also for the side sponsers area and left  "team news" area...   I would like to create a theme for coppermine that would allow me to make it look exactly like the rest of the pages on my site but how do I put those php includes into the template.html file of the theme...  It doesn't parse them???  I have tried adding a line in the .htaccess that parses html files as php files but that doesn't work either...

Any suggestions...  I would just copy and past the info directly into the template.html file but its constantly changing and would be a pain to do that everytime I update the "team news" section etc...

Thanks,
J
Hey everyone,  Help a poor college student get a free laptop (ibook)...follow this link and sign up for one of the offers...Then cancel it before the free trial ends.  Thanks
http://www.notebooks4free.com/default.aspx?r=266256

Joachim Müller

Use Coppermine's custom header/footer feature - that's what it was designed for.

attempt

What if I need to insert php code below the image? Is it possible to insert php code in theme.php?

Joachim Müller

Quote from: attempt on July 14, 2007, 02:38:03 PM
What if I need to insert php code below the image?
You could use the custom_footer for that purpose

Quote from: attempt on July 14, 2007, 02:38:03 PMIs it possible to insert php code in theme.php?
Yes, that's an option as well.

attempt

I want to insert an rss feed below de image, but the code is not parsed. I thought it is not possible to insert php code in theme.php.

Joachim Müller

Quote from: attempt on July 16, 2007, 07:47:07 AM
I thought it is not possible to insert php code in theme.php.
That's wrong: it's not possible to use PHP inside template.html, but it is possible to use PHP in theme.php.
Don't hijack other's thread - start your own thread instead, posting a link to your gallery, what PHP code you want to insert at which place. Zip your custom theme folder and attach it to your posting (in your new thread) using "additional options" when composing your message.