From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Blue Glass Arrow.svg MediaWiki.svg
A proposal to move this page to was rejected.
Because the Template:MoveToMediaWiki tag was on the page for a year without any importers seeing fit to transwiki it, the move proposal was regarded as rejected by the community.

Integrate RSS feeds into wiki pages using magpieRSS (a PHP RSS parser class) in a custom Mediawiki extension:

(For example to interwiki syndicate RecentChanges pages.)

Mutante 20:57, 25 Mar 2005 (UTC)

The starting idea behind this was to integrate the RecentChanges pages of the neighbor wikis. Since all Mediawikis produce an RSS feed of their RC pages. And we were thinking of even making this an automatic feature, (read from "interwiki" sql table and auto-include RCs of other Wikis in according wiki page like /Feeds/OtherWiki/RecentChanges. (original idea by mattis manzel) ( Mutante 10:56, 21 May 2005 (UTC)




Extension:RSS -- Error: "" is not in the whitelist of allowed feeds. is the only allowed feed.


Extension:RSS -- Error: "" is not in the whitelist of allowed feeds. is the only allowed feed.

(not installed on wikipedia, but here)


# RSS-Feed Mediawiki extension
# using magpieRSS (
# by mutante 25.03.2005

$wgExtensionFunctions[] = "wfRssExtension";

function wfRssExtension() {
    global $wgParser;
    $wgParser->setHook( "rss", "renderRss" );

function renderRss( $input ) {

    # $input = mysql_escape_string($input);

    $rss = fetch_rss($input);

    $output="<table><tr><th>Channel Title: </th><th>" . $rss->channel['title'] . "</th></tr>";
    foreach ($rss->items as $item) {
        $href = $item['link'];
        $title = $item['title'];
        $output.="<td colspan='2'><a href='$href'>$title</a></td></tr>";

    return $output;


Improved Version by Duesentrieb[edit]

Also have a look at User:Duesentrieb/RSS for a modified version with a few more features -- Duesentrieb 01:29, 2 May 2005 (UTC)

This includes converting different charsets using iconv and an option to hide the description (shortened list). Thanks for your help , Duesentrieb, I didnt feel like messing with the charset conversion especially. Mutante 22:31, 5 May 2005 (UTC)

Further improved the extension (User:Rdb78/RSS) to allow setting the number of headlines -- Rdb78 8 July 2005 02:43 (UTC)
Further features added : highlighting and filtering, see RSS - Mafs 20:38, 10 July 2005 (UTC)

I found something probably serious: When I add bugzilla created rss feeds as

Extension:RSS -- Error: "" is not in the whitelist of allowed feeds. is the only allowed feed.

The page does not load any more (spinnin forever) and an error like "mismatched tag at line 34, column 4" appears in php.log

(mediawiki 1.5.4 with RSS - can somebody confirm this (also for other versions)?

I tried, and the feed just gives an error. Strange, the feed seems to validate. Could it be the https? Also this is one of those feeds that firefox tries to download instead of opening it as a xml-file. Maybe something wrong with headers in feed? (my setup:

   *  MediaWiki: 1.5.8
   * PHP: 4.3.9 (apache2handler)
   * MySQL: 3.23.58 
   * Extensions:
         o Other:
               + rss feed extension (version 09/2005), displays an rss feed on a wiki page, by mutante, Duesentrieb, Rdb, Mafs 
         o Extension functions:
               + wfRssExtension