Wednesday, August 13, 2008

Digg, Reddit and in blogger posts

Adding Digg, Reddit, and whichever social bookmarking button you like to blogger posts seems to be difficult for many people. As you can see, I have today added these buttons.

For Digg, I used a piece of code floating around for a long time. It seems to be there on quite a few sites, so I don't really know whom to credit for it. Regardless, this is the code:

I replaced <p><data:post.body/></p> in the template with


<!-- DIGG -->

<div style='float:right; margin-left:10px;'>

<script type='text/javascript'>

digg_url = '<data:post.url/>';


<script src='' type='text/javascript'/>




And that easily, its done.

The smaller buttons I have added to each post (you can have Digg here too) what you have to do is:

  1. Find the buttons you would like to use, and upload them somewhere from where you can access them. You can use a site you have, or some free image hosting service.
  2. Note the links to the image files for each.
  3. Finally, create code like this for each service:

<a expr:href='&quot;; + data:post.url + &quot;&amp;title=&quot; + data:post.title' target='_blank' title='Add to!'><img border='none' height='20' src='' width='20'/></a>

<a expr:href='&quot;; + data:post.url + &quot;&amp;title=&quot; + data:post.title' target='_blank' title='Submit to Redit!'><img border='none' height='20' src='' width='20'/></a>

These are the two examples I have given, but really, you can do this to submit to any service you would like to submit to. Some popular submit urls for the commonly known services are:

  • Blinkbits
  • Blinklist
  • Blogmarks
  • Co.mments
  • Connotea
  • Fark
  • Feedmelinks
  • Furl
  • Linkagogo
  • Newsvine
  • Netvouz
  • Rawsugar
  • Scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • Tailrank
  • Wists
  • Yahoo

Promoting your blog for more traffic takes sustained efforts. I hope this information helps. Do let me know if there are any problems or if you need anything in particular.


devilblogger said...

you can add more than two, actually, I have a way on how to add stumble, newsvine, mixx and etc. just visit my site and browse...

Vidyut said...

Hi devilblogger,

Of course you can add more than two. That's what the entire list of submission urls is about. Pick whichever ones you want.

Thank you for sharing your social bookmarking source with us.