Advertisement:

Author Topic: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds  (Read 640079 times)

Offline nibb

  • Jr. Member
  • **
  • Posts: 148
I think the RSS output is only avaible for version 1.1 right?

Offline nibb

  • Jr. Member
  • **
  • Posts: 148
Well it wont work on the Thundserbird RSS, it says its not a valid url, any tips?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
http://forum.zenigata.it/index.php?action=.xml;limit=20;type=rss2

The action above displays the 20 most recent posts. Is there a way to display the 20 most recent topics?

Use ;sa=news.  This will be the first post in each topic, not the last.

I think the RSS output is only avaible for version 1.1 right?

No, rss 0.93 and 2.0 are available in 1.0.  1.1 adds RDF and ATOM support.

Well it wont work on the Thundserbird RSS, it says its not a valid url, any tips?

In my experience, Thunderbird prefers RSS 2.0.  However, if type=rss2 fails you, try type=rss.

-[Unknown]

Offline nibb

  • Jr. Member
  • **
  • Posts: 148
Not =rss or =rss2 works, it says
Its not a valid RSS channel.
Funny but if you go to the =.xml only page it shows a RSS page on the browser, but even that is not accepted. I use Spanish lenguage both for the forum and Thunderbird but i dont think that has something to do with it.

Offline Rik©

  • Full Member
  • ***
  • Posts: 605
  • Gender: Male
    • SimpleTweaks
Not =rss or =rss2 works, it says
Its not a valid RSS channel.
Funny but if you go to the =.xml only page it shows a RSS page on the browser, but even that is not accepted. I use Spanish lenguage both for the forum and Thunderbird but i dont think that has something to do with it.

Try a different format.... something like this:
Code: [Select]
index.php?board=3.0;sa=news;type=rss2;action=.xml
I use feed2js on one of my sites and somehow it only works this way...

Offline edchapman

  • Jr. Member
  • **
  • Posts: 194
  • Gender: Male
    • Christian Youth Forum
How do you get the little rss icon to show up next to the url?

Offline mytreo

  • Jr. Member
  • **
  • Posts: 284
    • treo
Here's a little tip for advertising more RSS feeds. This will advertise the feeds from the board you are currently browsing as well as the main forum feeds. (I think Oldiesman will like this ;) ) Seems to work for me...

index.template.php

Code: [Select]
// If RSS/XML news is enabled, indicate that an RSS feed is available
if (!empty($modSettings['xmlnews_enable'])) {
echo '
<link rel="alternate" type="application/rss+xml" title="Most Recent Posts" href="', $scripturl, '?type=rss;action=.xml;limit=20" />
<link rel="alternate" type="application/rss+xml" title="News" href="', $scripturl, '?type=rss;action=.xml;sa=news" />';
// If we're in a board or topic, indicate extra RSS feeds for that board.
if (!empty($context['current_board']))
echo '
<link rel="alternate" type="application/rss+xml" title="This Board Most Recent Posts" href="', $scripturl, '?type=rss;action=.xml;sa=recent;board=', $context['current_board'], ';limit=20" />
<link rel="alternate" type="application/rss+xml" title="This Board News" href="', $scripturl, '?type=rss;action=.xml;sa=news;board=', $context['current_board'], '" />';
}

Great to hear 1.1 has more advanced RSS capabilities, maybe this little touch would be included or even configurable through admin too :)

Chris
« Last Edit: May 20, 2005, 09:22:15 AM by mytreo »
Treo forum - Powered by SMF, of course
Treo news - powered by MovableType and integrated with SMF
Treo downloads - hacked from phpNuke and integrated with SMF
Treo knowledge base - powered by Wikka and integrated with SMF
Treo 650 | Treo 700w | Treo 700p

Offline jbutler

  • Newbie
  • *
  • Posts: 3
Has anyone got this working with the Mambo bridge?

I got it running on my Mambo site, with one problem.  SMF is wrapped in Mambo, but the XML links are to the stand-alone SMF.  Can the links be adjusted to point to the wrapped SMF?

Thanks!

Offline culpeper

  • Semi-Newbie
  • *
  • Posts: 49
This works on SharpReader and My Yahoo! but not on Firefox and Thunderbird.

http://tarawa-betio.org/coulterfranken/index.php?type=rss;action=.xml;limit=20

