![]() |
Adding PHP to the header
I have a set of PHP scripts that formats and displays dynamic xml data in nice little HTML tables...
I want to include these in my header. I've searched around and found how to add the PHP to templates, but I can't find the actual PHP file the header is in. If I read everything correctly I want to add this: PHP Code:
(and then place $displayxml in my header template) |
You can put this in a plugin (except the php open and close tags) in the 'global_start' hook location.
|
Hi,
Thanks for the lead. This is what I have right now as a plugin (in global_start): PHP Code:
The PHP works standalone, or if I include it in one of my own pages. If you are interested in seeing what this ugly mess of code spits out, it is right here ;) http://www.friendcodes.com/forums/te...d_mkdsTOP5.php |
Try putting a 'global $displayxml;' somewhere in your script (before the assignment of $displayxml).
|
That was it!
Thank you so much |
All times are GMT. The time now is 05:17 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|