Hits 3053 | Created 2007-05-18 | Modified 2007-05-18How to put a digg this button on your story with a count, the easy way? I recently saw a few websites that had a 'digg this' button on their sites next to stories, and the button had the current number of diggs with it. Clever, I thought, how do they do that?
I wrote to digg and asked if there was a way and they said:
We don't provide that feature. However, if you desire to use it, please
-The Digg Support Team.
Click here to
Digg this article!
Whatever that means... So I searched the web and found this:
(Which is dugg here: http://digg.com/software/Put_a_live_Digg_button_on_your_website
However, this method seems to loads an entire digg page into an iframe, which seems like a large overhead.
One of the final comments on that digg page was:
Did anyone determine a way to use this little widget for posts that don't have a digg url yet?
Also - and I may be behind the times, but I saw this code in use somewhere - an official digg script:
<script>digg_url = '<$MTEntryPermalink$>';</script>
Which does, in fact work fine and takes just a second to load!
The only drawback is that the page is redirected to the digg page, but hey, that's no real drawback as far as I'm concerned.