Custom headers/footers 1.4.2? Custom headers/footers 1.4.2?
 

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]

Main Menu

Custom headers/footers 1.4.2?

Started by bino, December 25, 2005, 05:28:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bino

I´ve been looking around on this forum for custom hearders and footers and how to edit add them to your gallery. I´ve copied an existing theme and modified it to my likings. However, I haven´t been able to add the custom footers and headers. On the forums I found I had to edit something in theme.php but I wasn´t able to find it. So what do I need to do?

EDIT: at the moment I´ve added my header into the theme.php file at the top and I got it everything displayed as I want. However, how do I add the footer?

EDIT2: adding header to theme.php with include was not good cause when I view an image the header is added inside the popup aswell. So this brings me back to question 1. How to add both header and footer in 1.4.2?

EDIT3: found fields with custom header and footer in the config panel. However, when I filled in the the path to both correctly, my header and footer are NOT displayed. They are named *.inc, could that be the problem or did I forget something?

donnoman

I would suggest using the custom_header and custom_footer from the config, because it will automatically go across all themes.

.inc doesn't matter.

the custom includes can be php or html.

You just have to make sure you are opening and closing the php tags so everything gets interpreted correctly.

also the default path is relative to coppermines index.php, make sure your path is correct.

What did you put in the config variables.

where did you put the files

can you post the contents of the files you want to include?

bino

Using http in the include path didn´t seem to work. However now I have this problem: Everywhere where I used a bgcolor in my tables (<td bgcolor=...>) the color isnt shown but I get to see the background image of my page. Any idea why?

donnoman

the include path must be RELATIVE to index.php

so lets say youre domain is "www.domain.com";
lets say you've installed Coppermine at www.domain.com/coppermine
lets say you custom header you want included is at the root www.domain.com/header.inc
lets say the custom footer is under an include subdirectory www.domain.com/include/footer.inc

in the custom header path you would do "../header.inc"
in the custom footer path you would do "../include/footer.inc"

now lets say you have a different install of coppermine in a different folder: www.domain.com/larry/curly/moe/coppermine

and you want to point it to the same includes

in the custom header path you would do "../../../../header.inc"
in the custom footer path you would do "../../../../include/footer.inc"

re: bgcolor it's depreciated in XHTML you're better off using css.   Before going on a wild goose chase to figure out why your page background is showing through, you might want to verify that your xhtml page validates. Validation can bring a lot of errors to the forefront, fixing those will usually fix many other problems.



bino

Using the include path as ../../... instead of using http did the trick.

And editing the css and adding some classes to my tables gave the right background aswell.

But now I´ve got another question:
How do I remove the sort options (date, title, file name, position) when viewing the thumbnails?

Joachim Müller

we have a "one question per thread" policy you agreed to respect when signing up. Marking this thread as solved and locking it.