The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Including HTML or PHP Not Working
I've attempted to include PHP?and when that didn't work, HTML?to no avail. I used the instructions here but the content simply does not echo through the variable in the template.
I'm running the latest version of 3.6. Anyone have any idea what could be the matter? Thanks. |
#2
|
||||
|
||||
Which method are you using, what exct code are you using, and are you positive that its working but not how you want it too?
|
#3
|
||||
|
||||
I tried both methods. For the HTML…
The HTML to include: http://www.volconvo.com/forums/neorunner_ad.html Plugin at global_start: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#4
|
||||
|
||||
You're plugin system is turned on and the plugin is enabled?
|
#5
|
||||
|
||||
Yes, of course.
|
#6
|
||||
|
||||
Any help?
It would appear it's the implode that isn't working. When I use $neorunner_html = "test"; as the plugin, it works. I finally got it to work, but the include variable would only echo out on certain templates and not others. This seems very odd to me. |
#7
|
||||
|
||||
Code:
$neorunner_html = implode('', file(DIR . '/neorunner_ad.html')); |
#8
|
||||
|
||||
Thanks, but as said above I actually got it to work… just not on all the templates.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|