Integrating the Upgraded Digg Tools in Blogger

Digg.com released a worthy upgrade to their site integration tools today, with such neat new features as combining the submission process and Digg box, etc. Since I have previously published a method of integrating the first incarnation of the Digg tools in your [new] Blogger posts, it is now time to post an update to take the new features in consideration.

Before you start, make sure that your blog is set to save post pages. This is a Digg (and other social sites) requirement, since we need unique URLs to submit. To verify, go to your Blogger Dashboard » Settings » Archiving » Enable Post Pages? Select yes and save.

Then go to your Blogger Dashboard » Layout » Edit HTML. Be sure to check the Expand Widget Templates checkbox.

Locate the following code in the template’s XML:

<p><data:post.body/></p>

And replace it with:

<p>
  <span style="margin-right: 10px; float: left;">
    <script>
      digg_url = '<data:post.url/>';
    </script>
    <script src="http://digg.com/tools/diggthis.js"> </script>
  </span>
  <data:post.body/>
</p>

You’re done! It’s now as simple as this.

You can also try the new, more discreet, compact mode:

<p>
  <data:post.body/>
  <span style="margin-top: 5px; float: right;">
    <script>
      digg_url = '<data:post.url/>';
      digg_skin = 'compact';
    </script>
    <script src="http://digg.com/tools/diggthis.js"> </script>
  </span>
</p>

Personally though, I’m not too keen on displaying Digg boxes showing 0 diggs when the content has not been submitted yet, nor am I interested in showing the digg box on all my posts. So I’m still going to use my original solution and just update the URL of the Digg javascript from /api/ to /tools/ in my template. Overall, it is a more involved option, but I’d rather have flexibility than ease of use.

Ultimately, I’d like to see another mode (digg_skin variable) where unsubmitted content sports a simple button (like the Digg Guy), and the box only starts to show if and after the content has been submitted.

As a side note, it’s probably going to get fixed quickly, but the compact mode of the new tool had a bug with url targeting that made the submit form show in the tiny iframe the Digg javascript outputs.

Update: 2007-07-26: Updated formatting after import from Blogger.com.

Turning 32

Well, today’s that day when I gain an extra year. It always amazes me how much revolves around our age, and how suggestive the latter is. I’m an old fart for some, yet still a youngster for others. But who sees us as which and when is what usually matters most.

On a far less pseudo-existential note, kudos to my 7 year old on his first in-match hockey goal (1st season). :)

Up to my Elbows in Enterprise Search

Sorry about the lack of updates, but I’m smack in the middle of a huge project rethink at work, and it’s eating up all my time. I’ve been at it for two weeks, and I’m now hitting a point where I’m satisfied with the direction the project is heading. I reached the point where I’m having fun with it. :)

I’ll have more time once this is behind us, which I’m glad to say is coming soon!

Mona Lisa Grave Found, Claims Scholar

From the source article:

The woman behind Leonardo da Vinci’s Mona Lisa painting may be buried near a now derelict building in the heart of Florence, according to archival documents. The exact location of Mona Lisa’s burial site, the convent of Sant’Orsola, was just a about 900 feet away from the house of the artist’s father, according to the historian, Giuseppe Pallanti.

3D Desktop Linux on Live CD

Linux.com posted two articles in as many days about the 3D desktops under Linux now being available for preview as live CDs.

I’m getting them both as we speak to try them on my MacBook.