« "Listening to:" field | Main | Referral Spam »

Installing MT-RSSFeed

What this does is let you put content from a syndicated feed in your MT Template. You need the feed plugin, and then you'll have to have some way of rebuilding the template occassionally so the content updates. The MT-Rebuild.pl plugin is perfect for this. I have mine set up to update every half hour.

First, you'll need the plugin. http://www.timaoutloud.org/code/mt/index.html#mt-rssfeed. The zip file will include the feed plugin and also the rebuild plugin.

Follow the directions in the package. All you really need to do (if you've got all the correct modules installed on your hosts server) is the following:

1. Go to your MT directory and make a dir called "db".
2. Go to MT/extlib/xml and make a dir called "RSS". Put LP.pm there.
3. Put the .pl files in your plugins folder (mt-rssfeed.pl and mtlist.pl).
4. Put mt-rebuild.pl into your main MT directory NOT the plugin folder.

Configure the display according to the directions. You need a template module (mine's called "feedlist") containing the urls of each feed, one per line. Then you need an include with the mtfeed code.

<MTList name="feeds"><$MTInclude module="feedlist"$></MTList>
<MTListLoop name="feeds">
<MTRSSFeed>
<$MTRSSFeedTitle$><br/>
<ul><MTRSSFeedItems lastn="5">
<li><a href="<$MTRSSFeedItemLink$>"><$MTRSSFeedItemTitle$></a></li>
</MTRSSFeedItems></ul>
</MTRSSFeed>
</MTListLoop>

Then, you need to configure mt-rebuild.pl to rebuild the page an intervals during the day. Don't do it too often or you'll piss your host off.

Here's the links referenced here:
MT-List
MT-Rebuild
MT-RSSFeed

Discussion about the plugin: (the download link in this post is no longer valid, so don't try to use it)

MT Support Forum Topic

About

This page contains a single entry from the blog posted on May 1, 2005 10:20 AM.

The previous post in this blog was "Listening to:" field.

The next post in this blog is Referral Spam.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.35