I did a lot of research on this several months ago, but never got around to sharing what I discovered. So, I will take this opportunity to reveal the fruits of my labours. I wrote this article, so you can copy the code from my site and then just input the information for your particular site. Once your values are input, you should be good to go.
As you may notice, the code below is in two sections. The first section contains the code for the clickable image that is displayed on your site. The second part of the code is for the text-box and the code your readers will use to display your badge.
Okay, once you have an image you want to use, let's get started...