[WP Plugin] HANA-XML-STAT

hana-xml-stat-output.phpNow Works with Wordpress 2.3!
I use Yahoo! Widget in my XP machine. One day, I tried to find this Yahoo! Widget that shows my blog’s general statistics(especially SPAM related) with maybe few extra admin functionalities.

When I checked the widget.yahoo.com, there was only a single result,a widget showing only UNIQUE HITS. But that’s not good enough for me. When I searched the google.com, I was overwhelmed by the confusing results that were all about WordPress sidebar Widgets.

So I decided to create a Yahoo! Widget & WordPress plugin. This plugin provides a XML feed access point and function that can be used in the template to show statistics summery.

You can create a PHP script or a Yahoo! or even a Vista Widget to monitor your blogs through HANA-XML-STAT plugin. In fact, if you have multiple blogs to monitor, you can monitor several WordPress website from a single PHP script or Widget. Maybe, I will try to create one later on.

Basically , this HANA-XML-STAT plugin shows six blog statistics.

  • Total number of Spam caught by Akismet
  • Number of spams in Moderation (Akismet)
  • Number of comments in Moderation
  • Total number of posts
  • Total number of comments
  • Total number of categories

Additional hit counters are shown if you have wp-shortstat, wp-slimstat, or any derived plugin installed.

  • Today and Yesterday’s total hit counter
  • Today and Yesterday’s unique hit counter

You will be able to control the visibility of the first three items in the Admin Options Page. Also, you can allow only login user to view the status.

Download HANA-XML-STAT v0.4

History
v0.4 – 10/23/2007

  • Fixed bugs occurred with wp-slimstat

v0.3 – 10/22/2007

  • Just some updates for WP 2.3. No new functions

v0.2

  • Hit counters are added to show if wp-shotstat or wp-slimstat is installed.

v0.1

  • Initial creation. Six basic stats are shown in XML format.

Installation

  1. Upload `hana-xml-stat` folder with all of its contents to the `/wp-content/plugins/` directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress Admin Interface.
  3. Place `<?php hana_xml_stat_side(”<li>”); ?>` in your templates. It takes two arguments. They are not mandatory, but the first argument is the prefix and the second argument is the postfix.
  4. Adjust settings in the ‘Options’ menu in the Admin Interface if you want to.

The full URL is shown at the bottom of the Admin Optins Page. For example, if you WordPress URL is “www.yourblog.com/wordpress”, below would be your XML feed URL.
http://www.yourblog.com/wordpress/wp-content/plugins/hana-xml-stat/feed.php

This is the example output of the hana_xml_stat_side() function used in the sidebar.php of my current template.
sidebar example

Here is a screen capture of the Yahoo Widget that I am currently working on. There are few admin functions that can work directly with WordPress without visiting the website. I will post this in this blog within few days.

Preview of my yahoo widget Sorry, I threw away this one.

hana-wp-stat widget previewhttp://www.neox.net/w/2007/05/02/hana-wp-stat/

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MySpace
  • Reddit
  • Technorati
  • Twitter

, , , ,

My favorite listmania

iPod Universe

