Help - Search - Members - Calendar
Full Version: PHP scripts for syndicating MT content?
Movable Type Community Forum > Additional Resources > Tips and Tricks
brookie
What (ideally PHP) scripts do folk use/recommend for presenting MT content on other pages?
jystewart
How do you mean?

Do you mean using the RDF feeds MT produces or do you mean selecting the entries currently in the database and using them elsewhere?

James.
brookie
QUOTE
How do you mean?

Do you mean using the RDF feeds MT produces or do you mean selecting the entries currently in the database and using them elsewhere?

James.

Well, I guess I'm interested in both.

Using the MT RDF feeds is probably the priority, and presumably simpler.

I want to present the headlines on a regular web page and have them link back to the full story.
jystewart
For RDF, try googling 'rdf parser php'. A couple I found were:

http://phpxmlclasses.sourceforge.net/rdf_parser.html
http://www.hotscripts.com/PHP/Scripts_and_...ms/XML_and_PHP/

there are plenty out there, or it should be simple enough to roll your own using PHP's XML functionality.

I put one together a few months back and could dig it out and try to remind myself of how it works if you want.

James.
kadyellebee
A few more resources....

Tima has been working on a RSS feed plugin for MT - mt-rssfeed - and I know Brenna has it working.  I believe that it only gets the information on rebuild, though.

I believe that this one is already pre configured to pull in blog feeds - RSS Monkey.  

I know several people have mentioned reading my blog with the AmphetaDesk tool -- but I think that's for your desktop, not for republishing.

Kristine
brookie
QUOTE
Tima has been working on a RSS feed plugin for MT - mt-rssfeed - and I know Brenna has it working.  I believe that it only gets the information on rebuild, though.

I believe that this one is already pre configured to pull in blog feeds - RSS Monkey.  

I know several people have mentioned reading my blog with the AmphetaDesk tool -- but I think that's for your desktop, not for republishing.

Thanks for the links.

Amphetadesk is doing what I want to do! Thanks for the tip though - it plus MT gives me what Radio Userland would be giving me.

RSS Monkey may be right but the licensing may scupper the deal.

I'm really just looking for a few lines of PHP - I was kind of assuming there is some code out there that everyone uses.
kadyellebee
So I'll babble on some more since you seem interested wink.gif

I'm pretty sure that pMachine has a built in XML scraper, but I haven't seen anything that is just basic like that that any other MT-users have implemented until I saw Brenna using the MT RSS Feed plugin.  I would think that it shouldn't be awful hard to write some code to do this, and I would bet that if you read through some of the documents at syndic8, you might find some hints on what others use.  Possibly in the How To section.  If you are interested in learning more, Morbus had some great thoughts in this thread.

smile.gif  Now you probably have heard more than you cared to wink.gif

Kristine
brookie
QUOTE
smile.gif  Now you probably have heard more than you cared to wink.gif

No, keep talking  smile.gif

I've found this code...

http://www.trommetter.org/log/archives/000553.php
kadyellebee
I actually did try that one out, but it didn't have any sort of regulation to how often someone's xml feed was loaded.  And so that meant that every time I opened the page, it was using the bandwidth of the blogger's server.  I think that many RSS scrapers actually have a time setting where you can define how often to check for the updates.  This seems more "polite"??? of a method to me.  

But yeah, I did get that to work smile.gif  

Kristine
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.