[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

Headphones and In-Ear Monitors with volume and play controls

$499.99
Shure SE530PTH Sound Isolating Earphones with Push-To-Hear Control - Had them a few weeks and love them. On a noisy treadmill at the local gym, it blocks out most of the ambient noise and provides great sound quality for Classical recordings!
$499.95
Sennheiser MX W1 Totally Wireless Earphone - This is a great product for wireless technology. You can work within a range of about 20ft at the most between walls. I do wish they had a longer range for use. The fit is good from beginning for me. ...
$206.99
Etymotic Research Ety8 Bluetooth Stereo Wireless In-Ear Earphones - Normally I buy headphones on the cheap side--it was a big deal when I first went over the $10-15 dollar range. Recently I've gotten the same $30 pair two or three times, replacing them when they inev...
$139.83
Etymotic Research HF2 Earphones / Headset (iPhone Compatible) - Black - These earphones do a very good job of blocking surrounding sound. The bass is very good, but is not booming or over done. The mid and highs are solid and not colored in any way.

I have ...
$13.71
Sony MDR-E829V Fontopia Earbuds with In-line Volume Control - I had these Sony headphones many years ago but without volume control and they sounded great. These Sony headphones sounded just as good and with the added convenience of controlling the volume on th...
$17.41
Koss KTXPRO1 Titanium Portable Headphones with Volume Control - I broke my Sennheiser PMX60 Headphones and was looking for an inexpensive replacement that will give me a comparable listening experience. The Koss KTXPRO1 headphones fit the bill. They are comforta...
$21.95
Sony MDRG58V Street Style Headphone with Volume Control - I honestly have no idea what other people are complaining about--none at all. Some of these reviews are old, so maybe changes have been made to these since I got them almost two years ago...? The pict...
JVC Lightweight Headphone with Volume Control (Black) - These headphones have great sound, and the volume control is very, VERY convenient. The downside to these headphones for me is the fit. They do not seem snug enough over my head, and move a bit when...
Panasonic RP-HX32 2-way Style Earbud Headphones with In-cord Volume Control - I listen to audiobooks only, no music, but find the sound reproduction to be very clear and they are very comfortable to wear. I wear them for hours every day with no problems. Very good product.
Griffin SmartShare Headphone Splitter with Individual Volume Control White - This product is affordable and works-as-designed. The individual volume controls work well. I found this product useful when I was traveling via plane and we wanted to share the audio while watching...
$17.95
Shure EA650 Volume Control for Shure E/SE Series Sound Isolating Earphones - I used mine all the time because when using my Shure earphones my iPod is too loud on the lowest setting. Also, it's great on a plane because if I turn the movie volume down low enough, the static dom...
$32.59
Sennheiser MX55VC Twist-To-Fit In-Ear Stereo Headphones w/ Volume Control - The sound is not is not the best. However, they have decent enough sound quality. But the absolute best thing about these are their comfort and ability to stay in the ear and NOT move. took me fore...
$11.49
Panasonic RP-HV280 Portable Earbud Headphones with In-Cord Volume Control - These earbuds certainly do their job. I haven't had any noticeable trouble with sound quality, and it seems good for the price. Having the volume control on the cord is handy and makes me feel like I ...
AKG K 14 P Earbuds with In-Line Volume Control - You think you can not get a good earbud at this price? You are wrong! When it comes to AKG K14/K314, you are at the right place! This is a very inexpensive, but very nice sound quality earbud. The det...
$9.88
Koss P9 In-Ear Headphones with Volume Control - I will be buying my 3rd pair of these headphones. They typically last about 3 years of my abuse before the wire starts to cut in and out and needs some jiggling to work. But, I love the way they fit...
$50.10
Sennheiser HD 435 Versatile Open-Aire Ultra-Light Supraural Headphone w/ Volume Control - Well I've had these headphones now for little over a month and they are alright. They aren't great mind you but the sound is good, the volume control function is great which is the reason I bought the...
Too low to display
V-Moda Vibe Duo Earbud Headset (Chrome, iPhone Compatible) - These will break on you every few months, and even while they work the metal piece can rub against your ear and hurt. Don't expect much help from customer service when things go wrong either. I woul...
$19.95
Monster MusicShare Headphone Y-Splitter with Volume Control/Mute for Zune - Looking for a Y-connector for headsets to use with an iPod or other MP3 player or with a laptop? Consider the following product, which is on another Amazon web page:

Monster AICYP 200 ...
EarHugger TV6000 Turbo Wrap-Around Headphones with volume control - I may have smaller ears than most adults, because every other earbud on the market is painful and refuses to stay in place for me. These are entirely comfortable and have enough flex that the buds can...
$11.95
Ear Bud with Play/Stop Controller and Microphone for Apple iPhone (Black) - The sound on these is definitely well below average -- but come on, what do you expect from a $20 set of headphones? I gave this two stars simply because the earbud on mine fell off -- literally -- af...
$39.99
Sennheiser MX 660 Silver Earbuds with Volume Control and Cable Winder ?(Silver) - The earbuds have excellent acoustic clarity for most frequencies. People looking for a booming bass sound will be disappointed. My friends recently gave me a set of Bose earphones which are much more ...
$54.99
Shure PTH Push To Hear Control for Sound Isolating Earphones - Just got this in the mail today, and it is a very clever design. After reading the other negative reviews on this site, I am somewhat surprised by the critiques. Here's my take:

(1) The...
$69.99
Maximo iP-HS1 iMetal Stereo Headset for iPhone (White,Silver) - I loved this headset. The earbuds were comfortable, and the mic was decent. The placement of the mic/button along the cord was good as well. However, as another reviewer said, the small, round, rub...
  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!