Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: Kolya on December 24, 2019, 08:01:53 AM

Title: Get RSS feed from a single topic?
Post by: Kolya 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!
Title: Re: Get RSS feed from a single topic?
Post by: Pop2 on December 30, 2019, 02:40:33 PM
Quote from: Kolya 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!

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.
Title: Re: Get RSS feed from a single topic?
Post by: Kolya 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.
Title: Re: Get RSS feed from a single topic?
Post by: vbgamer45 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.