Ralpharama Archive. The archive is almost 20 years old, this website is no longer maintained.

Home | New Writing | Old Writing | Cooking | Technical | Wine Making | Cocktails


Hits 3053 | Created 2007-05-18 | Modified 2007-05-18

How 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
feel free.

Thank you,

-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>
<script src="http://digg.com/api/diggthis.js"></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.

Make a Comment


Antispam Code (always a number)

Enter Code Above

Note: All HTML will be removed except for bold and italics. Links will not display. Line breaks are added automatically. Use <pre>...</pre> for code.


This item has the following tags:
digg tech

Useful? Donate for hosting costs

All content copyright (c) Ralpharama