Apple iPod Video 80 GB White MA448LL/A (5.5 Generation) OLD MODEL - I appreciate you sending it so quick, battery life survived a 10 and a half hour flight without dying. I have had no problems with it at all. thank you again
$89.99
Apple iPod shuffle 1 GB New Bright Blue (2nd Generation) [Previous Model] - I own one purchased long ago, thought they would be cheap since they are oudated and hold much less then others out. Even more with less compression and sounding better. Am i missing something? T...
$63.99
Apple iPod shuffle 4 GB Silver (3rd Generation) OLD MODEL - Just purchased an Apple iPod Shuffle, and find out that the only way to add music to this iPod is by using iTunes. When you turn on, you hear a voice saying "Use iTunes to add music to your iPod". Tha...
$0.01
Premium White USB Data / Charging Adapter Adaptor for Apple 2nd Generation Shuffle - I ordered this charger for my Shuffle and when it arrived it did not work. I promptly sent an email to customer service and to their credit they responded right away and mailed out a replacement, but ...
$1.50
For Apple Iphone (3G, 3GS, 4G) / Apple Ipod (Touch, Classic, Nano) New Premium Quality Travel / Home / Wall Charger - This iPod charger functioned for a while, but it is delicate. Even with very careful use, the outer cord covering detached and opened up where it entered the plug that attaches to the iPod.
$219.95
Apple iPod nano 4 GB Blue (2nd Generation) OLD MODEL - It's perfect for me. It fits in my pocket, and I listen to it every day during my commute in and out of work. I don't have to charge it for 3 or 4 days. I listen to it about 2 hours a day so that's...
$129.00
Apple iPod nano 8 GB Pink (4th Generation) [Previous Model] - I had a 4th Gen 8G nano that broke and I was looking high and low to replace it. All I found was the new 5th gen nano that had video which I didn't want. Great little music player, it holds about 500 ...
iPod Nano Silicone Case Package for 4th Generation Skin Cover + Screen Protector + Car / Home Charger / USB and Armband, Nike + Compatible - The reason i bought this package was mainly for the exercise armband so that I could go running with my ipod and I LOVE it. It stays snug because of the elastic and fits around anyone's arm. what I di...
Radiantec FM Transmitter and Car Charger for iPod nano 1G (Black) - This product works great! I bought a cheap one first and had to throw it out. This one is definitely worth the money.
$27.98
Apple Nike + iPod Sport Kit for iPod nano 1G, 2G, 3G, 4G, iPod touch 1G, 2G, 3G -
Since I bought this device my motivation to run is off the chart! It is so wicked cool and fun to use.
I was not a passionate runner before, but now I can't wait to get out there and run ...
Hard Crystal Case for iPod Nano 4th Generation Chromatic 8GB 16GB Crystal Case package with Screen Protector (Nano 4th Gen Mp3 Player not included) - The case was cracked slightly in a small but crucial area when it arrived and for this reason I couldn't use the case. I personally blame the shipping and not the product itself, so I still rate it 3/...
$8.08
USB Data Cable + USB Car Charger + USB Home Charger + Smoke Rubber Silicone Skin Case + Elastic Armband + Clear Reusable LCD Screen Protector - Cheapest and best deal for accessories for your ipod I have found! Protects it well and everything works!
$0.01
Rapid Travel Charger for iPod - Cheap as hell, but it did the job. Just don't expect it to last, it's a piece of plastic.
$17.63
Dock Connector to USB 2.0 Cable for iPod and iPhone (White) - this one works just fine...
plus shipping was lightning fast...

can't go wrong at this price...
$4.48
Apple iPod Charger 3 in 1 Bundled Kit - Home Travel Wall Charger - 12V Car Charger - AV Audio Video Cable - Its my fault, I was too quick to purchase without reading the comments. I wish it had been more BOLD in telling you that the AV cable doesn't work with 5th generation nano. Chargers work fine, and f...
$0.01
4th Gen. iPod nano Sleeve - Clear - It doesn't fit and it won't fit inside the armband so each time I use it to go walking (which is always) I have to remove the plastic case. It's cheap and I guess you get what you pay for. Oh well.
$0.01
Macally Audio and Video Cable for iPod classic 4G, 5G, 5.5G (White) - This product didnt work with my iPod classic. It requires a connection to the bottom using the wide connector, but this offers only a connection through the headphone jack. It was cheap enough so I wo...
$13.03
CTA Digital Rapid Travel Charger for iPod (White) - Because of short cord length on this charger we have to plug it into the wall and place the IPOD on the floor. The cord is 3'8" which is not long enough to even reach an end table that is only 4 inche...
$9.97
Belkin Neoprene Sports Armband for iPod nano 3G (Black/Gray) - I bought this item for my wife's ipod...she had a pink belt clipfor when she went to the gym to workout. She would say when she would run or ride the bikes or pretty much any activity where she had to...
6 in 1 Car Kit for Ipod (Black) Car Charger / Fm Transmitter / Holder Full Range Frequency / USB port / Remote Control for iPod, Touch 1G/2G - Good product that offered me great reception in Philadelphia and the suburbs, but struggled to tune in anytime I was in center city. The device was easy to set up and satechi sent me an extender arm f...
$20.99
CrazyOnDigital 15-Piece Full Accessory Bundle Set for iPod Video Classic 30 GB and 80 GB - The service was good. The delivery time was quick. I haven't had a chance to use all of the included items, but so far am very happy with the purchase. The FM transmitter doesn't work very well. T...
$24.99
15 pieces FULL ACCESSORY BUNDLE SET for iPod Nano 4th Gen - this is a very cheap set, but its practical usefulness isn't too shabby.

