Yahoo Buzz is a new Digg-like article voting system by Yahoo.com.  When an article is voted up, it has the opportunity to appear on the front page of Yahoo.com, a very popular site indeed.  Simply add the code from Yahoo Buzz to your article or Website Template and you are finished.  Almost…

There is one problem for WordPress users.  Normally WordPress displays several articles on the front page of your blog.  If someone clicks the “Buzz up!” button, it will add a vote to your homepage, not your article URL.  For example, only people who click on the article Performancing Ads Now Supports Blogger actually voted for it.  Everyone else accidentally voted for Turnipofpower.com.

The Fix:  I was able to fix this issue by editing the Yahoo Buzz code slightly.  Simply replace the existing code with the following:

<script src="http://d.yimg.com/ds/badge2.js" type="text/javascript"><!--
' . get_permalink()
. ' //
--></script>

NOTE:

  1. I have only tested this code on one site and in one template.  I simply inserted the code into the “Add This” plugin. 
  2. The code probably will not count previous votes as the URL is slighty different than the default.
  3. I am not a programmer!  If anyone can improve upon my code, AND has tested their improvement, please post here.  Remember, test first, then post.  Yahoo is a bit messed up as I have found from trial and error.
  4. The code shown is for the square button showing vote count, “large” is actually the type of button on my site.  Just change the word “square” to any of the button types yahoo offers.
  5. Use this code at your own risk. 


Add to Reddit.com RSS Feed Add to Technorati Favorites Stumble It! Digg It! Mixx It!

The Wisconsin Cheeseman - Delicious Cheese Gifts