Advanced search  

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

Pages: [1]   Go Down

Author Topic: Custom headers/footers 1.4.2?  (Read 5530 times)

0 Members and 1 Guest are viewing this topic.

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Custom headers/footers 1.4.2?
« on: December 25, 2005, 05:28:33 pm »

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?
« Last Edit: December 27, 2005, 12:04:39 am by GauGau »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Custom headers/footers 1.4.2?
« Reply #1 on: December 25, 2005, 06:16:45 pm »

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?
Logged

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Custom headers/footers 1.4.2?
« Reply #2 on: December 25, 2005, 06:43:17 pm »

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?
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Custom headers/footers 1.4.2?
« Reply #3 on: December 25, 2005, 07:01:50 pm »

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.


Logged

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Custom headers/footers 1.4.2?
« Reply #4 on: December 26, 2005, 08:04:04 pm »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom headers/footers 1.4.2?
« Reply #5 on: December 27, 2005, 12:04:14 am »

we have a "one question per thread" policy you agreed to respect when signing up. Marking this thread as solved and locking it.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.