24 mcRSSlist Plugin (en)

May 23, 2005. Tags: WordPress.

Japanese page »

Description

This plugin generates simple link lists from any RSS feeds.

Specification

  • Requires WordPress 1.5+, compatible with 2.0
  • Uses /wp-includes/rss-functions.php as a backend engine, which is basically based on Magpie RSS, a powerful RSS parser, but nicely hacked by WordPress developers (thanks!) in order to deal cache data in the MySQL database. :grin:
  • Handles RSS 0.92, 1.0, 2.0 feeds
  • Tags to be parsed
    • channel - title, link, description
    • item - title, link, description, pubDate/dc:date, author/dc:creator
  • Timestamps in RFC 822 format (Tue, 10 May 2005 13:19:24 +0000) or W3C/ISO8601 format (2005-04-28T19:25:30+01:00) can be re-formatted into your own style.
  • Output style can be selected by $styles parameter.

Download version 0.4 (2006-01-08)

Version History

Known Issue

Inappropriate error handling by /wp-includes/rss-functions.php causes php error in such cases as broken feed or feed server down, etc. You will need to tweak /wp-includes/rss-functions.php file in order to fix this issue.
Fixed in WordPress 1.6+. Plugin version 0.3+ also handles this issue in WordPress 1.5.
References:
[3057] (changeset) - WordPress Trac - Trac
#1446 (break when can't get RSS) - WordPress Trac - Trac

Install

  1. Place the plugin file in /wp-content/plugin directry
  2. Activate in Plugins admin page

How to use it

This plugin defines a function mcRSSlist ().

mcRSSlist ($feed_uri = '',
$num_items = 10,
$style = 0,
$ordered = false,
$show_channel_title = true,
$date_format = 'm/d H:i',
$before_channel_title = '<h2>',
$after_channel_title = '</h2>',
$mb_encoding = false);
mcRSSlist ('', 10, 0, 0, 1, 'm/d H:i', '<h2>', '</h2>', 0);
  • $feed_uri - URI for RSS feed
  • $num_items - number of item to be displayed. default = 10
  • $style - choose output style.
  • $ordered (boolean) - Wrap link items with <ul> (false) or <ol> (true) tags
  • $show_channel_title - Display channel title with a link to the channel page wrapped with $before_channel_title (default '<h2>') and $after_channel_title (default '</h2>').
  • $date_format - Format of the date. Uses php date () function.
  • $mb_encoding - Uses PHP mb_convert_encoding () to convert feed items into WordPress charset defined in get_settings('blog_charset'). Just in case you need.

Examples

Displays 'matopc :: blogrolling' as shown in sidebar of the main page. :grin:

<li>
<?php mcRSSlist ('http://r.hatena.ne.jp/matopc/rss', 15); ?>
</li>

My del.icio.us page uses style 1.

<?php mcRSSlist ('http://del.icio.us/rss/matopc', 10, 1); ?>

Advanced Settings

Cache age

// cache age config in seconds, 60*60 means 1 hour
define('MAGPIE_CACHE_AGE', 60*60);

Cache data are stored in wp_options table in the MySQL database.

Output Style

// switch list output style - YOU CAN EDIT HERE!
switch ($style) {
case 0: // default sidebar style
$RSSlist .= $itemTitle . '<br /> ' . $itemDate . ' by ' . $itemCreator;
break;
case 1: // del.icio.us style.
$RSSlist .= $itemTitle . ' - ' . $itemDescription . ' by ' . $itemCreator;
break;
case 2: // antenna style
$RSSlist .= $itemDate . " &raquo; " . $itemTitle;
break;
case 3: // your style - now simple
$RSSlist .= $itemTitle;
break;
} // end switch - STOP EDITING

Styles are defined here. You can edit here using variables $itemTitle (with link), $itemDescription, $itemDate, $itemCreator.

Acknowledgement

I appreciate developers of WordPress, Magpie RSS and RSS Fetched Link List plugin (that I used before). Thanks.

Projects top »

24 Responses to 'mcRSSlist Plugin (en)' (RSS)

