Theme header - server side include... Theme header - server side include...
 

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

Main Menu

Theme header - server side include...

Started by SplanK, November 06, 2005, 01:25:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SplanK

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

Nibbler

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

SplanK

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