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:
- write story
- wait for someone to digg story
- find URL of the digg story
- add widget to my site
- 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.
Similar entries
- Outfoxed is now Lijit - Yet Another Drupal Site
- Top 3 Turds In A List - With An Exciting Title! Digg That!
- Drupal 4.7 Released
- Rikki Tikki Tavi - A Children's book name for a kid's level understanding of social bookmarking
- Announcing Drupal Dashboard - Essential Information for Busy Professionals
- TradeMarks and Keyword stuffing
- crazy browser stuff
- Hot Drupal Videos for Drupal 6
- Jason Calacanis
- www.angieslist.com - what's the motivation behind the site?

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.
thanks for misunderstanding the script
Hi,
If it were the URL of the page then yes, that would be easy. But it’s not. It’s the URL of the story on digg.com. This is, in fact, my point.
Post new comment