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.

    • Pingback:   WordPress Plugin: Blogshares Stuff by Blogging Pro

    • Pingback: WordPress Italy » Blog Archive » Plugin WordPress: Blogshares Stuff

    • http://aulya.fadla.or.id/ siUUL

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

    • http://neofreko.com toni

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

    • http://kusaeni.com kusaeni

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

      But I dont, I am not b$ freak

    • http://porlakeden.blogspot.com Charly Silaban

      Great Work….!!!

    • WauloK

      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

    • WauloK

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

    • http://neofreko.com toni

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

    • WauloK

      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

    • http://neofreko.com toni

      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.