Problem with custom footer Problem with custom footer
 

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

Problem with custom footer

Started by BrianD, November 08, 2005, 09:28:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BrianD

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:


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


Nibbler

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

miztiik

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


curmetsefrog

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

curmetsefrog

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

Nibbler


Joachim Müller

Quote from: curmetsefrog on July 18, 2006, 07:05:07 PM
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 ::).

curmetsefrog