wampthing Posted March 13, 2006 Posted March 13, 2006 (edited) I am trying to add my sites navigation include to the coppermine photo gallery. My first assumption is that I could simply do a PHP include to the template.html, but that didnt work. After doing some seaching, I found this: for experienced php users, cpg 1.4.x introduces an alternative method of adding intricate custom headers or footers. Create a php file for your header and one for your footer using a format similar to the following: ><?php echo <<<EOT Enter your header/footer content here. What you enter here will be displayedat the top of my page if it is a header and at the bottom of my page if it is a footer. EOT; ?> Name them myheader.php and myfooter.php, or any other original name that doesn't already exist in the cpg folder and save them into the Coppermine root folder. Then while in Admin mode, click on the CONFIG tab, scroll to Themes settings and enter the name of your header and footer files in the appropriate include fields at the bottom of this section. (NOTE: You will still need to edit the template.html file of your theme to remove any unwanted logos and entries above the menu sections.) I have tried adding an php include in that myheader.php file, but it doesnt seem to work. Does anyone have any ideas as to what I could do? Edited March 13, 2006 by wampthing Quote
wampthing Posted March 13, 2006 Author Posted March 13, 2006 I have it working. All it took was about an hour of doing the same thing over and over again. I have no Idea what the difference was (except for frustratin levels). I simply put ><?php include $_SERVER['DOCUMENT_ROOT']."/pool/top.php"; ?> in the myheader.php and it worked. I still have an issue with the CSS, but Ill get after that tomorrow. Quote
wampthing Posted March 13, 2006 Author Posted March 13, 2006 OK. I have my CSS so that it looks normal (depending on what browser you use ). Feel free to check it out at our photo section here. For anyone else looking to do it, my suggestion would be to: 1) Follow the documented instructions, and 2) Repeat for an hour. Enjoy Quote
TCH-Don Posted March 13, 2006 Posted March 13, 2006 Looks good in both IE and Firefox nice work! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.