Jul 17 2008

Moodle 1.9: Use simplepie instead of magpie for rss parsing

Published by Kenneth Newquist at 8:24 am under Moodle, Web Applications and tagged: , ,




Moodle uses Magpie RSS to its feeds, but more and more feeds are failing in Magpie because it can’t parse their XML (largely because Magpie RSS hasn’t been updated in two years). The solution is to use SimplePie instead.

At the Moodle Hack/Doc Fest at Kenyon, the hackers swapped out Magpie for SimplePie. The patch is available through this tracker report; please vote for the change so that we can get SimplePie integrated into Moodle 2.0.

http://tracker.moodle.org/browse/MDL-7946

To use this, you need to do the following:

  1. Download the patch and rsslib_ext.php from the Tracker entry. Download SimplePie from the SimplePie web site.
  2. Patch [your moodle directory]/blocks/libblock_rss_client_action.php using block_rss_client_action_simplepie.diff
  3. Install simplepie by copying the ’simplepie’ folder to [your moodle directory]/lib

No responses yet


Create a free edublog to get your own comment avatar (and more!)

Trackback URI | Comments RSS

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image