Custom Footer Custom Footer
 

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

Main Menu

Custom Footer

Started by eamethan, February 24, 2005, 06:36:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eamethan

So I wanted to place a custom footer on my page with a php include.  I came across this http://coppermine.sourceforge.net/faq.php#customHeader but I wasn't exactly to sure how to impliment this.  The php include would look like this:

<?
    include("http://www.mysite.com/users_online.php");
?>


I'd like to include it at the bottom of the page just above the powered by coppermine link, and to display with the same CSS properties.  Hopefully someone sees this as simple, and can just give me the code, if not at least a push in the right direction would help. 

Joachim Müller

a search for "custom footer" would have shown you many threads with examples, e.g. http://forum.coppermine-gallery.net/index.php?topic=9863.0

Joachim

eamethan

i can find the search feature on my own thanks.  did you even read that thread you linked me to?  maybe there is a more compliant solution out there.

QuotePlease note that this will not create anything that even closely resembles valid code, but I guess you don't mind, as your includes themselves are very far from compliance with anything

so if you don't feel like assisting me please don't link me to something that is not the proper way to solve this problem.  i don't want to start throwing in a bunch of code that is not correct. 

donnoman

The article gaugau pointed you at was sound.

The problem with creating a COMPLIANT include had to do with that users specific code he was trying to force to be included in coppermine.

If your php inlcude only includes content that is designed to appear between <body> and </body> and produces html 4.01 transitional valid HTML then you shouldn't have any problem.

These same methods of doing a custom_header and custom_footer inlcude are used in the development version and all of the core themes validate as XHTML 1.0 Transitional with an XHTML 1.0 Transitional valid PHP include.

kegobeer

Wow.  You can find the search feature on your own?

I checked that link and it seems to me that explains how to include a file, and properly display it as a custom footer.  Perhaps you didn't understand the thread or how to make those changes?

Including files in our templating system isn't easy, but that thread does indeed show how to do it.  I don't see how you can say that is "a bunch of code that is not correct" if you don't know how Coppermine works or if you haven't tried that solution.

Looks like it was a "push in the right direction" to me.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots