[Edit: The latest version of this plugin can be found here.]
Well, that took slightly longer than I’d intended. Version 0.001 (a simple JavaScript wrapper) was posted almost four months ago. I’ve had some adventures on the way – neither Snoopy nor curl() could cope with the HTTP 301 codes they received from Ma.gnolia’s servers, and PHP’s DOM XML client requires PHP5, which just isn’t an option for most people not running their own servers, who are stuck with PHP4.
I tried hacking Snoopy, I tried reporting the bugs to WordPress and Snoopy forums, and for a while I thought Gary White’s RSSReader library was my saviour. But it couldn’t cope with the HTTP/1.1 301 either, and Gary didn’t respond to my email. Finally, I found LastRSS. It works.
So here it is. The syntax remains the same as the previous version. The default number of links to show is 10, and the maximum is 20 (as this is all that ma.gnolia will supply).
<?php magnolia(USERNAME[, NUMBER_OF_LINKS); ?>
eg. to show my 10 latest links, I simply use:
<?php magnolia('barryprice'); ?>
To show my 3 latest links, I’d use this instead:
<?php magnolia('barryprice', 3); ?>
Dead simple.