If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Dynamic Drive has a great script for your picking that allows you to use Ajax and PHP to display RSS feeds on your site within DIV containers.

Description: Using Ajax, this script makes it easy to display RSS feeds from other sites inside DIV containers. Each RSS box can be independently tailored, from the RSS feed to fetch, how many items to show (and whether to paginate them), to what portions of each entry (just the “title”, or “title” plus “description” etc) to display. All this is done on the client side via the script’s exposed methods.

On the server side, RSS Display Box relies on a simple yet versatile PHP RSS parser called SimplePie to fetch the RSS feeds first. This is required as JavaScript cannot access nor parse remote files. The script then uses Ajax to manipulate the feed and provide simple JavaScript methods for customizing the output and on the fly. The feed as a result can also be added to any page on your site, not just PHP pages.

To run the script you need the ability to run PHP on your server.

Here’s a short list of features for both client and server side.

Client Side:

  • Specify which RSS feed to fetch based on the list you provide in the script
  • Specify how many items will display
  • Choose how many items to show per “page” with pagination links automatically or semi-automatically created to cycle through pages using Ajax
  • Each display box generates a unique CSS ID attribute and classname, so it’s easy to style the box to your design.

Server Side:

  • Uses SimplePie to fetch the RSS feeds with support for caching, error handling, int’l encoding and more.
  • Format the body of the RSS item and limit the portion that is shown using all the functions available with SimplePie and also the custom function “outputbody.php”

If you’re looking to display RSS feeds on your site in a no fuss yet flexible manner, RSS Display Boxes is your script!

Leave a Reply

A little about Vernon...

Hey there everybody, I’m Vernon. I’ve been a full-time freelance web designer since 2002 and can honestly say it’s been a great journey.

If you’re interested, take a look at my services site and let me help you with your project.