PDA

View Full Version : Include file in footer template


Muller2
02-22-2010, 02:18 PM
Hi,

I would like to include a php file in the footer template and I followed this guide http://www.vbulletin.com/forum/showthread.php?173937-How-to-Include-a-PHP-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

mtakhar
03-04-2010, 11:04 PM
Did you ever resolve this?

I am having the same issue and it doesn't appear to work in version 4.0.

Can anyone shed some light on this?

I created a global_start plugin with this:

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

I then added this to the style manager/header:

<div>$includedphp</div>

When I view source I get <div></div>

TimberFloorAu
03-05-2010, 03:25 AM
<?php include("yourfile.php");?>

Then create a php file called yourfile.php

job done

chuckrobbie
03-06-2010, 06:58 AM
I dunno

Everything I try to add to the footer template comes up with nasty errors!
VB4.0.2 is not like previous verions were this was easy to add stuff to a footer!

Can someone shed some light please?
Google analytics, custom php scripts etc do not work in footer template!

ChopSuey
03-06-2010, 07:43 AM
Chuck i have responded to your thread.