NOW-Hollywood - Celebraties Bio/Movies/Gossip

Mar 28, 2009

Add Digg Button on Blogger Template

by Admin 0 comments



Share this post:
Design Float | StumbleUpon | Reddit

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

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>

Related Posts



Subscribe Feeds RSS in your preferred RSS reader
Comments 0 comments

Admin(kk group)
Student, Web-Developer, FSD-PAKISTAN
getfreefiles@gmail.com

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Recent Entries

Sponsored Links

Advertise on this site Sponsored links

Categories

Etiquetas

Are you looking for a job?

Post a job and reach web professionals everywhere.

My Photos on flickr

Subscribe feeds rss Recent Comments

Technorati

Technorati
GFF's authority on technorati
Add to Technorati Favorites