Coppermine

admin

Administrator
Staff member
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:<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->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: <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?php <br />echo <<<EOT  <br />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.  <br />EOT; <br />?><!--c2--></div><!--ec2--><br />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.)<!--QuoteEnd--></div><!--QuoteEEnd--><br />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?<!--content-->
What is the code that you are putting in?<!--content-->
I have it working. <br />All it took was about an hour of doing the same thing over and over again. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wallbash.gif" style="vertical-align:middle" emoid=":wallbash:" border="0" alt="wallbash.gif" /> <br />I have no Idea what the difference was (except for frustratin levels). I simply put <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?php include $_SERVER['DOCUMENT_ROOT']."/pool/top.php"; ?><!--c2--></div><!--ec2--> in the myheader.php and it worked. I still have an issue with the CSS, but Ill get after that tomorrow.<!--content-->
Well alright then. That was easy. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Thanks for your help.<!--content-->
OK.<br />I have my CSS so that it looks normal (depending on what browser you use <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> ). Feel free to check it out at our photo section <a href="http://www.jensenconnection.com/" target="_blank">here</a>.<br />For anyone else looking to do it, my suggestion would be to:<br />1) Follow the documented instructions, and<br />2) Repeat for an hour.<br /><br />Enjoy<!--content-->
Looks good in FF Crazy Uncle Dave.<!--content-->
Looks good in both IE and Firefox<br />nice work!<!--content-->
 
Back
Top