SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: nathan89 on February 04, 2009, 07:12:12 PM

Title: SSI Problem
Post by: nathan89 on February 04, 2009, 07:12:12 PM
When I have SimplePortal 2.1.1 installed on my SMF2 forum I can not use the SSI finction template_header(); and template_footer();. Rather than showing just the header of footer it shows the entire portal.  If I uninstall simple portal, these work fine.  Any idea how to resolve this?
Title: Re: SSI Problem
Post by: Nathaniel on February 17, 2009, 08:21:55 PM
Hmm, seems like a bug. Moving this topic to bug reports.

You shouldn't really actually directly call the 'template_header' and 'template_footer' functions when using SSI.php. Try using the $ssi_layers array, like the example below:
Code: [Select]
<?php
$ssi_layers 
= array('html''body');
require_once(
'SSI.php');
?>


Main Content goes here.

<?php 
ssi_shutdown
();
?>

Added this issue/bug to the BugTracker:
http://simpleportal.net/index.php?issue=132.0
SimplePortal 2.3.8 © 2008-2024, SimplePortal