Author Topic: How to RSS  (Read 1499 times)

0 Members and 1 Guest are viewing this topic.

Offline ScottBLAMTopic starter

  • Contributor
  • Posts: 16
  • Country: us
How to RSS
« on: March 21, 2019, 12:20:34 am »
https://www.simplemachines.org/community/index.php?topic=25009.0 (Oldiesmann)
Quote
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!

Recommended Ticker: http://www.battware.co.uk/desktopticker.htm
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11394
  • Country: us
    • Personal site
Re: How to RSS
« Reply #1 on: March 21, 2019, 01:34:50 am »
Yep. I use TT-RSS and if some place does not have RSS, I'm pretty much guaranteed to not visit regularly or at all. Thankfully old fashioned forums still have RSS.
Alex
 

Offline ScottBLAMTopic starter

  • Contributor
  • Posts: 16
  • Country: us
Re: How to RSS
« Reply #2 on: March 21, 2019, 01:18:17 pm »
I found your 2014 post on RSS while looking for RSS features but didn't want to necro it. The code line you showed helped me find the full guide, thanks.
 

Offline fzabkar

  • Super Contributor
  • ***
  • Posts: 2360
  • Country: au
Re: How to RSS
« Reply #3 on: May 24, 2024, 12:22:45 am »
EEVblog RSS feeds

https://www.eevblog.com/forum/.xml/?type=rss;sa=recent;limit=100;board=25 (Repair forum)

https://www.eevblog.com/forum/.xml/?type=rss;board=n (feeds for forum #n)

Table of feed topics referenced against board #

1 Blog
2 Beginners
3 -
4 General Technical Chat
5 Help
6 Projects, Designs, and Technical Stuff
7 Buy/Sell/Wanted
8 The AmpHour Radio Show
9 Other Equipment & Products
10 Contests & Events
11 Microcontrollers
12 -
13 Manufacturing & Assembly
14 PCB/EDA/CAD
15 Altium Designer
16 Eagle
17 -
18 DIPtrace
19 KiCad
20 Open Source Hardware
21 Test Equipment
22 Crowd Funded Projects
23 Supporters Lounge
24 -
25 Repair
26 -
27 Jobs
28 Work Wanted
29 Other Blogs
30 RF, Microwave, Ham Radio
31 -
32 Thermal Imaging
33 Metrology
34 Power/Renewable Energy/EV's
35 Circuit Studio
36 Proteus
37 -
38 Vintage Computing
39 Dodgy Technology
40 - 44
45 Embedded Computing
46 - 50
51 Networking & Wireless
52 - 62 
63 Security
64 - 68
69 Programming
70 - 74
75 Computers
76 - 100
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11394
  • Country: us
    • Personal site
Re: How to RSS
« Reply #4 on: May 24, 2024, 12:25:37 am »
I use https://www.eevblog.com/forum/.xml/?type=rss;limit=50 for all posts, including replies and https://www.eevblog.com/forum/.xml?type=rss;sa=news;limit=20 for just the new posts across the forum.

The later is specifically useful, since it lets me see all the new posts quickly.
Alex
 

Offline fzabkar

  • Super Contributor
  • ***
  • Posts: 2360
  • Country: au
Re: How to RSS
« Reply #5 on: May 24, 2024, 12:33:28 am »
Just a short time ago, the administrator added an RSS icon next to each forum in the main index.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf