Friday, March 10, 2006

Guide: How to add a DiggIt and Del.icio.us button to blogger

For many bloggers out there the most concerning thing related to your blog is traffic. To help generate traffic there are two great tools out there that you can use. One is Del.icio.us and the other is Digg. For those of you that don't know what either does then just Google it to find out.

Both can help drive in users to your site which is great. Only problem is how do you make it easy to get your visitors to use the two?

Well after searching for different ways to do this I couldn't find a solution that would work with blogger. After discovering some different methods for other services I decided to tinker with the code and eventually I got it to work. Here is how you can put some quick and easy links to help out your visitor:
_________________________________________________

First, the way this code will work is that it will take your reader to the site and automatically insert in some information such as the article link and title making it easier for them to digg or tag your site. Because of this you need to put it where the links will show up under each and every post.

Go to ----> Edit Template. Next scroll down and find your bar that has the comments button and your name and link on it.

Scroll past --->
/*
-----------------------------------------------
Blogger Template Style
Name: Rounders 3
Designer: Douglas Bowman
URL: www.stopdesign.com


Keep going until you see a code that looks like this:
<p>
<$BlogItemBody$>
</p>

</div>

<p class="post-footer">
<em>By: <$BlogItemAuthorNickname$><a href="<$BlogItemPermalinkUrl$>" title="permanent link">Permalink</a></em>
<BlogItemCommentsEnabled>

Should be about half-way down the page although it will change for everyone.
Right before "<BlogItemCommentsEnabled>" just enter in:

<a href="http://digg.com/submit?phase=3&url=<$BlogItemPermalinkUrl$>" Title="Submit To Digg" target="_blank">DiggIt!</a>

<a href="http://del.icio.us/post?url=<$BlogItemPermalinkUrl$>&title=
<$BlogItemTitle$>" Title="Del.icio.us" target="_blank">Del.icio.us</a>

Please note that the code above is two seperate codes. One for Digg and the other for Del.icio.us. They should be put in one right below the other. Also, I suggest that you make both one line of code. So the digg code would be just one line of code and the del.icio.us code would be just one line of code.

Also, if you want the two links to be seperated by a "|" then just add "nbsp;|& nbsp;" wherever you want it.

Here is what the final product will look like:



Enjoy! P.S. if you do choose to use this guide then could you at least link somewhere on your site to this specific post so everyone in the blogger world will have it! Thanks!


78 comments:

  1. Way to go Neil. You = Blog God

    ReplyDelete
  2. I was also looking for this, but I took it a step further by checking an RSS feed of the Diggs for my blog and writing the URL linking to them on Digg. I'm working on getting around some of the feed caching issues, but it works for now: http://ipbs.blogspot.com/2006/03/how-to-get-your-digg-counts-displayed.html

    ReplyDelete
  3. Thanks, just what I was looking for. I also added a Reddit submission link to my template after a little digging:

    <a href="http://reddit.com/submit?url=<$BlogItemPermalinkUrl$>&title=<$BlogItemTitle$>" title="Submit to Reddit" target="_blank">Reddit</a>

    Doug

    ReplyDelete
  4. Thank you very much. It's really helpful.

    ReplyDelete
  5. well,, i tried your suggestion but couldn't get it to work... any ideas ??

    jono
    http://jonoguyana.blogspot.com

    ReplyDelete
  6. if you could email me your template then I'll take a look:

    freeelectronicstuff@gmail . com

    ^Take out the spaces.

    ReplyDelete
  7. Alright jebratt, I've taken a look at your source code and I believe I know where to put the code in. If you could just email me your template code then I can send edits back to you and it should work!

    ReplyDelete
  8. I put the code for del.icio.us and reddit on my blog.

    My problem was that the links did not appear in my archives. Everything in my footer after the permalink was cut off.

    The solution was to place the links BEFORE the permalink code (which is not really where I want them).

    Anyone have a different solution?

    ReplyDelete
  9. There should be something that says "MainArchivePage" or something like that. Just put it behind that part and it should be fine.

    I'm not sure but if you take that "MainArchivePage" out and also the "/MainArchivePage" a little below then there shouldn't be a problem at all. However, I've never done that so I suggest previewing and making sure everything is ok.

    Hope it helped.

    ReplyDelete
  10. Anonymous11:09 AM

    The only problem that I'm having is that when you click on the digg it button its only automatically inserting the article link and not the title. Is this not working for others?
    Andrew

    ReplyDelete
  11. I wish I had read this before coming up with my own solution, which pretty much looked a lot like this one.

    I will apply the idea for the del.icio.us link, though. Thanks for posting it!

    ReplyDelete
  12. Thanks for the tip! Just added Digg and Delicious to my site :)

    ReplyDelete
  13. Anonymous5:53 PM

    thanks!

    ReplyDelete
  14. Awesome. Thanks.

    ReplyDelete
  15. Thank you, I did use your suggestion and modified it to display a button instead on my blog.

    I also noticed that you have content tags on your post, which I have not been able to get to work. I don't suppose you'd be willing to share with us how to add those tags?

    ReplyDelete
  16. Many Thanks - works a treat, saved me loads of time ;-)

    ReplyDelete
  17. In response to Andrew's question:
    "The only problem that I'm having is that when you click on the digg it button its only automatically inserting the article link and not the title. Is this not working for others?
    Andrew"

    You simply need to add the title Argument to the URL. Example:
    <a href="http://digg.com/submit?phase=3&url=<$BlogItemPermalinkUrl$>&title=<$BlogItemTitle$>" Title="Submit To Digg" target="_blank"&gtDiggIt!</a>

    The following is from the digg.com site elaborating all the potential arguments to the submit URL. If you were bold you might put <$BlogItemBody$> in the bodytext, but that is going overboard?
    http://digg.com/submit?phase=2&url=www.UniqueURL.com&title=StoryTitle&bodytext=StoryDescription&topic=YourSelectedTopic

    Paul Cooley
    http://linuxlore.blogspot.com

    ReplyDelete
  18. Anonymous7:55 AM

    Thanks...Great work..excellent blog

    ReplyDelete
  19. Hi...I like the looks of this but I have not been able to find the tags you mention in my templates!

    I started a test blog and Blogger won't accept the code: it says it is not properly parsed.

    I'm pretty new to this. Could you offer any help? I would like to have reddit, digg, technorati, stumbleupon, and delicious.

    Thank you!

    ReplyDelete
  20. Are you using old or new blogger...this code does not work with the new blogger

    ReplyDelete
  21. new one

    so i guess this is why nobody's instructions don't make sense: they are all for the old ones.

    thank you for the help, tho. it would've been a cool thing to have.

    ReplyDelete
  22. Hi, i have been trying to add these buttons for a while now, and i just can't seem to get them to work. I was wondering what version of Blogger you use? Does it matter on the version that you use?

    ReplyDelete
  23. This only works with the old blogger

    ReplyDelete
  24. Hopefully this will help all those of you who have changed to the new blogger - I've not tested the del.icio.us referral but the diggit definitly works

    It has to be included within the blog widget - select expand widgets to figure out where to place it

    Hope it helps...

    <a Title='Submit To Digg' expr:href='"http://digg.com/submit?phase=3&amp;url=" + data:post.url + "&amp;title=" + data:post.title' target='_blank'>DiggIt!</a>|
    <a Title='Del.icio.us' expr:href='"http://del.icio.us/post?url=" + data:post.url + "&amp;title=" + data:post.title' target='_blank'>Del.icio.us</a>

    ReplyDelete
  25. If anyone is interested I've put the code for buttons and how to add them to new blogger in my blog

    ReplyDelete
  26. Anonymous11:13 AM

    thanks for the new blogger tip Enrico!!

    ReplyDelete
  27. Anonymous3:46 PM

    'BlogItemCommentsEnabled' does not exist

    ReplyDelete
  28. Anonymous2:57 PM

    thanks...I needed this!! Great job.

    ReplyDelete
  29. Thank you! It's a great help!

    ReplyDelete
  30. Anonymous6:21 AM

    Discover the truth about acne treatments. Learn more about what products work. Acne Treatments - information on your complexion and best available acne treatment products available in market.

    http://www.acne-treatment.net/product_reviews/zenmed_reviews.html

    ReplyDelete
  31. Anonymous4:44 AM

    You can get rid of adult acne, if you follow these simple advices.

    ReplyDelete
  32. Anonymous1:46 PM

    Thanks for posting this very informational article.

    ReplyDelete
  33. Anonymous9:29 PM

    Great piece. Just started a blog one week ago and am trying to learn the ins/outs of digg, reddit and the like.

    Thanks for the tips,
    Richard

    ReplyDelete
  34. Anonymous3:16 PM

    Good one, thanks

    ReplyDelete
  35. Anonymous1:22 PM

    Thanks for the code! Really appreciate it.

    ReplyDelete
  36. Check my site:

    http://gamefb.blogspot.com/2008/10/save-dollar-day-for-next-xbox-720-ps4.html

    http://gamefb.blogspot.com/2008/10/goodbye-rrod-welcome-jasper-xbox360.html

    http://gamefb.blogspot.com/2008/09/with-45nm-ps3-likely-to-o-slim-not.html


    http://gamefb.blogspot.com/

    ReplyDelete
  37. Anonymous7:24 PM

    It Didn't work. I did not find these code on http://vikasnet-blog.blogspot.com

    ReplyDelete
  38. Anonymous12:57 AM

    いつもお世話になっております。個別指導塾は努力、一人でも多くの方々と繋がり、共に成長していけるように所です。地域に貢献し和歌山を良くしたいと日々思っています。 その為に毎日個別指導塾へ行きます。以前より今後も努めます。幼児教室せい人々の心なかに美しいところです。

    ReplyDelete
  39. Anonymous10:11 AM

    WoW shares many wow gold of its features with previously launched games. Essentially, you battle with monsters and traverse the countryside, by yourself or as a team, find challenging tasks, and go on to higher cheap wow gold levels as you gain skill and experience. In the course of your journey, you will be gaining new powers that are increased as your skill rating goes up. All the same, in terms of its features and quality, that is a ture stroy for this.WoW is far ahead of all other games of the genre the wow power leveling game undoubtedly is in a league of its own and playing it is another experience altogether.[wow7gold]
    Even though WoW is a wow gold for sale rather complicated game, the controls and interface are done in buy warhammer gold such a way that you don't feel the complexity. A good feature of the game is that it buy wow items does not put off people with lengthy manuals. The instructions cannot be simpler and the pop up tips can help you start playing the game world of warcraft gold immediately. If on the other hand, you need a detailed manual, the fastgginstructions are there for you to access.
    Buy wow gold in this site, ibgibg k4gold and pvpsky .

    ReplyDelete
  40. Anonymous1:28 AM

    探偵 感觉4ying
    名刺 ne2ying

    ReplyDelete
  41. Anonymous2:55 AM

    The Little Men cheap wow gold came back to the World Of Warcraft Gold hut. When they saw that Snow-white was world of warcraft dead, the poor
    mygamestockLittle Men cried.

    Then they put wow gold cheap Snow-white in a box Cheapest Wow Gold made of glass. They took the glass box to a hill Wow Goldand put it there, and said, "Everyone who goes tbcgold by will see how beautiful she was." Then each mmorpgvip Little Man put one white flower on the box, and wow gold for sale they went away.

    Cheap Wow Gold
    wow gold
    buy warhammer gold.

    ReplyDelete
  42. Anonymous5:21 AM

    Do you want to know the magic of online games, and here you can get more Metin2 gold. Do you want to have a try? Come on and Metin2 yang can make you happy.You can change a lot Cheap metin2 yang for play games. And you will enjoy yourself at the sametime. Playing online games can make much Cheap metin2 gold. Come and have a try. You will feel a different feeling. And you can Buy metin2 gold do what you want to do in the online game.
    Do you want to know the magic of online games, and here you can get more maple mesos. Do you want to have a try? Come on and mesos can make you happy.You can change a lot cheap mesos for play games. I often go and play online game. Playing online games can make much maplestory mesos. And you will feel well. And you can use the maple story mesos do what you want to do in the online game.

    ReplyDelete
  43. Anonymous6:55 PM

    Nice to meet you!Visit my blog
    http://learning-ccna.blogspot.com/

    ReplyDelete
  44. Anonymous3:31 AM

    Have you heared about a game which you need use Atlantica online Gold to play, and you can also borrow Atlantica Gold from other players? But you can buy Atlantica online Gold, or you will lose the choice if you do not have cheap Atlantica online Gold. If you get Atlantica online money, you can continue this game.

    ReplyDelete
  45. Hey!Nice to meet you!visit my blog
    http://learn-ccna.com

    ReplyDelete
  46. Anonymous1:30 AM

    That's a really wonderful! Web development

    ReplyDelete
  47. Anonymous1:48 AM

    http://www.gucci-shoes-bags.com
    http://www.guccinewshop.com
    Dear friends welcome to our store: we have a specail offer now which is once you buy any product you can get a free gift as well, these gifts are in the gift area, you can free to choose and please add to the shopping cart, we will send it together with your purchased product. Thanks!

    ReplyDelete
  48. Anonymous1:52 AM

    ed hardy outlet The Ghd hair straightener has cheap vibram 5 fingers been created to meet the demands of any woman no matter what the length of their hair. discount vibram five fingerBeing female may have many perks but there are also the downsides too and that contains keeping your hair looking and feeling great whilst still
    vibram running shoes keeping up with the latest fashion trends. For this season that means luster straight looking hair and the use of a ceramic flat hair iron. The GHD GHD hair straightener is one of the best ghd straighteners for this.
    vibram five fingers outlet Not only does the GHD GHD hair straightener allow you to achieve excellent hairstyles but it also helps to protect your hair too. Whether your hair is long or short the GHD GHD hair straightener can meet all your demands. Applying state of the art technology this ceramic flat hair iron really is every woman's number one option and is also the favorite among celebrities including Jennifer Aniston.
    vibram five fingers outlet How the GHD GHD Hair Straightener Works moncler jackets For any women out there who has Sexy Lingerie ever purchased or applied a ceramic hair straightening iron you will be amazing at how easy the ghd hair straighteners sexy Underwear make styling your hair. women's underwear This ceramic flat hair iron comes with so excellent features and also guarantees to minimize hair damage.Nike Shox R4
    Unlike the ordinary ceramic hair straightening iron the GHD flat iron comes with ultra smooth plates Shox shoes that straighten your hair without pulling or breaking your hair in the process.
    ugg boots The GHD flat iron applies GHD on its plates to generate negative ions that straighten the hair and eliminate frizz in the process. ed hardy wholesale Applying negative ions also helps to add more shine to your hair and speeds up the straightening process.discount ed hardy wholesale The use of infra red heat technology in this cheap ed hardy wholesale ceramic ghd hair straighteners help to seal in the hairs moisture almost eliminating any possible hair damage.
    wholesale ed hardy

    ReplyDelete

  49. Delighted that I found your site, fantastic info. I will
    bookmark and try to visit more frequently.

    ReplyDelete
  50. Thank you for sharing such an important thing, It can be useful in many aspects and leads to provide the relevant information. We are also providing healthy products that can nourish your body and usually provides a healthy body. For more information, visit our website,Regards.

    ReplyDelete