Cotton Rohrscheib

The Cotton Club Blog & Podcast

  • Home
  • Bio
    • Resume
  • Blog
    • Faith & Family
    • Marketing & Tech
    • Farm & Business
    • Entertainment
    • Health & Wellness
    • Urban Farming
    • Weekend Projects
  • Media
    • Newsletter
    • Photo Galleries
    • Instagram Feed
    • Video Archives
    • Podcasts
    • Music Playlists
  • Books
  • Connect
    • Rohrscheib Capital
    • Disclaimer
    • Privacy Policy
You are here: Home / Marketing & Tech / SMF – XML, RSS and RSS2 Feeds

SMF – XML, RSS and RSS2 Feeds

March 9, 2009 by Cotton Rohrscheib Leave a Comment

My partners and I have been running Simple Machines forums lately for various projects and really like the board software as opposed to many of the other ones that are on the market.  For example PHPBB is notorious for being defaced by hackers and also leaves a lot to be desired in the realm of XSS exposure. 

Over the past few years we have learned the value of RSS Feeds, this post on the simple machines forums shows you how to create RSS feeds for your Simple Machines Forum installation.  I thought that it would be worthwhile to post this here (also so that I can locate it quickly in the future)…

One of the best features in SMF is its news feeds. However, many people aren’t aware of how many options there are, or that this is even available. So, here’s a list of available options and what they do…

First, make sure you’ve enabled the feeds:

  • Admin -> News and Newsletters –> Settings
  • Check the box next to "Enable XML/RSS News".
  • The "Maximum post length" value determines how many characters of a post are output in the feeds. The default value (255) is fine for now

Now, on to the fun stuff. All of the XML content is accessed via the ".xml" action… Other formats can be achieved by adding one of the following to the URL:

  • ;type=atom – Atom
  • ;type=rdf – RDF
  • ;type=rss – RSS 0.91
  • ;type=rss2 – RSS 2.0

The default feed is the 5 most recent posts:
http://www.simplemachines.org/community/index.php?action=.xml

There are several "sub-actions" available to this action, specifying exactly what to display:

Recent Posts (displays the most recent posts that you can see)
"Sub-action": recent

  • Default: Shows 5 most recent posts
  • Available options:
    limit=x – display the "x" most recent posts (if number is less than 5, it will display 5. If number is larger than 255, it will display 255).
    board=y – display only the recent posts from board "y"
    boards=x,y,z – display only the recent posts from the specified boards
    c=x or c=x,y,z – display only the recent posts from boards in the specified category/categories
  • Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;board=72;limit=10

News (displays the first post from the most recent topics that you can see)
"Sub-action": news

  • Available options:
    limit=x – display only "x" items
    board=y – display only news topics from board "y"
    boards=x,y,z – display only news topics from the specified boards
    c=x or c=x,y,z – display only news topics from boards in the specified category/categories
  • Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=news;board=72;limit=10

Members (displays most recent members):
"Sub-action": members

  • Available options:
    limit=x – display only the "x" most recent members
  • Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=members;limit=10

Profile (displays the "profile summary" data in a nice XML feed for the specified user)
"Sub-action": profile

  • Required option:
    u=x – display the profile info for user whose ID is "x"
  • Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=profile;u=150

Now – you’re probably wondering what you can do with this. Quite a bit actually.You can syndicate this stuff by giving people these URLs to use on their sites (they will need to have their own RSS parser to deal with it though – CaRP is a good free one (requires PHP)). You can also use PHP’s XML Parser Functions to format the output the way you want it (although you can also do this using SSI.php). There are also several free sites that will parse the feeds for you, including www.rss2javascript.com and www.feedburner.com.

You can also subscribe to these feeds through an XML reader, Firefox, Thunderbird or any other software that supports XML or RSS feeds (note – Outlook and Outlook Express do not support this…) – you will need to have either "type=rss" or "type=rss2" somewhere in the URL for it to work. If you would like to know how to set this up in Firefox or Thunderbird, let me know. Enjoy!

EDIT: Updated post to reflect options available in 1.1.
EDIT again: Fixed typo (";type=rss – RSS 2.0" -> ";type=rss2 – RSS 2.0" – thanks to Sarge for pointing that out)

« Last Edit: April 13, 2008, 01:30:38 AM by SleePy »

Getting the Most Out of SMF – XML, RSS and RSS2 (and Atom and RDF) feeds

Share this post on:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest

Related

About Cotton Rohrscheib

The Cotton Club is a monthly podcast hosted by me, Cotton Rohrscheib. I'm a 52 year old entrepreneur w/ ADHD, OCD (and now AARP) that refuses to grow up as I grow old. I have collaborated and invested in hundreds of projects throughout my career in multiple industries such as; technology, healthcare, and agriculture. I also have 25 years experience in the marketing industry as a co-founder of an award-winning advertising agency. I will undoubtedly cover a wide variety of topics on my podcast while sharing some really crazy stories and situations that I've been fortunate to witness firsthand. I also have a book coming out in 2025 titled, "Mistakes were Made"

Please Drop Your Questions or CommentsCancel reply

Let’s Connect

  • Email
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Updates

  • EP:032 – Cotton Rohrscheib & Diana DeHart
  • Challenges & Opportunities Going into 2025
  • Find us at the 2025 Arkansas Women in Agriculture Conference in Hot Springs, Arkansas
  • Be Sure to Checkout FBN’s Farmers First™  Crop Nutrition & Adjuvant Lineup for 2025
  • What we all need in Dark Times…

Blog Categories

  • Blog (419)
  • Entertainment (376)
  • Faith & Family (147)
  • Farm & Business (288)
  • Health & Wellness (33)
  • Marketing & Tech (584)
  • Podcasts (31)
  • Urban Farming (20)
  • Weekend Projects (1)

Listen & Subscribe

Blog Archives

Join the Cotton Club!

 

Content Copyright: 2001-2025
Cotton Rohrscheib | Rohrscheib Capital