By: TomH
Date: 2007-04-05
Time: 13:03
|
Any using XML/RSS feed as a data source for MergeBlock() ??Has anyone here done any work to have MergeBlock() accept an XML file/url as the data source ???
I have been trying to adapt an RSS parser (the "class_RSS_feed.php" from Timothy Sakach - which I have used for parsing RSS feeds successfully in the past) Trying to modify Sakach script to produce an array, like this snippet
Yes, this is a poor man's way - I don't really understand how to build classes so I really don't know how to modify classes - but it not working at all. So, I cannot get any output from the new array. Any ideas how to correct this, or BETTER if someone has a code contribution that does this already working :) Thanks for TBS, TomH |
||||
By: TomH
Date: 2007-04-05
Time: 16:11
|
Fuhgeddaboutit Re: Any using XML/RSS feed as a data source for MergeBlock() ??Sorry I didn't do my home work... forget the previous post!!!
Some searching of PHP classes finally gave me some prebuilt classes that will slurp RSS XML into a PHP array -- without me havnig to show how little PHP I can write :( As a penance (Easter season here) for cluttering the TBS forum -- I'll report back when I chose a class and have some TBS templates for display of RSS and XML. Thanks for TBS, TomH |
||||
By: TomH
Date: 2007-04-05
Time: 22:22
|
More on: New: Using XML/RSS feed as a data source for MergeBlock()Back to this...
I now do have an array parsed from an RSS feed (via HTTP) However I am getting lost in referencing the elements inside the array when I do the TBS blocks For my php...
For the template I am trying this...
My errors
As you can see -- I can't make sense of how to "properly" address the block elements. The array looks like this when print_r()
|