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:
- I have only tested this code on one site and in one template. I simply inserted the code into the “Add This” plugin.
- The code probably will not count previous votes as the URL is slighty different than the default.
- 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.
- 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.
- Use this code at your own risk.
|
|
|
|
|
|






11 users commented in " Adding Yahoo Buzz To WordPress With URL Fix "
Follow-up comment rss or Leave a Trackback **********Wow.
Appearing on yahoo.com
What are the chances of that happening?
Thanks for sharing this.
Zero, but that’s not what interests me. When I first started blogging, I used to Digg every crappy little post I made. Guess what, every crappy little post got indexed separately as a backlink to my site, which I still get 2-3 hits a day from. Though I stopped Digging posts long ago, I think this Yahoo thing is a no lose proposition until we see how it plays out.
That’s a Nice post.
Your blog is unique, it’s nice. If you don’t mind, would you like to xchge links with me?
Thank you
The no lose side of things I agree with. Now to work out the code to get it working with my current plugin
I am so new to all different thing and codes to add to my blog. You have very interesting post to help me. Best Wishes
I think you may want to “echo” it, or you can simply enclose “get_permalink()” with “<?php ?>”.
The idea may be fine, but that button looks SO out of place with all your others! ICK!
ê¿ê
Margaret: I know it’s out of place, but I haven’t taken the time yet to figure out how to reskin and resize their button.
Michael: You are right. I’m adding that code inside the “Add This!” plugin. As such, the plugin code is already wrapped in php tags. If anyone is just pasting the above code into a template as is, they should Wrap
“get_permalink()” with “” .Sorry Drunken, but this is not the place to ask that, and I am not intereted either.
I am using the addtoany plugin and it comes with yahoo buzz fully configured
I am glad that someone finally came up with a solution to this. I have heard of a lot of bloggers having this problem. Some have claimed that it was great while others said that is was bad since the only page getting ranked was their homepage. I haven’t even added this to my blog yet.
Leave A Reply