PDA

View Full Version : How do I "include" another php file inside my forum template"?


Gutspiller
02-13-2002, 08:19 PM
I asked this a while ago and got a half response. They said something about I can't include a php file in the header part of my forum template. They said I had to put it in phpinclude, or something like that. Can somebody help me out on how I can include a php file into the top of my forum header so it's on every page?

I would greatly appreciate it if you could post the steps. I am not a total noobie, but I do need help on what files I need to put what in, and where in the files I put what code.

Thanks a bunch for any help you can offer. :up:

Lesane
02-13-2002, 08:30 PM
Go to your Styles -> Modify -> [fonts/colors/etc] -> PHP parsed code:

if the filename is hello.php then put there:

include("hello.php");

That should work ;)

Gutspiller
02-13-2002, 09:03 PM
That puts it above my header. I need it the last thing in my header. Any other ideas? :(

Admin
02-14-2002, 05:20 AM
ob_start();
require('./hello.php');
$hello = ob_get_contents();
ob_end_clean();

Gutspiller
02-14-2002, 06:01 AM
Originally posted by FireFly
ob_start();
require('./hello.php');
$hello = ob_get_contents();
ob_end_clean();

I have no idea what I do with that. Where do I put it and do I just change hello to whatever the name of the file is?

Any more help for a php noob and I would really appreciate it. :)