The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Including a file within the vB template
Hello all,
I have created a Scheduled Task that generates a file within the file system that contains HTML that I would like presented on the forum. I was wondering how I could execute the following logic on the forum templates - for example the forum home template. 1) Check if the file exists 2) If file exists set custom cookie 3) Include the file/contents where this code is executing (include() ?) The file is text based and contains production ready HTML. Cheers marc --------------- Added [DATE]1226019241[/DATE] at [TIME]1226019241[/TIME] --------------- HEllo all, I have found the answer: Code:
$includedhtml = implode('', file('path/to/this/file/myfile.html')); Marc |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|