Trackbacks & Pingbacks (Trackback URI)

  1. Pingback by   WordPress Plugin: mcRSSlist by Blogging Pro - June 4, 2005 @ 7:12 pm

    [...] June 4th, 2005 WordPress Plugin: mcRSSlist mcRSSlist Plugin generates simple link lists from any RSS feed. Posted by John in WordPress Plu [...]

  2. Pingback by WordPress Italy » Blog Archive » Plugin WordPress: mcRSSlist - June 5, 2005 @ 8:58 am

    [...] ss: Wordspew AJAX Shoutbox Plugin WordPress: mcRSSlist Il plugin mcRSSlist genera una semplice lista di link a partire da qualsiasi feed RSS. [Traduzione da Blogg [...]

  3. Pingback by Silencius » links for 2005-06-13 - June 13, 2005 @ 8:37 pm

    [...] t try it; it’s so clean and much easier on the eyes. (tags: Wordpress Plugins) mcRSSlist Plugin A really nice, actually easy to figure out, pluging for listing RSS feeds in Wor [...]

  4. Trackback by matopc :: computing - August 6, 2005 @ 12:42 am

    rss-functions.php

    自作プラグインmcRSSlistのバックエンド、/wp-includes/rss-functions.phpのエラーハンドリングを修正します。

    ...

  5. Pingback by matopc :: computing » Upgrading to WordPress 2.0 - January 8, 2006 @ 10:48 pm

    [...] で初めてエントリを書いている訳ですが、WYSIWYGエディタ。ちょっと重たく感じるのですが、なかなかいいんじゃないでしょうか。Webページのリンクからのcopy & pasteでちゃんとaタグに入ったリンクになるんですね。使い込んでみるべし。 プラグインの対応もチェック。拙作のmcRSSlist PluginはOKだと思ったのですが、errorも出ているみたいなので要調査。。 [...]

  6. Pingback by WP Plugins DB » Plugin Details » mcRSSlist - July 10, 2007 @ 2:21 pm

    [...] Visit [...]

  7. Pingback by Web scratch » Wordpress2.5.1に更新+プラグインも更新 - May 1, 2008 @ 11:11 pm

    [...] Control(古いのにまだ動くとは)+mcRSSlistという組み合わせで表示しています。 [...]

  8. Pingback by プラグイン mcRSSlist 追加 - May 16, 2008 @ 6:49 am

    [...]   mcRSSlist [...]

Comments

  1. Comment by _41 - June 5, 2005 @ 9:50 am

    Great!
    I'm using it on my weblog.

    tks.

  2. Comment by matopc - June 6, 2005 @ 12:40 pm

    Thank you for using my first WordPress plugin. :wink:
    I updated the plugin (to v0.1.3) that was lacking quotations for the channel link URI.
    Thanks.

  3. Comment by Steve Powell - June 16, 2005 @ 6:32 am

    :lol: :lol: great!

  4. Comment by Jim Tucker - June 19, 2005 @ 12:19 pm

    Great plugin! I would like to have it filter the RSS entries based on whether they include a search parameter. Is there an easy way to do this?

  5. Comment by matopc - June 29, 2005 @ 3:40 pm

    Hi Steve,
    Thanks for using my plugin. :grin:

    Hi Jim,
    > I would like to have it filter the RSS entries

    Interesting. I'm now wondering if php functions like array_filter could not be a simple solution for this. Please stay tuned, as comment feed is working now.

    Thanks.

  6. Comment by Jim Tucker - July 2, 2005 @ 1:19 pm

    Thanks for looking into the filter idea. How would I implement array_filter?

  7. Comment by Japhy - January 7, 2006 @ 8:53 am

    Hi!

    It's a cool plugin. However, I think it has some issues with Wordpress 2.0. Plz tell me if it's just me making some error or if it's the plugin.

    Japhy

  8. Comment by matopc - January 8, 2006 @ 1:26 am

    Hi Japhy,
    Thanks for trying out my plugin. Ver 0.3 works OK in my internal WP2.0 site. Can you tell me more about the errors that you see?
    Thank you.

  9. Comment by Jim Tucker - January 8, 2006 @ 10:34 pm

    When I enable version mcRSSlist 0.3 under WordPress 2.0 I get an error like this:

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/wp2test/wp-content/plugins/mcRSSlist.php:169) in /var/www/wp2test/wp-admin/plugins.php on line 16

    Do you know what this means?

  10. Comment by matopc - January 8, 2006 @ 11:10 pm

    Hi Jim and Japhy,
    I found I had put an old(er) file on the server. Sorry about that!
    Now I labeled the latest plugin as ver 0.4 that includes fix for a typo..
    Thank you guys for the comments. :grin:

  11. Comment by Matthias Heil - January 27, 2006 @ 4:53 pm

    Thank you very much for this uselful plugin - I've had it running on my wordpress installation for many months now. After having updated to WP 2 and the latest version of mcRSSlist, however, my linkfeed is not displayed any longer. Grateful for any hint that might change this! - My linkfeed: http://www.heilmile.de/weblinks/rss.php

  12. Comment by matopc - January 27, 2006 @ 7:31 pm

    Hi Matthias,
    Activating debug process in rss-functions.php, fetch_rss() seems getting error 400 from your server.

    Failed to fetch http://www.heilmile.de/weblinks/rss.php. (HTTP Response: HTTP/1.1 400 Bad Request )

    Didn't this happen in WP 1.5? If so checking into rss-functions.php revisions may be a good way to go...

  13. Comment by Matthias Heil - January 27, 2006 @ 8:57 pm

    THanks for your quick reply - no, this did not happen in 1.5 - being quite challenged as for coding, however, I feel pretty unable to solve the problem... :sad:

  14. Comment by Matthias Heil - January 29, 2006 @ 6:00 pm

    I've sorted it out - partly... - updating WP's rssfunctions.php and carefully editing your plugin, my feed is displayed again. The only thing is that it does not update its content. Any more clue?-)

  15. Comment by matopc - January 29, 2006 @ 10:42 pm

    Hi Matthias.
    Displayed is good! Update -- Isn't it because of cache? You could turn off the cache defined in the plugin file for testing. Default is 1 hr (60*60 sec).
    define ('MAGPIE_CACHE_AGE', 0);

    BTW your site is beautiful. Thanks.

  16. Comment by Matthias Heil - January 30, 2006 @ 9:30 am

    Thanks again... - no, the problem still persists. The thing is that my feed http://www.heilmile.de/weblinks/rss.php has newer postings in it than there are displayed under mcRSSlist. I've upgraded rss-functions.php but this does not change the problem. - Grateful for help again...:roll:

Leave a Comment