Tutorials

WPBuzzer WordPress Plugin Workaround

Feb 16, 2010 insic 5 Comments

Google Buzz just launch last February 9, 2010 and I am surprised how viral as it spread the web. A day after I noticed Mashable has a Buzz button in their post so that a reader can easily add the article to their buzz stream. So I hit google hoping that there is a plugin like this for wordpress. I see a couple of plugins available and I choose WPBuzzer because of the stat counter that can be displayed if you have bit.ly api. I download the plugin and install it in my blog, but unfortunately it doesnt work. It is because of the function file_get_contents which is disabled in my host.

So I decided to experiment the code to have it work in my host or possibly make it works for everybody wants this plugin. So heres the code I have come up.

Code below is the function that gets stats from the bit.ly service. Noticed that it uses file_get_contents function to get the data.

This is the workaround I came up. Instead of the file_get_contents I uses the CURL library to get the data.

Is this the right solution? or is this one is less secure compare to the original code?

Download the original plugin from hameedullah site. And you can try the one I have edited.

I have sent an email to the original author on this plugin if he could do the fix.

About the author: insic

Subscribe in my RSS Feed for more updates on Web Design and Development related articles. Follow me on twitter or drop a message to my inbox.

  • Pingback: Wordpress Plugins » Blog Archive » WPBuzzer Wordpress Plugin Workaround | INSIC DESIGNS

  • http://www.mohammedarif.com Mohammed Arif

    After installing it, I don’t see the counter of Buzz.

    Just check that out on my blog at http://www.mohammedarif.com

    Thanks
    Mohammed Arif

    • http://blog.insicdesigns.com insic

      Did you add your bit.ly API login and Key?

  • http://www.ufukbilkay.com göğüs estetiği

    Great article. There is a lot of good information here, though I did want to let you know something – I am running Redhat with the latest beta of Firefox, and the look and feel of your blog is kind of bizarre for me. I can read the articles, but the navigation doesnt function so great.

    • http://blog.insicdesigns.com insic

      Im sorry to know that. I try to find ways. Thanks for letting me know.