forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: sporkit on August 03, 2004, 08:54:36 pm

Title: php includes dont work at the bottom of the template
Post by: sporkit on August 03, 2004, 08:54:36 pm
i looked around and solved the problem of getting php and includes in my template.  although im still having 2 other problems first off it seems to me that any of the includes {TITLE} or main menu {MAIN_MENU} dont work bellow the main table of the board.  so you can see my custom footer not working at the bottom of my board here http://www.sporkit.com/dsu/gallery/index.php.

also the page i included was using sessions.  unfortunatly they dont seem to work if im using cpg.  however it does work with phpbb.  just wondering if there is anything i can do about this problem.  thanks for any tips. :)
Title: Re: php includes dont work at the bottom of the template
Post by: Joachim Müller on August 04, 2004, 11:54:49 am
one question at a time please, we have a "one question per thread" policy on this board.
Please read http://forum.coppermine-gallery.net/index.php?topic=6353.msg35413#msg35413

GauGau
Title: Re: php includes dont work at the bottom of the template
Post by: sporkit on August 04, 2004, 06:53:26 pm
sorry gau sometimes i dont think.  ::)

although thanks for that link.  it did help me solve my problem.  i used this link (http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=1825).

also i might just recommend this code for getting the include in case anbody wants it.
Code: [Select]
//include code
ob_start();
include("../site_footer.php");
$my_footer = ob_get_contents();
ob_end_clean();
//include code

     $template_vars = array(
'{MY_FOOTER}' => $my_footer
);

        echo template_eval($template_footer, $template_vars);