The Easiest Way to Publish del.icio.us Links on Your Site
I've really started to like the del.icio.us bookmark server (which I wrote about here). So much so that I wrote up some quick instructions for how you can publish your links on your site. Fun!
- Create an account at del.icio.us.
- Login and install the bookmarklet for posting.
- Post some links.
- Note the XML button at the bottom of your link page. It points to an RSS feed at http://del.icio.us/rss/username/
- Now visit
FeedrollRSS Digest. Enter your RSS address from the previous step into the text field and click 'Create the Code.' You will see a page with many options for how your links can be displayed. I'd recommend cranking up the cache (how often your links get updated on your site) to lighten the load on Joshua's server. Make it 360 minutes or more, unless you really do publish more frequently. You'll also see that you can choose between Javascript and text formats. To keep things really simply,go for Javascript. - Paste that line of Javascript into the source of your Web page. Save. Load in a browser. Instant syndication!
Of course, if you want more control over everything (like I always do), you'll need to do a little more work. My site is hosted on a server that is PHP-enabled, so I installed a customizable RSS-to-Javascript engine.
- Follow steps 1 through 4, above.
- Install Feedsplitter on a PHP-enabled server. I didn't need to do any customization at all to get it to work, though I did change the cache setting to refresh every 60 minutes rather than every 14 hours.
- Create a template in Feedsplitter to format your links to your liking, or just use one of the default Javascript formatters.
- Include the following code in your site markup:
<script type="text/javascript" src="http://example.com/your/path/feedsplitter/
feedsplitter.php?feed=http://del.iciou.us/rss/
username&format=js&maxlinks=15">
</script>
Make sure this is all one line (that is, remove the line breaks when you copy it.) This code pulls in a bunch of document.write() commands that print out your links. The 'format' bit in the query string calls your Feedsplitter template, and the 'maxlinks' bit limits how long the list is.
Update: I've also written a Perl script that calls the del.icio.us API and dumps the day's links into Movable Type.
Update: Even easier: Joshua has produced an HTML generator. Just send a query string and get back a fragment to include on your page.