Posted on

with blogrolling getting hacked the other day, it motivated me to put something in motion here that I’ve wanted to do for a long time, I’d had it bookmarked for a while, but was worried I would fubar my MT install, or that it was beyond my abilities…
thankfully, I was wrong *s*
I used a combination of several tutorials…which I will combine here for you to use, and in case I ever have to do it again :smile
as usual, change the items in bold

  • first of course, is to download mt-list and mt-rssfeed and extract the files
  • open the mt-rssfeed.pl file in whatever text editor you use, you will (probably) need to edit this line
    # my $RSSFEED_DATA_DIR = “./db/”;
    to something like
    my $RSSFEED_DATA_DIR = “/home/redeagl/public_html/mt/db/”;
    if you are using a mysql install, you will need to add a ‘db’ folder in your MT instilation…if not, you will probably want to not have this in the same db folder that the rest of your MT uses. (ps, don’t forget to uncomment the beginning of the line)
  • upload mt-list and mt-rssfeed into your plugins folder in MT
  • upload LP.pm (with the mt-rssfeed download) into yourMTdir/extlib/XML/RSS, if you don’t have this folder, create it using this path.
  • in MT, create a new index template, (I’m using the same layout as my main page) in the ‘body’ part insert this code

    <MTList name=”feeds”>
    <$MTInclude module=”feeds“$>
    </MTList>
    <MTListLoop name=”feeds”>
    <MTRSSFeed>
    <a href=”<$MTRSSFeedLink$>”><$MTRSSFeedTitle$></a><br/>   <MTRSSFeedItems lastn=”2“>
      *<a href=”<$MTRSSFeedItemLink$>”><$MTRSSFeedItemTitle$></a><br/>
    </MTRSSFeedItems>
    </MTRSSFeed>
    </MTListLoop>
    Syndicated using <a href=”http://www.mplode.com/tima/files/mt-plugins/#mt-rssfeed”;>mt-rssfeed</a>

    now you will notice, this uses a module, if you don’t wish to use a module where
    <$MTInclude module=”feeds”$>
    is, simply replace with the .xml url

    example:
    <MTList name=”feeds”>
    http://www.redeaglespirit.com/us_here/index.xml
    http://www.redeaglespirit.com/album/index.xml
    http://justjet.redeaglespirit.com/JJ/index.xml
    http://justjet.redeaglespirit.com/speedbump/index.xml
    http://www.redeaglespirit.com/lifesongs/index.xml
    http://arrrgh.redeaglespirit.com/index.xml
    http://tbone.redeaglespirit.com/index.xml
    http://homeslice.redeaglespirit.com/index.xml
    http://justjet.redeaglespirit.com/album/index.xml
    </MTList>
    <MTListLoop name=”feeds”>
    <MTRSSFeed>
    <a href=”<$MTRSSFeedLink$>”><$MTRSSFeedTitle$></a><br/>
    <MTRSSFeedItems lastn=”1“>
      *<a href=”<$MTRSSFeedItemLink$>”><$MTRSSFeedItemTitle$></a><br/>
    </MTRSSFeedItems>
    </MTRSSFeed>
    </MTListLoop>
    <p>Syndicated using <a href=”http://www.mplode.com/tima/files/mt-plugins/#mt-rssfeed”>mt-rssfeed</a></p>

this is exactly the way I’ve got it set up on my site, the tutorial I used also gave instructions how to do it with part of the post included, I didn’t want to have all that in mine…your miliage may vary :smile
the last thing I did was set up a cron job, so it would rebuild every hour and let me see when someone has posted (which was my main purpose for having blogrolling!)
/usr/bin/prl /home/redeagl/public_html/mt/mt-rebuild.pl -mode=all -blog_id=1
obviously you will have to change the blog id, and your path to Perl if different, and absolute path…if your server allows cron jobs (my old one did not!) which if this is the case with you, manual rebuild is the way you will have to go :sad
last but not least, if you need any help let me know *s* if I can, I’d be happy to!!
have fun!

One Reply to “mt-rssfeed”

  1. Iiiiiinteresting……
    I don’t know if you’re part of the Yahoo Blogging Community club (The onle names I recognize is Michele and Kevin Lawver)… I was just expressing there how most bloggers have NO CLUE what to do with RSS.
    (I have no clue what to do a programmable VCR or a stick-shift… but I’d appreciate you sticking on topic here, thankyouverymuch) :0)
    This has been a very useful tutorial, thanx!

Comments are closed.