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: Embedding into existing site with PHP includes in template.html  (Read 3299 times)

0 Members and 1 Guest are viewing this topic.

Cailean

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

My site uses php includes and CSS to build the header, navbar, and footer.  I would like my CPG to share these elements.  I tried to change template.html to a .php file (changing the reference also in init.inc.php) but then discovered that CPG parses template.html before serving it.

Is there a way to have CPG run templete.php (with includes, etc.) and then parse that for layout?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Embedding into existing site with PHP includes in template.html
« Reply #1 on: August 24, 2004, 02:51:24 am »

Have you searched thru the forums yet?  I remember this being discussed before.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Cailean

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Embedding into existing site with PHP includes in template.html
« Reply #2 on: August 24, 2004, 03:25:45 am »

Yes, I have searched....  again...

Alright, so forget template.html....   focussing now on theme.php...  I tried the FAQ suggestion of editing the pageheader function but get a parse error on lthe line that contains: static $custom_header = ob_get_contents();  The error reads: Parse error: parse error, unexpected '(', expecting ',' or ';' in /.../theme.php on line 822

None of the other solutions seemed to meet my needs...

I found a few promising references to this thread: http://forum.coppermine-gallery.net/index.php?topic=2988.0 but it appears to be unavailable...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Embedding into existing site with PHP includes in template.html
« Reply #3 on: August 24, 2004, 10:28:35 am »

the thread is longer available, it's ID has changed. Can't tell you by heart where it is now, but searching will definitely help, search for "custom header" or "custom footer". There is as well a mod that let's you add php to your template.html (you will have to search again).

GauGau

Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.