Also at:
http://www.tarawa-betio.org/coulterfranken/

when you look at the page source you see

link rel="alternate" type="application/rss+xml" title="RSS" href="http://tarawa-betio.org/coulterfranken/index.php?type=rss;action=.xml;limit=20" />

It's missing the www before tarawa-betio.org

« Last Edit: June 04, 2005, 01:40:09 AM by culpeper »


Offline d3v

  • Jr. Member
  • **
  • Posts: 209
My site url: www.catchmydr1ft.com/smf
RSS format that I try to use: http://www.catchmydr1ft.com/smf/index.php?action=.xml
Using SharpReader I receive:

Error parsing RSS XML: Undefined root element: xml-feed 

Link to try validation is here: http://feedvalidator.org/check?url=http%3a%2f%2fwww.catchmydr1ft.com%2fsmf%2findex.php%3faction%3d.xml

I receive the same error:
line 2, column 0: Undefined root element: xml-feed [help]

02. # <smf:xml-feed xmlns:smf="http://www.simplemachines.org/" xmlns="http://www.simplemachines.org/xml/recent" xml:lang="en-US">

RSS/XML News is enabled in the Forum Settings.

Any ideas, I'm pretty sure this is something simple that I just overlooked.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male

Offline d3v

  • Jr. Member
  • **
  • Posts: 209
Thanks. Knew it was something simple.

Here's an interesting question then. My Forum name is left blank for cosmetical purposes, yet I think it's a good name to have a name for my RSS feed for users to distinguish it in their client. Is it possible to change the name of the RSS Feed while keeping the Forum's name blank.


EDIT: Actually I just read that I'm asking in the wrong forum. If possible can you please move it to the appropriate place.
« Last Edit: June 11, 2005, 03:15:46 AM by d3v »

Offline nibb

  • Jr. Member
  • **
  • Posts: 148
Well i still cannot get it to work on Thunderbird or any other reader.
I use for example the same url that Simple Machines uses for their forum wich works.
http://www.domain.com/comunidad/index.php?board=2.0;sa=news;type=rss;action=.xml

I just get invalid channel.

Is there something special i need or what?

Offline vipmoney

  • Jr. Member
  • **
  • Posts: 102
  • Gender: Male
    • ClubeInvest.com

How can we get a RSS feed, that gives the last X posts from specific member ?

thanks !
VipMoney

Offline xerson

  • Newbie
  • *
  • Posts: 1
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #35 on: August 01, 2005, 11:41:51 AM »

I actually want the most recently updated topics, not the posts themselves.  I guess I could do that by ignoring duplicate topics.  That is I actually got a response from the server for the appropriate board.

I found an answer on that.
Find News.php go to the function getXmlNews($rss)

then change

AND m.ID_MSG = t.ID_FIRST_MSG

into

AND m.ID_MSG = t.ID_LAST_MSG

This will sort on the last post of the topic and not the first. So the topic with the most recent post will be shown at top.

Offline jorgen

  • Jr. Member
  • **
  • Posts: 249
  • Gender: Male
    • Scandinavian Inventorforum
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #36 on: August 18, 2005, 12:44:14 PM »
Google now supports rss in the google personilized homepage.    http://www.google.com/ig

But I cannot make http://www.simplemachines.org/community/index.php?action=.xml;type=rss2 work there.
How come?

Offline jorgen

  • Jr. Member
  • **
  • Posts: 249
  • Gender: Male
    • Scandinavian Inventorforum
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #37 on: August 19, 2005, 05:13:27 AM »
Google now supports rss in the google personilized homepage.    http://www.google.com/ig

But I cannot make http://www.simplemachines.org/community/index.php?action=.xml;type=rss2 work there.
How come?

Works now. Probably just a glitch last time I tried.

Offline mamboopensource

  • Semi-Newbie
  • *
  • Posts: 10
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #38 on: August 25, 2005, 03:53:38 AM »
Would it be possible to display a RSS feed with the most recent topics for specific boards, but more than one?
I know there is the "board=" parameter, but I would like specify board numers 78, 79, 80, 81, 82, 83, 84 and 85.


Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #39 on: August 25, 2005, 04:19:24 AM »
In 1.1, you can use boards=1,2,3,4.

-[Unknown]