OK, I have managed to get a header and footer working using the vB template method.
PHP Code:
<?
error_reporting(7);
require("./global.php");
eval("dooutput(\"".gettemplate("audio")."\");");
?>
I have this in my audio template:
Quote:
{htmldoctype}
<html>
<head>
<title>$bbtitle - Audio</title>
$headinclude
</head>
<body>
$header
!!MY CODE HERE!!
$footer
</body>
</html>
|
I have quite a big PHP script that calls audio clips from my database, I need to get that included where it says !!MY CODE HERE!!, I have tried making an include file (audio.inc) and calling that through the phpinclude template, but $variables dont seem to get processed when I do this. Plus the code would be quite intensive if it was included in each page vB loads!
Please help