Quote:
Originally Posted by Sent1nel
Edit: Sorry I got told off for posting in the wrong forum.
I fixed the problem and to simply make a new page which utilises existing stylesheets and headers, technically all you need to do is:
1. Create Custom Template with everything you Require - Ensure you include your header, footer etc references, shown below.
PHP Code:
{htmldoctype}
<html>
<head>
<title> Blah </title>
$headinclude
</head>
<body>
$header
BLAHBLAHBLAHBALH
$footer
</body>
</html>
2. In your new page - use the below code to invoke your template. (My Custom template was called "blah").
PHP Code:
<?php
$templatesused = "blah";
include("./global.php");
eval("dooutput(\"".gettemplate("blah")."\");");
?>
Tony.
|
Your methdo should only work for vB2 $templateused is no longer a valid varible in vB3