The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using include
Hi,
I created a plug-in called "Left Column Top", it's Hook Location is global_start. The code is $includedhtml = implode('', file('D:\inetpub\bloodbanktalk\calls\test.htm')); Then on my template "left_column" I added this $includedhtml, but it does not show the contents of the page I want included. Did I go wrong somewhere? |
#2
|
||||
|
||||
I would like to know how to include pages as well..
|
#3
|
||||
|
||||
|
#4
|
|||
|
|||
Quote:
Plus it's the advice I received http://www.vbulletin.com/forum/showthread.php?t=181892. How would I include another file in a php template? I am using the left column hack and have 8 styles, so I'd like to simply put an include in all of the templates and only need to update a file, not 8 templates. |
#5
|
||||
|
||||
PHP Code:
|
#6
|
|||
|
|||
Hmm, not working.
I tried these separately in the plug in: $includedhtml = file_get_contents('http://www.bloodbanktalk.com/calls/test.php'); $includedhtml = file_get_contents('D:/inetpub/bloodbanktalk/calls/test.php'); $includedhtml = file_get_contents('calls/test.php'); Then in the template I place $includedhtml where I want the output. It doesn't give an error, but it doesn't show what I have in the test file either. |
#7
|
||||
|
||||
what happens when you do
PHP Code:
|
#8
|
|||
|
|||
That didn't do it either, thanks for trying, but I give up at this point.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|