Advertisement:

Author Topic: Get RSS feed from a single topic?  (Read 604 times)

Offline Kolya

  • Full Member
  • ***
  • Posts: 440
  • systemshock.org
Get RSS feed from a single topic?
« on: December 24, 2019, 08:01:53 AM »
Hey there, is there a way to create a feed from a single topic?
I want to use that topic as a sort of blog and then display it on another site.

I'm fairly versed in PHP and JS, so if someone can just give me a pointer to a similar script that would be cool too!

Offline Pop2

  • Newbie
  • *
  • Posts: 1
Re: Get RSS feed from a single topic?
« Reply #1 on: December 30, 2019, 02:40:33 PM »
Hey there, is there a way to create a feed from a single topic?
I want to use that topic as a sort of blog and then display it on another site.

I'm fairly versed in PHP and JS, so if someone can just give me a pointer to a similar script that would be cool too!

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

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.

Offline Kolya

  • Full Member
  • ***
  • Posts: 440
  • systemshock.org
Re: Get RSS feed from a single topic?
« Reply #2 on: January 18, 2020, 06:20:56 PM »
Thanks mate, but these formats all display the same data, which is all new topics, limited at best to a single board.
What I want is a feed that displays the posts in one specific topic.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,846
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Get RSS feed from a single topic?
« Reply #3 on: January 18, 2020, 06:25:40 PM »
Nothing built in for that you can try modifying Sources/News.php which has the RSS code or write your own custom action.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro