Neofreko / 810 posts / 1,958 comments / feed / comments feed

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.

    Sphere: Related Content

    11 Comments

    1. Pingback -   WordPress Plugin: Blogshares Stuff by Blogging Pro — 6/19/2005 #

      [...] 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. Pingback - WordPress Italy » Blog Archive » Plugin WordPress: Blogshares Stuff — 6/19/2005 #

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

    3. siUUL — 6/19/2005 #

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

    4. toni — 6/20/2005 #

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

    5. kusaeni — 6/20/2005 #

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

      But I dont, I am not b$ freak

    6. Charly Silaban — 7/29/2005 #

      Great Work….!!!

    7. WauloK — 10/15/2005 #

      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 — 10/15/2005 #

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

    9. toni — 10/15/2005 #

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

    10. WauloK — 10/16/2005 #

      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 — 10/17/2005 #

      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 comment

    « Back to text comment