SimplePortal
Customization => Blocks and Modifications => Block Requests => Topic started by: kebax on April 14, 2016, 04:30:09 PM
-
There is a block for dispalying a RSS feed alright, how about Atom?
-
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.
-
Thanks but it did not work. The newsfeed plugin was not willing to install, SMF complained that mod is either corrupted or incompatible.
-
After uploading it to your forum via the package manager you should navigate to the packages list and do the following:
- Click on the advanced link
- Enter 2.0 RC4 in the input field
- Install the RSS/Atom Feed modification
- Navigate to Modification Settings in your admin section
- Opt RSS Feed modification
- Opt Add Feed
- Enter appropriate data in the input fields (including specific board to post in)
- Also modify feed from scheduled tasks
- Use board with feeds as news block on portal
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.
-
Thanks again, I will try that. Although I already managed to code a simple PHP page that converts atom to rss via xsl.