How to add Digg content to your site

Posted on August 30, 2008 at 5:34 am

Digg is famous for it’s great content ranking capability.  Articles who get in Digg are high quality since they are already voted by the readers.  The more vote an article gets, the more valuable it becomes at Digg.  The most voted submissions are put on the first page.  If you want to add popular Digg story headlines in your page, this post is for you.

To get the HTML script go to http://digg.com/add-digg.

You will see the Create a Digg Widget interface:

image

On this example, I chose the second theme with black background and the “Software” selection under the All popular stories.  You can choose a category of stories on the dropdown.  The preview of the output was instantly displayed.  This might have been done by the Digg developers using Ajax since the whole page did not refresh – only the preview refreshed.

The good thing about this tool is that it let’s you filter only Digg submissions by a certain user.  This means you can display only stories you submitted yourself!

The lower part of the tool are the display options and the generated HTML code:

image

Experiment with different settings to get the look and feel that you want.  I like this tool a lot since it automates the generation of the script – you can easily make a typo or syntax mistake with this heavily tagged type of code.   Since the output is an HTML script, you are free to edit it as you like.  You can change the title for example to “My Diggs!”.  Just make sure you don’t break the tags or leave out an important syntax component like the semicolon at the end of each line inside the <script> tag.

The final output will be like the one below:

digg_id = ‘digg-widget-container’; //make this id unique for each widget you put on a single page.
digg_description = 1;
digg_target = 1;
digg_theme = ‘digg-widget-theme4′;
digg_title = ‘My Diggs!’;

Ben Carigtan writes about technology, computers and how to get the most out of them.

Enjoyed this post? Subscribe to Online Tech Tips via RSS Feed or via Email and receive free daily productivity tips.

» Filed Under Computer Tips

Add to Delicious Save this page Mixx it Stir it up on Mixx
Reddit Add to Reddit StumbleUpon Stumble this page  

Related Posts

Please post your comments/suggestions!