Advanced search  

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

Pages: [1]   Go Down

Author Topic: PHP include does not work within templates  (Read 5523 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.019 seconds with 19 queries.