Could someone check this link out (website mock-up), looking specifically at the ‘Cody Chamber of Commerce Upcoming Events and Meetings’ section –
I am wondering if we can have a direct link to the Cody Chamber of Commerce’s RSS on the homepage that looks EXACTLY like this. As if the visitor was viewing that section on the Chamber’s website – with the text list of ‘Upcoming Events and Meetings’. NOT an RSS feed icon, but an actual list of the events in text form that updates whenever the Chamber updates that section on their site. I can create the top of that section with a calendar and image. I’m just wondering about the calendar text.
If the other site has an RSS feed with those titles, then yes, you can pull them in to your site, though it requires some scripting (like PHP), so this thread should probably be moved to that forum. As for the appearance, that’s handled by CSS.
I would seriously consider grabbing the target rss feed, say every few hours or once a day and caching it on your server.
You could use cURL to do this fetching, invoked by a cron job.
Then the rss feed is simply an xml file on your own server.
Grab that file and pass it to simpleXML, extract what you need and format the results in a way that suits you, potentially then cache these results as a html snippet and simply include them in the correct place on your own server.
Trying to import and formatting the file in one go leaves you prone to latency problems and will make your home page seem slower to load. Hence, divide the job up.
Try googling for [google]simplexml rss[/google], but bear in mind many of these tutorials will show you how to do the two operations in one hit and may depend upon file_get_contents() which may not be enabled if you are on a shared server.
Some RSS reader classes (magpie etc) have been written to parse and also create rss feeds, but are probably overkill for what you want to do.
You can either grab and process the feed in real time while the page loads, but it will cause a small delay or
alternatively run the script as a cron job then store the output as a simple flat/text file that can incorperated into the page.
If you want to get really slick there is the ‘double tap’ system where the page loads up with the stored information then makes an AJAX call to check the RSS feed to see if anything has changed since the scheduled look and swaps the any stuff into the page half a second or so after loading finishes. A good example of this in action is the job scanner over lovelogic.net because you can see the change take place.
WOW, these answers are way over my head! Thank you both for your replies/suggestions! I think I’ll need to hire someone to help us get this RSS feed the way the client want it. Any suggestions on that? Or anyone want to get together and walk me through what I need to do? I’m afraid I would need a lot of hand holding.