The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Include file in footer template
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 |
#2
|
|||
|
|||
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> |
#3
|
||||
|
||||
<?php include("yourfile.php");?>
Then create a php file called yourfile.php job done |
#4
|
|||
|
|||
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! |
#5
|
|||
|
|||
Chuck i have responded to your thread.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|