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
- Posted by Akhmad Fathonih at 12:26 am
- Permalink for this entry
- Filed under: Open Source, Regular Hours
- RSS comments feed of this entry
- TrackBack URI








[...] ress Plugin: Blogshares Stuff Display your Blogshares balance with the WordPress 1.5 Blogshares Stuff plugin. Posted by John in WordPress Plugins Subscribe t [...]
[...] WordPress: Blogshares Stuff Visualizza il tuo bilancio BlogShares con il plugin BlogShares Stuff per WordPress 1.5 [Traduzione da BloggingPro] [...]
kok ndak bisa ya, malah error!
nungguin bayu aja deh! 
what was the error? can you tell me more?
For information, this plugin need PHP to allow fopen to an URL.
Nice plugins , I know some one that called blog$ freak .
But I dont, I am not b$ freak
Great Work….!!!
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
Thats before I put the code in my blog to display it. This happens as soon as I activate the blogshares plugin.
you can test the script by calling the function directly. that way you’ll get more info about the error.
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
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.