Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


How can I add Digg and Del.icio.us links to my blog?

One thing I really like about your blog, Dave, is your little links to both Digg and Del.icio.us. Simple, neat, but I'm baffled, how the heck do you do that within a Movable Type template? Do you mind sharing with us rabble? :]


Dave's Answer:

Hey, hey, no dissin' yourself now. There are no rabble in the blogosphere. Um, except maybe... well, nevermind. Anyway, anyone who reads MY blog certainly isn't rabble!

Yeah, I'm a definite fan of both Digg.com and the shared bookmark site Del.icio.us, so when I saw they were becoming more popular, I added a few lines to my Movable Type blog template to make it really easy for people to either vote for the page on Digg or bookmark it on Del.icio.us.

Let me show you a stripped down version:

Help others find this article:
<a href="http://www.digg.com/submit?phase=2&url=<$MTEntryPermalink$>">Digg
It!</a> or
<a href="http://del.icio.us/post?url=<$MTEntryPermalink$>&title=Dave%20Taylor">
Bookmark it!</a>

Not too difficult to comprehend, I hope, and most of the complexity is simply because the desired URLs from the two services include a few additional fields of information over and above the page URL itself.

If you scroll down just a wee bit after this article, however, you'll notice that I also include two small iconic graphics to bring just a bit more attention to the links (since I like showing up on Digg, after all!). As a result, my actual code is a little bit more complex than what's shown above, but you can always just "View Source" one of my pages to see the exact img src and so on. It's pretty simple stuff.

Finally, there are official pages that detail tools you can use to include these sort of links too, if you don't want a cobbled-together approach. Digg has its Digg One-Click Submission information that can be interesting reading, and Del.icio.us has Help For Publishers too, some slick JavaScript.

Hey, why not test it out? Click Here to Vote for This Article at Digg.com!

Hope that helps clarify things and extends your blog functionality.

Note: if someone can send me along the equivalent for Wordpress, I'd be happy to append that snippet to this article too. Thanks.


More Useful Blogs and Blogging Articles:
✔   Get my shopping cart plugin to work with WordPress?
We've put in a shopping cart for a client that's not working, and we need some help! The cart is currently using the...
✔   Embed an audio player on a blog or web page?
I have some mp3 audio files I've recorded and would like to have people who visit my site be able to listen to...
✔   Can I write a guest review for AskDaveTaylor.com?
Hi Dave. I'm a big fan of your site and love that you're doing so many reviews now. I've noticed, however, that there...
✔   Change author on WordPress blog post?
I have two accounts set up for my WordPress blog and I'd like to be able to have all my posts from a...
✔   How do I restructure my Wordpress blog without losing SEO?
I have a wordpress blog that was using categories in the url structure like this: /category_name/post_name/ Then I had read somewhere that if...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  





Categorized: Blogs and Blogging   (Article 6839, Written by )
Tagged: blog, blogging, bookmark this page, del.icio.us, delicious, digg
Previous: How can I get more LinkedIn invitations?
Next: How do I sychronize passwords on Safari and Firefox?




Reader Comments To Date: 9

Hilary said, on November 7, 2006 3:49 PM:

I also would love to see the wordpress code on how to do it.

I wish there were some good books that simplified creating templates for blogs and what not...

Hilary

Scottux said, on November 9, 2006 7:14 PM:

I would like to know how to add these buttons to a phpbb forum.

Sherman Hu said, on November 10, 2006 8:12 AM:

Hi Dave, here's my cheat sheet contribution for getting Digg and Del.icio.us icons and links into a Wordpress plugin.

Use Denis 'Bookmark Me' plugin. Simple eh?

It's located here:
www.semiologic.com/software/bookmark-me/

In fact, it let's you easily add links to a host of other social bookmarking sites to your entries, plus choose whether you want to display the Bookmark's Name, or just display the bookmark icon.

On the download page, Denis reveals 2 lines of code to insert into your Wordpress templates.

Sidenote: If you're already a customer of his Pro theme (www.WordpressProTheme.com), then no worries - this bookmark plugin is already built in, and waiting for you to activate, and customize. Its a theme I have been using since 2004 for all my professional and personal blogs.

Hope this helps Wordpress users viewing Dave's total value-add blog here at AskDaveTaylor.com.

Dave, enjoy Atlanta - sorry I can't join you, I'll be thinking of you while I'm engaged in family functions ;-)

Adam Pope said, on December 19, 2006 3:43 PM:

Neat! I've bunged it in me blog and it works swell. I was such a novice when I started out, I built the whole site in HTML, now I wish I could head to the simplicity of using Wordpress or the like. Anyhow, the code works fine, It's just a bit more hassle for me to write it in each time. Thanks Dave Taylor!

drohi said, on April 23, 2007 4:31 AM:

Do you host your blog on wordpress??Just let me know plz

Dave Taylor said, on April 23, 2007 12:05 PM:

Drohl, nope, this is a Movable Type weblog hosted on my own server. You can find out more about MT at http://www.sixapart.com/movabletype

For the record, WordPress is a splendid tool too, but I am not a fan of their *hosted* service, just the software tool.

Swanksalot said, on September 21, 2007 11:05 AM:

Cool, I've been looking for this addition, thanks for the clear description. Do you know offhand if it works in MT 4?

NYC said, on September 5, 2008 6:55 PM:

Finally!. Some simple code that I can use to add these links to my blog. No plugins required. Thank you!

jai said, on April 19, 2009 5:21 AM:

Cool one guys

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

I do have a comment, now that you mention it!











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.