Back to top

Digg Widget for your own site

So, I read this post in the digg blog with much fascination.

it shows this:

<script>
digg_url = \'URLOFSTORY\';
</script>
<script src=\"http://digg.com/api/diggthis.js\"></script>

Which is pretty cool because then it makes it easier for users to digg a story on your site even if they found the story through some other means. But there's a pretty huge problem with the widget...

The workflow for this is something like:

  1. write story
  2. wait for someone to digg story
  3. find URL of the digg story
  4. add widget to my site
  5. rejoice

It would be really nice if I could just automatically add that little snippet of javascript to everyone one of my posts and rather than saying "URLOFSTORY" it would be "URLOFORIGINATINGSITE" and then on the Digg end you figure out the most likely story that it should relate to. I know this is tough because of the whole duplicates thing, but that's why you make the big bucks.

Because then the workflow would be something like
1. write story
2. rejoice

And that's clearly a better workflow.

If the answer is "we just can't do that" then I've got a surprise someone else will do a better job and you'll be forgotten.

People Involved: 
timeline: 

Comments

You blog software should do it

If you can't make your blog software give you the URL of the page, then you need to learn more about your software. If you are using Drupal (I see you have quite a few Drupal related posts), you can simple add something like url("node/$node->nid") in that spot and it will give the URL. There might be a more elegant way to do it, but that works for me.