How to Auto Add Digg Button In All Blogger


Digg.com is a social bookmarking site where we bookmark our blog contents and other people vote on these posts that this post is useful or not. So,this is the big traffic resource if you use Digg button on your blog. Visitors come on your blog from all around the world through this simple and auto service. So lets start to Auto Add Digg Button In All Blogger Posts,
digg button How to Auto Add Digg Button In All Blogger Posts
1. Log In to Blogger Account
2. Click on Design and then Click on EDIT HTML tab.
3. Backup your template first. Click the Download full template link and Save your template.
4. Click  on box beside Expand Widget Templates.
expand widget templates How to Auto Add Digg Button In All Blogger Posts
5. Find this code in your template,

<p><data:post.body/></p>
6. Delete the above code or replace with this code given below,
<p>
<!– 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/>
</p>
7. Click On Save Template Button
8. Finish
Note: If you use read more hack for your blog then the above code is not working for read more hack posts. So, you can use the given below code for add Digg It Button.
1. Find this code first
<b:if cond=’data:blog.pageType == “item”‘>
2. Copy and paste the below code and replace your read more code.
<b:if cond=’data:blog.pageType == “item”‘>
<style>.fullpost{display:inline;}</style>
<p>
<!– 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/>
</p>
<b:else/>
<style>.fullpost{display:none;}</style>
<p>
<!– 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/>
</p>
<a expr:href=’data:post.url’><b>Read More…</b></a>
</b:if>
8. Save your Template
9. Finish and Done

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Posting Komentar

ada masukan lain ...?

banerrrrrrrr
 

uang Copyright © 2010 LKart Theme is Designed by Lasantha