Jump to content

Recommended Posts

Posted (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 by wampthing
Posted

I have it working.

All it took was about an hour of doing the same thing over and over again. :P

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.

Posted

OK.

I have my CSS so that it looks normal (depending on what browser you use :P ). 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...