May 22, 2005

"bookmark this" hack for del.ici.ous

Quoting from bookmark this:

I've added a little bit of code to add a "Bookmark This" link on every post, next to the Comments link, which allows you to kick the user over to to the del.icio.us posting page. There are two pieces to this little hack.

First, you can link to http://del.icio.us/post with a GET argument of "url" containing the URL-encoded URL, and you can supply a title in the "title" field, similarly URL-encoded. This effectively lets you put something equivalent to del.icio.us's "copy this" link somewhere offsite. The final URL should thus look like: http://del.icio.us/post?url=THEURL&title=THETITLE

Second, a bit of TypePad/MT hackery: In the appropriate place (I added it right after </MTIfAllowComments>) add the following to your Main Index and Individual Archive templates:

| <a href="http://del.icio.us/post?url=<$MTEntryPermalink$>&title=<$MTEntryTitle encode_url="1"$>">Bookmark This</a>

Posted by xian at May 22, 2005 11:42 PM

Trackbacks

Trackback for this post:
http://mediajunkie.com/jack/pinger.cgi/6367 Further comment
Other incoming links (via Technorati)

Hosted by Mediajunkie.

Sponsors
On this day in 2004
Blogs gone wild: Chris Pirillo has launched a bogging network at Lockergnome.net. Looks like a private-label instance of Tucows' Blogware oroduct. Looks like Chris has moved his personal blog from MT over to Blogware as well (though there's no credit back-link, so you have to divine that fact by actually reading his entries).... (Products)
On this day in 2003
Radial Freemasonry Blocked: Crummy.com ate my word endings. [via Zeldman]... (Memes)
Dave damns Six Apart with faint praise: Dave often complains when people praise Six Apart products that Userland offered whatever feature in discussion years ago. Maybe that's not the point? Or maybe people are just jealous because he's rich and influential? (He also likes to use Manila sometimes as his counterexample against Movable Type when people make comparisons,... (Salon Bloggers)