Advanced search  

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]

Pages: [1]   Go Down

Author Topic: php includes dont work at the bottom of the template  (Read 3440 times)

0 Members and 1 Guest are viewing this topic.

sporkit

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
php includes dont work at the bottom of the template
« 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. :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: php includes dont work at the bottom of the template
« Reply #1 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
Logged

sporkit

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: php includes dont work at the bottom of the template
« Reply #2 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.

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);
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.