pro: * the silicon covers are very durable and fit very nicely
* the headphone multiplier cord is very...
$4.49
Griffin Reflective Case for 80/120/160 GB iPod classic 6G (Silver) - It makes my Ipod look prettier than it already is and it protects it pretty well
5 in 1 Apple iPod Touch 8GB, 16GB, 32GB Silicone Case Package Includes , , , Armband, and Screen Protector - Car charger worked in one car but not the other.
I never used the armband.
The case was just okay.
$38.98
iLive IS208B Stereo Speaker System with iPod Dock (Black) - I got this for my office at work - each morning I plug in my Ipod and charge it while listening to music. The feature I like most is the aux port on the back - I attached the dock for my RoadyXT XM r...
Too low to display
Speck ToughSkin Rubberized Case with Belt Clip for 80/120/160 GB iPod classic 6G (Black) - I bought this to protect my iPod Classic when I am working outside and it is at risk of being dropped. I am very impressed with this case. It is a heavy duty rubber jacket for iPod. It makes the devic...
  1. #1 by relequestual at June 20th, 2007

    all very will. ill remember this when i move over to a hosted site, but what about those who use the wordpress.com hosting? can u make one for that? sure u can somehow?

    lemme no

    kind regards

    rel

  2. #2 by HanaDaddy at June 20th, 2007

    Does wordpress.com allow custom plugins? I don’t think so.
    If there is a way to install 3rd party plugin at wordpress.com , let me know. I will look into it.

    Bye

  3. #3 by Maiev at October 22nd, 2007

    Hello Hana,

    I was wondering if your plugin is still compatible with Wordpress. I’ve tried using your plugin to display statistics gathered using WP-Slimstat (v0.92) and nothing was shown! Is there any updates on it? Thanks ^^;

  4. #4 by HanaDaddy at October 22nd, 2007

    Thanks for using my plugin. I haven’t had enough time to test the new Wordpress and the Slimstat. I’ll try to review soon and let you know.

  5. #5 by Maiev at October 22nd, 2007

    Thank you for your time :)

  6. #6 by HanaDaddy at October 22nd, 2007

    I made some adjustment to the HANA-XML-STAT and HANA-WP-STAT yahoo widget in order them to work with WP 2.3

    But hit counter will not work since wp-shortstat and wp-slimstat will fail in WP 2.3. They require “categories” table but WP 2.3 does not have one.

    I will check for more information.

  7. #7 by Maiev at October 23rd, 2007

    Hello, again thanks for your time!

    I tried your plugin tonight, the Unique Hits and Today’s hits still not showing (even after un-commenting from line 315-319).

    Also, there’s also an error using your plugin (even before), if I didn’t make changes. Probably different database name.

    Before Change (just by uploading and activating plugin), it does this. http://www.staronion.com/maiev/img/hana_plugin1.jpg

    By modifying line 202 from:

    if ( class_exists(’wp_slimstat’) || class_exists(’wp_shortstat’)){

    to
    if ( class_exists(’wp_slim_stats’) || class_exists(’wp_shortstat’)){

    It eliminates the database query problem!
    http://www.staronion.com/maiev/img/hana_plugin2.jpg

    Yea, I dunno if its WP-Slimstat problem (v0.92), or something I don’t know about ._. I sent my screenshot of my sql database to your email! Thanks for your time again :o I wish I knew a bit more codes =P to help out ^^

  8. #8 by HanaDaddy at October 23rd, 2007

    OK, I have updated to work with wp-slimstat v0.92. I am sure it will work this time :)

  9. #9 by Maiev at October 23rd, 2007

    Thanks Hana ^^; It did really work this time, and you even updated to the WP-Plugin website! Sorry for the trouble :(

  10. #10 by pranajayas at March 13th, 2009

    waiting for your new update post about wp plugins, thanks and nice to know this blog :D

(will not be published)
Quick Coupons!
Abe's of Maine: Actually , if you buy a product more than $75, you can use FRIEND10 coupon code to get extra $10 off!