Extension:SimpleFeed

This extension outputs the contents of an RSS feed. It is very customisable. As a result, no editing of the PHP source is required as everything is done in the wiki page.

Installation

 * 1) Save  to   and make sure the server has permission to read it.
 * 2) Save  to.
 * 3) Create , set correct write permissions using chmod ( , or equivalent, should be allowed to write). Permissions are usually 755, 775 or 777. See setting permissions for cache directory
 * 4) ;NOTE:Earlier versions of  may require the   folder to be created in , i.e. as a sibling, rather than subfolder of  . (This was required in the case of a combination of MediaWiki 1.10,   1.1, and a circa-2007 version of  .) The latest version available from the git repository appears to fix this problem, so an update is encouraged.
 * 5) Add   to the last line of   before the end.

If you are in a corporate environment, check out any proxy servers or firewalls.

Usage
The    address must be between the   tags. For example:



[{PERMALINK} {TITLE}]
{DATE}, by {AUTHOR} {DESCRIPTION}

This will pull the BBC News feed and output five posts. For every post, it will output the data between the  tags, replacing ,  ,  ,   and   with the appropriate information.

Customisation
You can customize the output by using the following:


 * url
 * The URL of the feed. This argument is not optional.


 * entries
 * The number of post entries to output. This defaults to 5, but can be any number. 0 is unlimited.


 * type
 * If this is set to " " then the post title and author will be retrieved from the title. For example, a post in a planet/aggregator could have a title "Joe Bloggs: MediaWiki is great". If  is set, then   will become "Mediawiki is great", and   will become "Joe Bloggs".


 * date
 * The format of the date to output. This conforms to PHP's date function syntax. This defaults to  (E.g. 3 March 2007).

Further examples
Using an aggregator's feed 

[{PERMALINK} {TITLE}]
{DATE}, by {AUTHOR} {DESCRIPTION} This will remove the author's name from the title of the post, and setting its value to.

Changing the date format ... Changes the date format to, in this example, "23:20:04 24/03/2007 GMT".

Parameters

 * Line 31:  - string: Path to , including leading forward slash. For example:
 * $simplepie_path = 'extensions/';

Todo
The following feature(s) to be added:
 * Check whether the URL given is a correct address. If SimplePie can't read it, output something.
 * Clean up the regular expressions.