View Full Version : PHP includes in the vb templates
24 Mar 2002, 06:02
Hi I put this in my template:
<?php include("file.php"); ?>
however it's not being done
how would one include a php file onto the main page?
Try something like this:
Code is only visible to licensed users, and only when logged into the forums.
Then put $file wherever you want on your page.
24 Mar 2002, 07:35
seems php isn't recognised at all.
30 Apr 2002, 02:23
This is exactly what I was searching for... and it works great!!!
11 Jul 2006, 09:33
$file = ob_get_contents();
i put that where? global.php ?
This thread is four years old !
How you would do it depends on what version of vB, but you can't put php in templates.
How would you do this in the latest stable version..
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.