News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

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

Started by Oldiesmann, January 20, 2005, 12:55:32 PM

Previous topic - Next topic

nibb

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

nibb

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

[Unknown]

Quote from: Zenigata on April 06, 2005, 11:45:19 AM
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.

Quote from: nibb on May 04, 2005, 04:49:47 PM
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.

Quote from: nibb on May 04, 2005, 05:28:59 PM
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]

nibb

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.

Rik©

Quote from: nibb on May 05, 2005, 01:19:25 AM
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:
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...

edchapman

How do you get the little rss icon to show up next to the url?

mytreo

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


// 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
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

jbutler

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!

culpeper

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



d3v

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.


d3v

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.

nibb

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?

vipmoney


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

thanks !
VipMoney

xerson

Quote from: inthe80s on February 11, 2005, 12:46:42 PM

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 hxxp:m.id [nonactive]_MSG = hxxp:t.id [nonactive]_FIRST_MSG

into

AND hxxp:m.id [nonactive]_MSG = hxxp:t.id [nonactive]_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.


jorgen


mamboopensource

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.


[Unknown]


Advertisement: