PDA

View Full Version : Include file in footer template


squangcao
03-20-2010, 02:16 PM
Hi,

I would like to include a php file in the footer template and I followed this guide http://www.vbulletin.com/forum/showt...P-or-HTML-File but that doesn't seem to work.

Has this changed in VB4? Or am I doing something incorrectly?

On the template I have '<div>$includedphp</div>' and on my plugin that is active I have

Code:

ob_start();
include('sitestats.php');
$includedphp = ob_get_contents();
ob_end_clean();

If anyone can help it would be much appreciated

Thanks,

Al