View Full Version : Including HTML or PHP Not Working
voteforbird
03-08-2007, 03:04 PM
I've attempted to include PHP?and when that didn't work, HTML?to no avail. I used the instructions here (http://www.vbulletin.com/docs/html/templates_externalfiles) 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.
Zachery
03-08-2007, 04:26 PM
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?
voteforbird
03-08-2007, 07:56 PM
I tried both methods. For the HTML…
The HTML to include: http://www.volconvo.com/forums/neorunner_ad.html
Plugin at global_start:$neorunner_html = implode('', file('home/volconvo/public_html/forums/neorunner_ad.html'));OR$neorunner_html = implode('', file('./neorunner_ad.html'));OR$neorunner_html = implode('', file('http://www.volconvo.com/forums/neorunner_ad.html'));Variable in footer template:$neorunner_htmlNothing works! What gives?
Zachery
03-08-2007, 08:17 PM
You're plugin system is turned on and the plugin is enabled?
voteforbird
03-09-2007, 12:54 AM
Yes, of course.
voteforbird
03-14-2007, 02:55 AM
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.
$neorunner_html = implode('', file(DIR . '/neorunner_ad.html'));
voteforbird
03-15-2007, 04:25 AM
Thanks, but as said above I actually got it to work… just not on all the templates.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.