Friday, January 9, 2009

How to Add Digg vote button on Blogger Template


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 <data:post-body> this code:

<!-- 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/>

This is the original post that I have added on Digg exactly 234 days ago from this date: Add Digg vote button on Blogger Template

If you want to add a small digg button like on this site, find this code into your blogger template (select expand widget):

<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>
















Enter your email address:

Delivered by FeedBurner

0 comments:

Friends

Popular Posts

Advertisement

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com