Topic: Using Templates?
Hi
If you look at www.motagator.net/s_forums.php, you'll see the punbb forum inside an iframe within my webpage. All the code either side of the iframe is within two templates ('header' and 'footer') and the code looks as follows -
<?php @include("http://www.motagator.net/s_header.tpl"); ?>
<center>
<iframe onLoad="iFrameHeight();" src="http://www.motagator.net/s_punBB/index.php" scrolling="no" scroll="no" id="iframename" marginwidth="0" marginheight="0" frameborder="0" style="width:95%;"></iframe>
</center>
<?php @include("http://www.motagator.net/s_footer.tpl"); ?>
iframes aren't very 'browser friendly' so I'd prefer not to use them.
I notice that there are 'header.php' and 'footer.php' files in the punbb folder. If I include my header.tpl file at the top of the punbb header.php file, it seems to work, but when I put my footer.tpl file at the bottom of the punbb footer.php file, things get screwed!!
Any suggestions?
Thanks
Pash