View Full Version : how to include a page
mcncyo
Wed 13th Oct '04, 5:15am
How do I include an outside html page in the forum. The html has some php inside of it.
Surtain23
Wed 13th Oct '04, 8:29am
How do I include an outside html page in the forum. The html has some php inside of it.
You mean include a template in a php file? If so,
this (http://www.vbulletin.org/forum/showthread.php?t=62164&page=1)
might help you out.
If you mean include a php file into another file, enter the following code in the PHP FILE:
require_once('./includes/functions_function.php');
mcncyo
Wed 13th Oct '04, 8:37am
You mean include a template in a php file? If so,
this (http://www.vbulletin.org/forum/showthread.php?t=62164&page=1)
might help you out.
I need the other way around i want to put a php file inside of a template.
Surtain23
Wed 13th Oct '04, 7:20pm
I don't think thats possible...
gio~logist
Wed 13th Oct '04, 7:22pm
try using <iframe>
House_of_Crazed
Wed 13th Oct '04, 8:39pm
it actually is possible.
Put the include code in the phpinclude_start template. There's already an example in the template to show you how to include one.
That's the only solution I am aware of.
mcncyo
Mon 18th Oct '04, 11:56pm
So this would be correct?
ob_start();
require("http://www.mychristiannetwork.com/include/main.include");
$header = ob_get_contents();
ob_end_clean();
forum.mychrisitannetwork.com is fourms, www.mychristiannetwork.com is the main site.
/home/website/www/ --< main site
/home/website/www/forum/ --< forum site
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights