[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

$330.00
Apple iPod Video 80 GB White MA448LL/A (5.5 Generation) OLD MODEL - Okay, so you're thinking of buying an iPod. You've seen the iPod Touch and you've been blown away. Who wouldn't be? It's a great little gizmo. You can do a lot with it, surf the web, play Tetris, lear...
$99.00
Apple iPod shuffle 1 GB New Bright Blue (2nd Generation) [Previous Model] - I have had my ipod shuffle for about a year now. The headphones were not earbuds, so I got new ones immediatelly. I personally can't run with regular headphones, but some people must be ok with them. ...
$73.34
Apple iPod shuffle 4 GB Silver (3rd Generation) OLD MODEL - I ASKED FOR THIS OLD VERSION BECAUSE I NEED IT TO USE MY IPOD WHEN I SWIM.
I THINK YOU DO NOT NEED MORE IN ORDER TO LISTEN MUSIC
GUSTAVO
$0.01
Premium White USB Data / Charging Adapter Adaptor for Apple 2nd Generation Shuffle - Its not worth buying this product because its not working with my ipod.My money got wasted.So I recommend you to buy from different place.
$0.01
NEW WALL Charger for APPLE iPod Nano 4G Video iPhone - 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.
$199.99
Apple iPod nano 4 GB Blue (2nd Generation) OLD MODEL - Everything was great, the product was exactly what I expected (perfect for my 8 year old) and the seller was wonderful.
$151.47
Apple iPod nano 8 GB Pink (4th Generation) [Previous Model] - I have been wanting an iPod for quite some time & when I strated looking for one to purchase decided on the iPod Nano. I absolutely love it! It is perfect for what I am using it for.
iPod Nano Silicone Case Package for 4th Generation Skin Cover + Screen Protector + Car / Home Charger / USB and Armband, Nike + Compatible - It was relatively inexpensive and I was just purchasing the arm band portion for my wife's Christmas. She wanted it for when she exercised. Unfortunately, due to surgery, she hasn't actually been able...
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.
$34.95
Apple Nike + iPod Sport Kit for iPod nano 1G, 2G, 3G, 4G, iPod touch 1G, 2G, 3G - ...great in theory, not so great in practice. Did a 13+ mile run today. When I hit the "stop workout" my iPod reset itself. Run was lost. This is the second time in the past two months that I lost...
$6.66
USB Data Cable + USB Car Charger + USB Home Charger + Smoke Rubber Silicone Skin Case + Elastic Armband + Clear Reusable LCD Screen Protector - Silicon covers usually cost $20. I got this one for $8. That made the package worthwhile.

The silicon case fits well and seems durable, and the screen protector seems to be just fine...
$0.01
BargainCell Rapid Travel Charger for iPod - This rapid charger saves so much time. I use my ipod for so many things and when it needs charging, I don't want to wait 4 hours--since I'm always on the go in my power wheelchair.
Thanks, Anna
$0.01
Dock Connector to USB 2.0 Cable for iPod and iPhone (White) - I bought 4. We have 3 ipod devices and I like to keep a cable in the office. I'm hard on cables and generally have to replace about once a year.

These work perfectly and were very cheap -...
$3.50
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
Transparent Clear Snap On Crystal Hard Cover Case for Apple Ipod Nano Chromatic 8GB 16GB 4G 4th Generation - Is fantastic for what it's designed for ... to protect the Ipod from scratches. Only concern I have is dropping it.... I think the plastic case would shatter and do little to provide any shock absorbs...
$0.34
Macally Audio and Video Cable for iPod classic 4G, 5G, 5.5G (White) - it is ok but i can't get the video part to work on it the sound part works good when i plug it in to my i pod but again the video does not work on this
$9.82
CTA Digital Rapid Travel Charger for iPod (White) - I plugged my ipod touch in using this charger and the screen started jumping and going crazy. I unplugged it and threw the charger away. I don't think there is any permanent damage but I would not try...
$9.89
Belkin Neoprene Sports Armband for iPod nano 3G (Black/Gray) - I had trouble finding an armband for the older 3G I have so this item was a great find. Easy to use and comfortable. Great service and quick delivery was appreciated.
$39.99
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 - This is item is not the best.. it has a lot of static & the ipod touch doesn't stay in the grip... I would not purchase this item again or recommend it to anyone. also, the part that goes in the li...
$24.99
CrazyOnDigital 15-Piece Full Accessory Bundle Set for iPod Video Classic 30 GB and 80 GB - All the accessories are of cheap quality and did not work.You are better off buying more quality brand name products that actually work and are durable!!
$24.99
15 pieces FULL ACCESSORY BUNDLE SET for iPod Nano 4th Gen - The BIGGEST disappointment is the apply-it-yourself screen protector. Very much a joke. The silicone skins fit fairly well. Difficult to slide top to off position though. Can pull top down to do t...
$10.16
Griffin Reflective Case for 80/120/160 GB iPod classic 6G (Silver) - I bought this case about three weeks ago. I loved how the IPOD looked on it. However, the glass has developed a faded stain going from top to bottom. I though it was dirty but it is not. Second, it ge...
(7 Color Options) 5 in 1 iPod Touch 8gb, 16gb, 32gb, 64gb 2nd Gen, 3rd Gen silicone case package + home / car charger, USB cable, armband, screen protector - I would recommend this product very much. very cheap and it really work. I love the car and home charger and the band. I like the band alot cuz i workout and it's very useful.
$38.98
iLive IS208B Stereo Speaker System with iPod Dock (Black) - Worked fine for about 5 minutes even though the overall sound quality was pretty muddy. Now, in addition to the muddiness, it emits an equally muddy humming noise whenever it is turned on and the volu...
$10.95
Speck ToughSkin Rubberized Case with Belt Clip for 80/120/160 GB iPod classic 6G (Black) - If you have a 160gb classic, this is a no brainer! The headphone and usb connector areas are completely accessible as well as the hold button. There is nothing covering the wheel, so there is no restr...
  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!