forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: BrianD on November 08, 2005, 09:28:00 pm

Title: Problem with custom footer
Post by: BrianD 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

Title: Re: Problem with custom footer
Post by: Nibbler 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().
Title: Re: Problem with custom footer
Post by: miztiik on April 23, 2006, 03:32:55 am
Where can i find the pagefooter() function to modify it to show my content
Title: Re: Problem with custom footer
Post by: Nibbler on April 23, 2006, 02:19:26 pm
theme.php
Title: Re: Problem with custom footer
Post by: curmetsefrog 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
Title: Re: Problem with custom footer
Post by: curmetsefrog on July 18, 2006, 07:05:07 pm
ok i recognized that i use 1.4 ... it won't make a difference . .. ?
Title: Re: Problem with custom footer
Post by: Nibbler on July 18, 2006, 07:10:03 pm
Search the 1.4 themes board.
Title: Re: Problem with custom footer
Post by: Joachim Müller 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 ::).
Title: Re: Problem with custom footer
Post by: curmetsefrog on July 19, 2006, 08:58:55 pm
mkay i did ... thank you