Advertisement:

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

Offline Elhcay

  • Semi-Newbie
  • *
  • Posts: 12
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #320 on: November 18, 2009, 09:35:53 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.

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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #321 on: November 18, 2009, 09:42:30 AM »
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)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Elhcay

  • Semi-Newbie
  • *
  • Posts: 12
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #322 on: November 18, 2009, 07:46:01 PM »
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).

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #323 on: November 18, 2009, 07:53:41 PM »
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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Elhcay

  • Semi-Newbie
  • *
  • Posts: 12
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #324 on: November 19, 2009, 06:05:54 PM »
I changed one of the lines to, and things are working now
ORDER BY m.id_msg DESC
or
ORDER BY t.id_last_msg DESC

It was t.id_first_msg, I suppose.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #325 on: November 19, 2009, 06:46:36 PM »
That also changes how the results are ordered though...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Elhcay

  • Semi-Newbie
  • *
  • Posts: 12
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #326 on: November 20, 2009, 06:40:59 AM »
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.

Offline MultiformeIngegno

  • Sophist Member
  • *****
  • Posts: 1,100
  • Gender: Male
  • Id quo maius cogitari nequit
    • RockCiclopedia
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #327 on: November 28, 2009, 10:26:08 AM »
And how to change the feed <title>?

I've tried replacing in Sources/News.php all the:
Code: [Select]
<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"!

Offline juliegreen

  • Semi-Newbie
  • *
  • Posts: 62
    • job seekers
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #328 on: December 02, 2009, 07:25:22 PM »
can we add a copyright notice for those who publishing our content via rss?

Offline www.patlakhaber.com

  • Newbie
  • *
  • Posts: 8
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #329 on: December 17, 2009, 01:46:46 AM »
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ı?


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #330 on: December 17, 2009, 02:33:06 AM »
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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline bchangia

  • Semi-Newbie
  • *
  • Posts: 28
  • Gender: Male
    • Technology Freak - Individaul's Knowledge database
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #331 on: December 23, 2009, 06:37:06 AM »
Hi I am facing a small problem, and don't know how exactly the rss is working here.

Can somebody help me please?

Code: [Select]
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.
Code: [Select]
techfreak.in/smf/index.php/$1.html$2
How can I fix this?
« Last Edit: December 23, 2009, 06:44:29 AM by bchangia »
Bimlesh Changia

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #332 on: December 23, 2009, 06:39:32 AM »
So, what mods do you have installed?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline airric00

  • Semi-Newbie
  • *
  • Posts: 69
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #333 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?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #334 on: December 30, 2009, 06:19:24 PM »
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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #335 on: January 06, 2010, 08:22:31 PM »
poolhall: Not without some code changes to News.php IIRC.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #336 on: January 07, 2010, 01:38:06 AM »
Not huge, but very carefully written ones.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline derby

  • Jr. Member
  • **
  • Posts: 389
    • DerbHotJobs
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #337 on: January 12, 2010, 11:31:00 AM »
please how do i make recent topics on my forum show on my signature using Feeds???

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,625
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #338 on: January 12, 2010, 11:35:13 AM »
You will need a third-party service like FeedBurner to create a signature image for that.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline derby

  • Jr. Member
  • **
  • Posts: 389
    • DerbHotJobs
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #339 on: January 12, 2010, 11:59:50 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>