![]() |
RSS Parsing + multiple feeds??
Hi all!
I have this problem about RSS parsing and multiple feeds.. I want to get feeds from several place and show them in one feed stream.. You can see example in here (google feed API whit javascript). Script what I have being using is lastRSS and I have managed to get feeds showing but not in same stream.. Is there way to get it done via lastRSS script or should I try other one instead? Could saving feeds info into database be one way?? Thanks for all help and hints!! :) Ps. below is some example of this lastRSS script what I'm using, could there be something?? Code:
<?php |
this is untested, but it should work (or at least get you closer to where you need to be). I set it up to use an output buffer to decide whether or not to display the list tags, and then to display them around everything else, making it look like one workflow.
Please let me know if I am way off base here, I may have misunderstood what you are looking for. PHP Code:
|
Yey, Thank you jcorradino!! :)
This is what I was looking for and it worked like a charm! Well, third last line, the echo statement was missing ";" but who's counting?? ;) Actually there is one more question.. lastRSS script can fetch pubDate from feed, is it possible to sort those feeds as date? In ShowOneRSS function where is foreach, it fetch 'items' ($item[link], $item[title] ... ) and publish date would be $item[pubDate].. I have trying to find somekind of foreach sorting but I don't know is it possible. But if you or someone else find a way, please let me know! :) Thanks again! |
you could most likely print_r($rs) to see what exactly is being set. So like this:
PHP Code:
|
| All times are GMT. The time now is 05:16 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0