I recently added the weather hack to my vBulletin and what I'd like to do is save the weather box it generates to a text file for inclusion on other (non-vB) pages of my site.
I managed to get vB Weather to output the contents of the weather include file, after vB Weather has populated the weather data but just before vBulletin parses its template, to a text file. However, since the vB Weather template includes some standard vB template variables (for table background colors and such), those get saved out to the text file as the variable name, instead of being parsed and thus replaced with the proper font colors.
There's a line in vB Weather that reads:
PHP Code:
eval("\$weather = \"".gettemplate("homeindex_left_weather")."\";");
I thought this would give me the parsed template, but it does not.
I tried using
output buffering but did not have any luck. I'm fairly new to PHP coding, though I've been tweaking stuff for awhile now.
Any guidance would be appreciated.
You can view the weather box I'm wanting to export to a text file after it's populated with data and parsed by vB for template variables by going to
my forums (see left nav, towards the bottom).
Thanks!