SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: kebax on April 14, 2016, 04:30:09 PM

Title: Atom feed?
Post by: kebax on April 14, 2016, 04:30:09 PM
There is a block for dispalying a RSS feed alright, how about Atom?
Title: Re: Atom feed?
Post by: Chen Zhen on April 14, 2016, 04:58:31 PM
kebax,

  If need be something can be created in PHP that will read the feed.
I've never used an Atom feed to know what is best atm but after searching the web I do see one possibility.
You can try the SimplePie plugin for the SMF 2.0.X branch that will allow the use of rss & atom feeds.
ref. http://simplepie.org/wiki/plugins/simplemachinesforum/rss_feeder

I believe it allows the content to be used via BBCode which can be used in a BBCode block type.

Let us know if it works or if you need further assistance.

Regards.
Title: Re: Atom feed?
Post by: kebax on April 14, 2016, 07:52:53 PM
Thanks but it did not work. The newsfeed plugin was not willing to install, SMF complained that mod is either corrupted or incompatible.
Title: Re: Atom feed?
Post by: Chen Zhen on April 14, 2016, 11:07:46 PM
After uploading it to your forum via the package manager you should navigate to the packages list and do the following:


I tested it and it seems to be working.
A more direct approach to running feeds in general is to create a PHP script, break the fetched data apart with DOM and then echo the data to be displayed.
 
Title: Re: Atom feed?
Post by: kebax on April 15, 2016, 02:44:03 AM
Thanks again, I will try that. Although I already managed to code a simple PHP page that converts atom to rss via xsl.
SimplePortal 2.3.8 © 2008-2024, SimplePortal