The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
include php file in the header
Hi all
I'm trying to include a php file in my header template (vb 2.5) but afer i add the include nothing happen... I've been told to include the file in phpinclude template, I did the following: $var = include 'file.php'; and wanted to add the $var into my header but the file is included everywhere even befor I put the $var in the header and after the file included an error msg is generated and nothing else apperes! What is wrong with this method of including files! plz help me get throug this thanx a lot |
#2
|
||||
|
||||
Look at the original phpinclude template, it has instructions for doing just that.
|
#3
|
|||
|
|||
I have a quick question:
How would you include two php files? I've added one: ob_start(); require('http://www.finheaven.com/ssi/header.shtml'); $score = ob_get_contents(); ob_end_clean(); But I am not sure how you would add two... please let me know. Thanks for your time. |
#4
|
|||
|
|||
hi
just add the code: ob_start(); require('http://www.finheaven.com/ssi/header.shtml'); $score = ob_get_contents(); ob_end_clean(); ans many times as you want! in each section modyfy the file to include! good luck |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|