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: Theme header - server side include...  (Read 2273 times)

0 Members and 1 Guest are viewing this topic.

SplanK

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Theme header - server side include...
« on: November 06, 2005, 01:25:46 am »

Hiya..

I am trying to build a website which uses server side includes.  Basicaly having:

Header.html - content.html - footer.html

all these 3 times are pulled into one when say index.shtml is requested..

job done fine...
what i want to do is pull the header.html file into the CMG template when ever it loads so i can still have the main website links.

I have had a quick search through the site and tried a few things ( such as http://coppermine.sourceforge.net/faq.php?q=customHeader#customHeader ) but i cant see anything that would work for myself.

My server will not do server side includes unless the file name extension is .shtml which is annoying.

Thanks
« Last Edit: November 06, 2005, 02:17:37 am by Nibbler »
Logged

Nibbler

  • Guest
Re: Theme header - server side include...
« Reply #1 on: November 06, 2005, 01:44:57 am »

Custom header should work out just fine. Use a php include instead of ssi.
Logged

SplanK

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Theme header - server side include...
« Reply #2 on: November 06, 2005, 02:11:17 am »

thanks for your quick reply..

I had another go at sorting it out and managed to get it sorted..

I had an issue where it was coming up with a require ' or something..

Anyway - after looking at this post:
http://forum.coppermine-gallery.net/index.php?topic=23272.0

I split one of the lines of code and it worked, straight away...

now - onwards with the next task!!
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.