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 include does not work within templates  (Read 5046 times)

0 Members and 1 Guest are viewing this topic.

Philcomputing

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
    • Phil - Tales from the Geekside
PHP include does not work within templates
« on: January 05, 2006, 04:24:46 pm »

Hi,

I do have an issue with my template.
Because one can not include coppermine into a blog I used the CSS file of my blog as the basic template of coppermine.

Unfortunately I am not able to use php include within my coppermine template

Code: [Select]
<? include("http://www.XYZ.org") ?>
Thank you in advance, Phil

My site can be found here: [url ]http://www.sassen.org/log/shots/index.php[/url]:
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PHP include does not work within templates
« Reply #1 on: January 05, 2006, 04:52:07 pm »

expected behaviour - php in the template file isn't being parsed - search the board for custom header or upgrade to cpg1.4.x
However, you mustn't include coppermine into another page nor vice versa, you can only inlcude bits like a navigation or a logo.
Logged

Philcomputing

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
    • Phil - Tales from the Geekside
Re: PHP include does not work within templates
« Reply #2 on: January 05, 2006, 05:00:40 pm »

Thank you gaugau,

does cpg1.4.x support php include?

Best regards, Phil
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PHP include does not work within templates
« Reply #3 on: January 05, 2006, 05:25:07 pm »

In cpg1.4.x, there's a custom footer and header include that can be set in coppermine's config, yet you can't include all types of files.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.