jonah Posted January 11, 2004 Share Posted January 11, 2004 I would like to take an RSS feed and display the corresponding data in an infobox. Is there any easy way to implement this? I searched for an existing contribution, but didn't find one. Does anyone have any ideas on how I would go about implementing this? Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2004 Share Posted January 11, 2004 I was fiddling around with parsing XML feeds and I made a simple feed grabber. I'm sure it could be modified to be used with osCommerce. You can see it work at http://www.relivguru.com/rssgrab.php, and you can see the code at http://www.relivguru.com/rssgrab.phps. I was just testing out PHP's XML parsing functions, so I didn't set up any method to store the feed, or any way to change the feed without editing the code. I didn't really get terribly involved in creating the script, so there could be some ways of cleaning it up, but it works. I have no real need for an RSS feed in osCommerce, but you're welcome to use that code as a starting place to make your own. All this does is print a table. It doesn't print a whole page, so you could conceivably put the table anywhere in the page you like on osCommerce. Set up a way to store feeds and check it once an hour or so to see if it's up to date, and you would have an RSS feed parser. (I'm sure you would like to change the way the output looks too.) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.