Scribble Designs: Web Design in Northern Ireland.

Get RSS Feeds For Any Simple Machines Forum

By Gerard McGarry on 23rd January 2007, filed in Web Applications, Web Design & Standards. You can leave a response below. Tags: , , ,

Simple Machines Forum is an excellent piece of free forum-ware. However, out of the box, it’s rubbish at giving you up-to-date features like RSS feeds.

I mentioned a while back that it was possible to republish RSS feeds from your forum on your blog.

How do we achieve this? Well, it’s quite easy actually. With the WordPress RSS widget, you can display the titles from just about any RSS feed you can hook into.

Getting The RSS URL You Want

Right, so let’s look at our Simple Machines forum and see how to extract the latest posts to RSS. Here’s my forum. It’s divided into several categories, with boards for specific topics. You can fetch an RSS feed for any board or topic easily….if you know how to structure the URL.

Categories

Let’s say we want to display the latest posts in my Reality TV category. The URL looks something like this /index.php?action=collapse;c=4;sa=collapse;#4. The key part of the querystring is c=4, which identifies the category. Now, to get Simple Machines Forum to output the category as RSS, let’s recraft the URL a little bit:

/index.php?c=4;type=rss;action=.xml;limit=20

The additional parameters tell SMF to output the category as RSS and show a maximum of 20 items.

Topics

If you wanted to use a specific topic, you can replace the c=4 with board=16.0. Your URL might look something like this:

/index.php?board=16.0;type=rss;action=.xml;limit=20

Setting Up Your WordPress RSS Widget

Now comes the easy bit - adding the feed to WordPress. Go into your wp-admin area and browse to Presentation and then to Sidebar Widgets. Drag in a new RSS Widget to the place in the sidebar you want the widget to appear. Click the configure icon, then paste in the URL you created above.

Configuring a WordPress RSS Widget

Once you save your widget, it will instantly on the website (see below).

Live RSS Widget

The only disadvantage is - as you can see from the illustration above - the RSS feed tends to display individual responses, so if you’ve got a string of replies to a thread, that title will be repeated loads of times.

If you enjoyed this post, please vote for it at: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Ma.gnolia
  • NewsVine
  • Slashdot
  • Propeller

3 Responses to “Get RSS Feeds For Any Simple Machines Forum”

  1. Hiran said on May 9th, 2007 at 5:46 pm :

    Thanks for the great advice.
    I have configured my wordpress blog to get smf forum RSS feeds at http://www.studentlanka.com/

  2. ladynada said on June 11th, 2007 at 6:51 pm :

    I have a question. How do you make it get additional (new) messages, and will it create duplicates?
    thanks!
    nada
    my smf forum http://heartdaughter.com/

  3. Lavanay said on January 20th, 2008 at 4:40 am :

    I have tried it but only last five messages get displayed.. I wonder why?

    By smf Forum: http://bazaarlive.info

Leave a Reply