Digg

Simple "Digg This" with Digg Count (original version)

Simple "Digg This" with Digg Count (original version)

This original version of the Digg This button is used for stories after they have been submitted to Digg and are in the Digg database. Its purpose is to simply display the Digg count and allow users to Digg it. While we recommend the smarter digg buttons above, we will continue to support this button for sites already using this code. The following examples illustrate the different ways the Digg This button can be used.

Example: Digg This without a submit option

<script type="text/javascript">
digg_url = 'DIGG_PERMALINK_URL';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

Make sure to use a Digg Permalink URL like this in place of DIGG_PERMALINK_URL such as:

http://digg.com/programming/Digg_s_Eli_White_Releases_PHP_Book

» http://digg.com/tools/integrate#2

my example (prevent display "Digg This" within RSS feed). just simply insert it into beginning of drupal's node body:

<div style="float: left; margin: 0 1em 1em 0;">
<script><!--
digg_url='DIGG_PERMALINK_URL';
//--></script>
<script src="http://digg.com/api/diggthis.js"></script>
</div>


Syndicate content