The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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) |
#2
|
|||
|
|||
You can put this in a plugin (except the php open and close tags) in the 'global_start' hook location.
|
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
Try putting a 'global $displayxml;' somewhere in your script (before the assignment of $displayxml).
|
#5
|
|||
|
|||
That was it!
Thank you so much |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|