dionidium.com

Wayne Burkett's Weblog | Home

Displaying del.icio.us Links on Your Site with del.icio.us.pl 0.2
06:47PM CST February 22, 2004 | Comments [9]

We've made a few changes to our del.icio.us script. Of note:

  1. Most important, we've fixed a bug that affected HTML entity conversions. Previously, the script mistakenly converted ampersands at the beginning of some entities to their entitiy equivalents, which is wrong, wrong, wrong.
  2. The script now uses the del.icio.us API (instead of the public RSS feeds) to fetch links.
  3. We've made the readme file more clear and corrected an error in the original instructions.

We're aware that there are several scripts now available for displaying your del.icio.us links -- there weren't nearly as many when we released the first version of this script -- but ours works great for us, so we're happy to make it available. As always, let us know about any bugs or weird behavior.

The files:

Update: A bug related to the bug mentioned above -- the one that fixed the handling of HTML entites -- has been fixed. In addition, we've added two more templates to the package, both of which use the HTML definition list syntax. These are our preferred templates; we meant to include them originally. Keep in mind your browser may have cached del.icio.us.pl.zip. You might need to clear your cache to get the new package. Keep that feedback coming.

Update: We noticed today that the default 'tag' variable was set to 'site,' which is the tag we use to filter del.icio.us links. This really shouldn't have been included in the downloadable script. We've changed the script to set no default tag.

#1 | 10:30AM UTC June 25, 2004 | Wayne
Wayne

I'm opening comments on this entry to solicit bug reports and feature requests. What's working? What's not?

A newer version is on the way with support for Atom, media types, and dynamic template selection.

#2 | 03:56AM UTC November 02, 2004 | Stephen O'Grady
Stephen O'Grady
Thanks for the script - seems pretty cool. Having a small issue, however. When I hit the script directly, it's pulling the links as appropriate. But the SSI portion is returning an "[an error occurred while processing this directive]" error. Near as I can determine the SSI is setup right according to my hosts instructions. Any thoughts or advice?
#3 | 11:56PM UTC December 07, 2004 | jlt
jlt
Can someone show me this in use? I want to find an easy way to integrate my Delicious inbox into the sidebar of a new city-cartography weblog I'm working on so we'll have an ever-changing list of new links.
#4 | 09:25AM UTC December 09, 2004 | Wayne
Wayne

jlt, I'm eating my own dog food. The links on the front page of this site -- in the left sidebar -- are displayed using this script.

#5 | 03:04PM UTC January 01, 2005 | Robert Andrews
Robert Andrews
I can't, for the life of me, get this to work. Continually getting a 500 error. I don't get it; I followed the readme. Such a shame.
#6 | 12:02AM UTC January 02, 2005 | Wayne
Wayne

I'm sorry to hear that, Robert. Your problem is likely caused by one or more missing modules.

If you've got access to the shell, try running the script from the command line. If you see something similar to this:

Can't locate XML/Simple.pm in @INC (@INC contains: ... BEGIN failed--compilation aborted at del.icio.us.pl.cgi line 17.

... you're missing a required module.

If you don't have shell access, just get in touch with your hosting provider and ask if the following modules are installed on your server:

  • Fcntl
  • XML::Simple
  • LWP::UserAgent
  • HTML::Template
#7 | 10:39PM UTC January 29, 2005 | mixmanner
mixmanner
Is there a way to disclude tags? That is, to keep links that have certain tags out of the list? If not, that might be a nice feature for the next version.
#8 | 01:59AM UTC March 13, 2005 | Tato Pedrosa
Tato Pedrosa
Is there a way to display the links inline, together with the posts, following the natural order of them? (e.g. something like Veen and Kottke do)
#9 | 01:47PM UTC March 25, 2005 | Wayne
Wayne

mixmanner: There's no way to do that, and furthermore, I'm a filthy, dirty liar: I don't think there's gonna' be another version. Because...

I'm no longer using this script myself. I'm using a homegrown del.icio.us proxy to post my links, instead. I like this much better. I can post to my blog's MetaWeblog/Blogger/Atom API and the del.icio.us API simultaneously, save posts locally when del.icio.us goes down, keep better track of where I found links via HTTP referrers, and lots of other stuff I want to do that's impossible with this script.

I'll try to clean up the files I'm using and make them publically available in the near future, but no promises; look where that got me last time.