This is my old tutorial that I have written for my old ajaxcold site that
explains how you can add a Digg vote button for each post into the new blogger template.
Open your blogger template, expand the widgets and find this code's line:
...<data:post.body/>...
and add on top to
<!-- DIGG -->
<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url = '<data:post.url/>';
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
<data:post.body/>
If you want to add a small digg button like on this site, find this code into your blogger template (select expand widget):
H<div class='post hentry'>
<a expr:name='data:post.id'/>
<!-- DIGG -->
<div style='float:right; margin-top:4px;'>
<script type='text/javascript'>
digg_url = "<data:post.url/>";
digg_skin = "compact";
digg_window = "new";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'></script>
</div>
Post a Comment