User:Barrylb/RSS Feed Integrator

From MediaWiki.org

Jump to: navigation, search

My RSS Feed Integrator is a PHP script designed to fetch an RSS feed from any location then update a wiki article with it's contents. You can then include that article in any page using transclusion.

You can run the php script on any webserver that has connectivity to the wiki and the RSS feed. The script needs to run regularly to fetch updates. You can configure a scheduled task that will run it regularly by using the WGET command to request the URL of the script.

Beware of other RSS feed solutions that do not update wiki articles. They do not work with the Mediawiki caching mechanism or rely on caching being turned off.

eg:

<div style="float:right; padding: 8px; width: 450px; border: 2px solid #CCCCCC">
{{:Slashdot RSS}}
</div>
 
  • Get source code and save to your web server as rssupdate.php or similar.
  • I release this script into the public domain.