php includes dont work at the bottom of the template php includes dont work at the bottom of the template
 

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

php includes dont work at the bottom of the template

Started by sporkit, August 03, 2004, 08:54:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sporkit

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. :)

Joachim Müller

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

sporkit

sorry gau sometimes i dont think.  ::)

although thanks for that link.  it did help me solve my problem.  i used this link.

also i might just recommend this code for getting the include in case anbody wants it. //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);