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

Elhcay

Quote from: xerson on August 01, 2005, 11:41:51 AM
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 m.ID [nofollow]_MSG = t.ID [nofollow]_FIRST_MSG

into

AND m.ID [nofollow]_MSG = t.ID [nofollow]_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.

What about displaying the most recent topics on SMF2 RC2? This method doesn't seem to work any more.

Arantor

What's wrong with using sa=news in the URL for getting most recent topics only?

(Note that that tip was written nearly 5 years ago)
Holder of controversial views, all of which my own.

Elhcay

Perhaps the code has changed since RC1, as it's not displaying the latest topics (with some missing) after applying the mod on getXmlNews($rss).

Arantor

Especially since that code given was for 1.1.x 5 years ago and the code is different and has been different for some time.
Holder of controversial views, all of which my own.

Elhcay

I changed one of the lines to, and things are working now
ORDER BY m.id [nofollow]_msg DESC
or
ORDER BY t.id [nofollow]_last_msg DESC

It was t.id [nofollow]_first_msg, I suppose.

Arantor

Holder of controversial views, all of which my own.

Elhcay

Quote from: Arantor on November 19, 2009, 06:46:36 PM
That also changes how the results are ordered though...
That is precisely the purpose of changing it. ;) To get it to show the latest replied topics. Otherwise, there's no need to do anything.

MultiformeIngegno

And how to change the feed <title>?

I've tried replacing in Sources/News.php all the:
<title>', $feed_title, '</title>

...with my custom title but it shows the forum title as before!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

juliegreen

can we add a copyright notice for those who publishing our content via rss?

www.patlakhaber.com

Thanks thanks thanks super share ..

Is there such as blogger wonder smf
max-results = 100 & start-index = 101

rss xml action?

OR

As blogger
max-results = 100 & start-index = 101

Do you have a link like this smf
rss xml action?

blogger url;

atom.xml?max-results=500&start-index=501
atom.xml?max-results=500&start-index=1001
atom.xml?max-results=500&start-index=1501

turkish;

acaba smf de de bloggerdeki gibi bu şekil bir xml site haritası linki varmı?


Arantor

index.php?action=.xml;type=rss;limit=100

There's no start-index type parameter though, but generally you don't push historical data through RSS.
Holder of controversial views, all of which my own.

bchangia

Hi I am facing a small problem, and don't know how exactly the rss is working here.

Can somebody help me please?

techfreak.in/smf/news/?action=.xml;type=rss is the feed link but the posts in the feed has an invalid link.

All the posts in the feed redirects to the following link and not to the original post.
techfreak.in/smf/index.php/$1.html$2

How can I fix this?
Bimlesh Changia

Arantor

Holder of controversial views, all of which my own.

airric00

Why doesn't this have a link to the RSS feed source?   Anyway to get that to post an auto link to the source?

Arantor

Quote from: airric00 on December 30, 2009, 12:36:39 AM
Why doesn't this have a link to the RSS feed source?   Anyway to get that to post an auto link to the source?

Not sure I understand your question...?

There is a link to the RSS feed in the footer of the forum if RSS is enabled... this tip just allows you to tweak it to be more specific.
Holder of controversial views, all of which my own.

Arantor

Holder of controversial views, all of which my own.

Arantor

Holder of controversial views, all of which my own.

derby

please how do i make recent topics on my forum show on my signature using Feeds???
LATEST JOB VACANCIES



www.derbhotjobs.com

Arantor

You will need a third-party service like FeedBurner to create a signature image for that.
Holder of controversial views, all of which my own.

derby

Quote from: Arantor on January 12, 2010, 11:35:13 AM
You will need a third-party service like FeedBurner to create a signature image for that.
I GOT THIS CODE BUT STILL NOT WORKING
<a target="_blank" href="http://feeds.feedburner.com/~r/Derbhotjobs/~6/1"><img src="http://feeds.feedburner.com/Derbhotjobs.1.gif" alt="DerbHotJobs.Com" style="border:0"></a>
LATEST JOB VACANCIES



www.derbhotjobs.com

Advertisement: