WP Blogshares Stuff

Inspired by WP RSS DFirefox, as well as tempted to hack some php code, I ended up with this wp blogshares plugin. Kinda dirty hack but I guess I’ve made my code pretty reuseable. Since it’ll generate an XML tree for you to play with. Let’s cut the crap and take the code. Adjust the blogshare user id (inside the code, no option page, sorry for the rush :p ). Upload it to your plugin folder. Activate. And don’t forget to add somethign like this in your theme, whereever you want to put it:


< ?php if (function_exists('wp_myblogshares_stuff')) { ?>

  • < ?php _e('Blogshares Balance'); ?>

    • < ?php wp_myblogshares_stuff(); ?>
  • < ?php } ?>

    See the code here.

    Greetz to all Blogshares freaks (Idban, pak Andika, and others in id-blogshares@googlegroups.com) out there. No, I’m no blogshares freak. Just see my blogshare balance there.

    11 Responses to “WP Blogshares Stuff”

    1. [...] ress Plugin: Blogshares Stuff Display your Blogshares balance with the WordPress 1.5 Blogshares Stuff plugin. Posted by John in WordPress Plugins Subscribe t [...]

    2. [...] WordPress: Blogshares Stuff Visualizza il tuo bilancio BlogShares con il plugin BlogShares Stuff per WordPress 1.5 [Traduzione da BloggingPro] [...]

    3. siUUL says:

      kok ndak bisa ya, malah error! :D nungguin bayu aja deh! :D

    4. toni says:

      what was the error? can you tell me more?
      For information, this plugin need PHP to allow fopen to an URL.

    5. kusaeni says:

      Nice plugins , I know some one that called blog$ freak . :)

      But I dont, I am not b$ freak

    6. Great Work….!!!

    7. WauloK says:

      I installed this and get tons of errors:
      Warning: Cannot modify header information – headers already sent by (output started at /home/waulok/public_html/wp-content/plugins/blogshares.php:96) in /home/waulok/public_html/wp-admin/admin.php on line 10

      Warning: Cannot modify header information – headers already sent by (output started at /home/waulok/public_html/wp-content/plugins/blogshares.php:96) in /home/waulok/public_html/wp-admin/admin.php on line 11

      Warning: Cannot modify header information – headers already sent by (output started at /home/waulok/public_html/wp-content/plugins/blogshares.php:96) in /home/waulok/public_html/wp-admin/admin.php on line 12

      Warning: Cannot modify header information – headers already sent by (output started at /home/waulok/public_html/wp-content/plugins/blogshares.php:96) in /home/waulok/public_html/wp-admin/admin.php on line 13

    8. WauloK says:

      Thats before I put the code in my blog to display it. This happens as soon as I activate the blogshares plugin.

    9. toni says:

      you can test the script by calling the function directly. that way you’ll get more info about the error.

    10. WauloK says:

      ah ok it was whitespace after the ?> at the end
      I think you need to fix your smart apostrophes in your demo code above tho :)
      Just got this error now:
      Blogshares Balance
      XML error: syntax error at line 1

    11. toni says:

      ya, that smart aphostrophe is a cost from a pretty code colorer plugin (geshi)

      Oh, and that XML error, I gues there is somthing to do with the xml fetching .. it’s neither incomplete for connection problem or not available at all because php prohibit fopen from using http protocol.

    Leave a Reply