Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: PHP includes in my custom theme?  (Read 3812 times)

0 Members and 1 Guest are viewing this topic.

typhooner

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
    • jasonschwab.com
PHP includes in my custom theme?
« on: June 25, 2007, 08:53:59 am »

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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PHP includes in my custom theme?
« Reply #1 on: June 25, 2007, 09:20:30 am »

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

attempt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: PHP includes in my custom theme?
« Reply #2 on: July 14, 2007, 02:38:03 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PHP includes in my custom theme?
« Reply #3 on: July 15, 2007, 12:30:37 pm »

What if I need to insert php code below the image?
You could use the custom_footer for that purpose

Is it possible to insert php code in theme.php?
Yes, that's an option as well.
Logged

attempt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: PHP includes in my custom theme?
« Reply #4 on: July 16, 2007, 07:47:07 am »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PHP includes in my custom theme?
« Reply #5 on: July 16, 2007, 08:32:01 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 16 queries.