In the past, I’ve used a bookmark synchronizing Firefox extension to upload an XBEL (XML) file to my web site each time I opened or closed Firefox. Everything worked great, but the number of bookmarks I had was getting very large very quickly, and uploading/downloading the XBEL file took longer and longer. It also took longer to load Firefox due to the amount of bookmarks it had to load on startup. Finally, I got fed up with it. I started searching for some sort of way to efficiently manage all these bookmarks and get the content I wanted to read on a daily (or even hourly) basis. Guess what I found…
Introducing Bloglines
A colleage of mine, Matt, posted an entry with a link that explained how to use Bloglines to keep track of my bookmarks. Skeptical but interested, I visited. Much to my surprise, Bloglines didn’t just look good, but it worked extremely well! I had expected it to be another run-of-the-mill, nothing-extraordinary service that I would end up forgetting about later on, but that proved not to be the case.
The tutorial helped me get a jumpstart on just why the site exists, to begin with. It’s not del.icio.us part 2, like I had previously thought. It is more of an RSS aggregator with a massive heap of features at your disposal. I highly recommend you sign up and at least give it a shot. If you think your Firefox Livemarks are sufficient, think again. When you get about 90 or more RSS feeds, you’ll know exactly what I’m talking about.
The API
One of the “big things” going around right now is APIs. Amazon has one, Google has one, eBay has one, and Bloglines has one. (Other sites have them, too, but those are the popular ones that come to mind.) The powerful thing about APIs is that they give developers access to cross-site information, which is very important for any site like Amazon, Google, eBay, or Bloglines. Equipped with an API, we can take information that we work with and store elsewhere and process/utilize that information on our own site. You have to agree, this is extremely convenient.
With Bloglines, you can take any username (and optionally any folder), and output them in an HTML format. Have a look at mine (or just my blogs folder). Awesome! Now we can just run a PHP include to get that HTML output on our site, right?
The Problem
Unfortunately, there is a slight inconvenience with the output result that we get from Bloglines. The output is a bunch of DIV’s! We know that this should obviously be an unordered list and not a bunch of DIV tags. This means that a simple “include my blogroll” won’t be sufficient if you want your web site to stay semantically correct. Additionally, you may wish to only output a specific number of blogmarks at any given time. The API doesn’t permit this (although you can separate a specific number of blogmarks in another folder at the Bloglines web site, it is not as convenient to create so many folders).
The Solution
Introducing BlogLiner (yes, you read that right: BlogLiner). What does BlogLiner do? It’s a Wordpress plugin that makes the Bloglines output into a pretty unordered list. Results are output exactly as you order/manage them on the Bloglines web site, so you manage your blogmarks as you would normally, and they’ll be output the same way on your blog. Oh, and yes, you can output just one folder or every folder you have on Bloglines. The only requirement is you have to have Wordpress to use the plugin. (If you’re a tricky fellow, you might take the source code and modify it to work in your own blogging software, though.)
Installation
First, download BlogLiner, unzip it, and upload the PHP file to your /wp-content/plugins/ directory. Then login to your Wordpress admin area and activate the plugin. Click the “Plugin editor” tab, select to edit the “BlogLiner” plugin, and change the settings appropriately. The four settings are your username, the folder you want to show as your blogroll (if you want to show all folders, leave the second variable empty), whether or not you want to show your support for Bloglines by including a link back to them at the end of the blogroll, and how many new blogroll entries you want to display. After you’ve done that, go to your theme editor and decide where you want to output your blogroll. Just pop this code there, and hit the update button:
<?php bloglines_roller(); ?>
You’re Done!
That’s it! There’s nothing more to it, thank goodness! Enjoy it, report bugs, suggest features, and let me know what you think about it!
Update!
I’ve updated the ZIP file. BlogLines now supports a URI-type command so that you can not only specify default settings, but override those settings by sending variable/value pairs to the function via var=value&var2=value2. There are examples in the new BlogLines.php plugin file of how to use it. Enjoy!
Update Again
I know it’s kind of obvious, but I just wanted to note that this extension is available for Textpattern, thanks to Bob.
Another update
I updated the plugin to version 0.2. There’s only one new feature, and that is folder titles appear when all folders are displayed.