Add Digg To Blogger.com Posts

By , December 5, 2007 2:51 pm

After a poking around the xml template for my site, and playing around with the Digg code, I’ve figured out how to add a Digg button to my posts.
Listed below is a quick how-to for adding this functionality to your website too.

  1. Make sure your blog is set to enable Post Pages and you are using the new Blogger, not the classic version
  2. Go to the customization section of your blog, on the Template tab select Edit HTML
  3. Make sure to click Download Full Template and save a backup copy to disk – just in case.
  4. Put a check in Expand Widget Templates.
  5. Search for <p><data:post.body/></p>
    Update: November 5th, 2008

    It has come to my attention that some templates use a slightly different formatting. If you cannot find the text listed above – try searching for <data:post.body/> and follow the rest of the instructions.

  6. Paste this on the line directly before it:
    <div style='float:right; margin-left:10px;'>
    <script type='text/javascript'>
    digg_url=&quot;<data:post.url/>&quot;;</script>
    <script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
    </div>
  7. Preview your template to make sure it looks right – the Digg icon should appear at the top right of all your posts. Hover your cursor over it and make sure the link URL matches your post URL.
  8. If all looks well, click Save Template and then View your blog

Happy DIGGing!

Face Lift and Stupid Blogger Tricks

By , December 4, 2007 8:03 pm

I decided it was time to clean up the page layout, tweak the AdSense to make it less annoying and add some modern features.

One of the things I like is label clouds. It’s a nifty concept which before now I was never able to add to my site. I cannot take credit for coming up with it – I just followed the step-by-step instructions listed here. Note this requires you to be using the new version of blogger and already have some labels configured with your posts.
In case you are not aware, a label cloud is a list of blog labels where the more frequently appearing ones are made larger, thus giving an instant visual indication of the most popular labels.

I’ve also added a Digg button, but I’m still working on figuring out how to code it for individual posts on a blogger.com site.
Edit: I now have this working.

The Big Dump and the Hiding Rodent

By , December 4, 2007 11:42 am

As a stark contrast from last years lack of snow for the month of December, mother nature has dumped 40cm of snow on Ottawa (and the rest of Canada for that matter).
I started the morning yesterday with a migraine which I took something for and crawled back into bed. By the time I finally went outside (a little after noon) everything was buried under a thick layer of white.

Naturally, the plows had left a nearly 3 foot tall snow ridge at the end of the driveway. I quickly assessed that there was no way a car was going to get in without a large amount of excavation and it occurred to me that my roommate would be coming home with her 4 year old after a day of work and would want to do just that – get into the driveway.

I bundled up with many layers, pulled on my boots and braved the two hours of shoveling it took to find the pavement underneath. Having spent most of the last decade living in high-rise apartments it’s been a while since I’ve done this. My everything is sore today, reminding me of how sedentary working in the IT field really is.

On a side note, I have not seen a single mouse dropping nor sign of the little rodent since my encounter the other day. Titus has maintained a fairly continual vigil of guarding the laundry room since the weekend, so perhaps the scent/sight of cat combined with the reduced amount of available mouse-goodies in the area has kept it at bay.

I’m partially disappointed since I had rigged up a live-capture system with the hopes of trapping the pest in order to relocate it’s residence. I can’t complain in the sense that at least it’s not hanging around my food stores, but I know it must be still around somewhere.

Panorama Theme by Themocracy