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: Problem with custom footer  (Read 13359 times)

0 Members and 1 Guest are viewing this topic.

BrianD

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Problem with custom footer
« on: November 08, 2005, 09:28:00 pm »

I am trying to add a custom footer as described in the FAQ "How do I add a custom header/footer to Coppermine?".  I am trying to add it after the "Powered by Coppermine."  I added to theme.php the following:

Code: [Select]
if(empty($custom_footer)){
  include('../include/footer.html');
  static $custom_footer;
  $custom_footer = ob_get_contents();
  ob_clean();
}

and added '{CUSTOM_FOOTER}' => $custom_footer to the $template_vars array. I added the tag {CUSTOM_FOOTER} at the end of template.html but the tag showed up as just text.  If I add it anywhere before the {GALLERY} tag it works. 

My guess is that {GALLERY} must be the last tag or am I doing something wrong.

Thanks
Brian D

« Last Edit: July 20, 2006, 06:23:08 am by GauGau »
Logged

Nibbler

  • Guest
Re: Problem with custom footer
« Reply #1 on: November 08, 2005, 09:37:07 pm »

Anything you add after the {GALLERY} tag is handled by the pagefooter() function, that is the function you need to modify instead of pageheader().
Logged

miztiik

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
  • Sun is there to be taken
    • My Very Own Collection
Re: Problem with custom footer
« Reply #2 on: April 23, 2006, 03:32:55 am »

Where can i find the pagefooter() function to modify it to show my content

Nibbler

  • Guest
Re: Problem with custom footer
« Reply #3 on: April 23, 2006, 02:19:26 pm »

theme.php
Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem with custom footer
« Reply #4 on: July 18, 2006, 07:02:40 pm »

I'm having the same problem ... footer
theme.php - pagefooter()

i can'T find it!

the template? cuts the rest of my page!!!
my round border don't close!
is this possible with a php function ? - to close a html (maybe better end a html page?)

please help

just for information:
i'm alternating the included hardwired theme ...

thanks in advance
curmetsefrog
Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem with custom footer
« Reply #5 on: July 18, 2006, 07:05:07 pm »

ok i recognized that i use 1.4 ... it won't make a difference . .. ?
Logged

Nibbler

  • Guest
Re: Problem with custom footer
« Reply #6 on: July 18, 2006, 07:10:03 pm »

Search the 1.4 themes board.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with custom footer
« Reply #7 on: July 19, 2006, 09:22:44 am »

ok i recognized that i use 1.4 ... it won't make a difference . .. ?
It will make a difference. There's a reason why we have different support boards for different coppermine versions - basically because they differ ::).
Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem with custom footer
« Reply #8 on: July 19, 2006, 08:58:55 pm »

mkay i did ... thank you
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.