PDA

View Full Version : PHP file with just header and footer


mauce
04-06-2003, 09:39 AM
Hi,

I've got a question (may sound stupid for some of you but I'm kinda n00b at PHP).
What does the PHP code looks like for an 'empty' vb-page (so with just a header and footer).
I'd like to have this to use as a template to create new page myself.
A requirement should be that the visitor of that page should be logged in first (So I guess there should be a 'require ./global.php'-statement in there as well).

Could anyone help me please?

Thanks in advance.

assassingod
04-06-2003, 10:22 AM
<?php
error_reporting(7);

$templatesused = "templatename";

require("./global.php");

eval("dooutput(\"".gettemplate("templatename")."\");");

?>


Save that as a PHP file. Upload to your forum directory.
And change "templatename" to the name of your template:)

Erwin
04-06-2003, 10:28 AM
You could try my HTML integrator which could do all that automatically. Have a look in my profile.