Wednesday, September 19, 2007

Digg solution for blogger


Guys, i can across this today while searching for a solution for crating a digg button on blogger, well blogger doesn't allow the script tag; i am going to copy what they have written and try to make it more simple. I have to give it upto them, they are the ones who figured it out.. So here it goes, Note: my comments are in italic.


1. Copy this code (Source: http://diggtheblog.blogspot.com means from that site just leave that part).

<!-- Begin copy here -->
<script> digg_url = 'URLOFSTORY'; </script>
<script src="http://digg.com/api/diggthis.js"></script>
<!-- End copy here -->

2(4). Paste the code from #3 into notepad and save it as an htm/html file. Upload that file to a server.Past that code into a Notepad and save it with the name, whatever.htm

3(2). Go find your Digged post URL.Url of your blog, must be the url of that post. (chicken and the egg thing - i know...).

4(3). In the code above, replace URLOFSTROY with your Digg URL. Replace the text with the URL of your post.

5(5). In your Blogger post, the one where you'd like to append(include) the "Digg this button counter", insert the following code: Where you like the digg button to appear, paste the code below.


<!-- Begin copy here -->
<iframe src="URL_TO_YOUR_FILE_FROM_#4" frameborder="0" height="115" width="100">&amp;amp;lt;br&amp;gt;</iframe>
<!-- End copy here -->

6. Now save your post, and publish it!

Here's a live example:

0 comments: