[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

Must Own PC Games-ALL TYPES

$26.99
Grand Theft Auto IV - Stay away from this one. Crash crash crash. And all the crap you have to sign up for just to run the stupid thing. BAD BAD move Rockstar. Loved the old titles. You just lost me as a customer.
$19.99
BioShock - It's a fun game with some twist and turns that keep it interesting through out. It had a few weird things like wanting you to drink and smoke for good health and also to kill a child to gain more poi...
$27.99
Dead Space - This game is at times unplayable because of the bugs that one WILL eventually experience as they play. This is a warning to anyone looking to buy this product: DONT. Get this game for the X-Box or PS3...
$27.99
Left 4 Dead - I was VERY VERY impessed with STEAM and their ability to make this one of the most solid online gaming experiences ever. Valve also did a fantastic job of ensuring a high level of random sponing each...
$27.99
The Orange Box - I have had this package since last year and have never even bothered playing anything other then TF2, which is worth the price of admission right there. I have fooled around a bit with HL2 and it see...
$24.70
Call of Duty 4: Modern Warfare - The game shows how much fun you can get playing an FPS, everything seems so real, when you shoot someone they will react in the right way instead of just standing there and moaning( like CounterStr...
$46.99
Call of Duty: World at War - There is tons of reviews obout this game that its bad. Do not listen it is awsome!!!!!!!!!!!!!. It has great graphics and is really fun to play.
$47.90
Crysis - The graphics in this game is amazing. But i find the gameplay quite a bore. Nothing interesting and very mundane story. Buy the game to admire the graphics and how well(poorly) your computer runs i...
$27.99
Crysis Warhead - This game is beautiful, but you need a fast computer to run it. It is short, but the myriad of mission types from stealth to assault and the seamless changes between different modes make it fun and i...
$19.99
Far Cry 2 - This is a pretty good game, but not great. Game play is a little repetitive as random enemy get respawned in this open world as soon as you leave a mini-area and the missions are broken down into 4 ba...
$37.88
Gears of War - The product was cheap, like new packaging, speedy delivery, and so much fun to play.
$18.99
Best Seller Series: Starcraft - Starcraft is one of the best RTSs ever. Still one of the highest played online games, even though it has been out for more than a decade. Well worth it.
$10.88
Warhammer 40,000: Dawn of War - For fans of real time strategy games, this game is a must have. I have heard a lot about it, but just finally got around to getting it. There are always players online to get a game going with. The...
$21.98
Warhammer 40K: Dawn of War Dark Crusade Expansion Pack DVD-Rom - Great addon to an amazing fun game. New units, new maps, new races it's all here for the taking. Bring on the necrons!
$2.22
Far Cry - The game is really cool until you get to these things that have cannons on their arms, then everything gets impossibly hard.
$26.99
Hitman: Blood Money for PC - I am a big fan of the Hitman games, with Hitman 2 being one of top-10 favorite games of all time. So when I claim that Blood Money is the best Hitman yet, that's a big statement for me. The developers...
$9.99
F.E.A.R.: First Encounter Assault Recon - Be warned that with the hand to hand manuevers available to the character it would probably be better to get the console version rather that the pc version of the game. Aside from that however It is q...
$13.98
F.E.A.R. Extraction Point - I really loved the first F.E.A.R. and i finally played this expansion. If you loved the first F.E.A.R., then you would love this expansion. The levels are not as tedious and repeated as before and it ...
$7.99
Battlefield 2 - Very pleased with this purchase. Most games that are this in depth are far more expensive. Great Buy!
$11.88
Battlefield 2: Special Forces Expansion Pack - The Battlefield 2 series on PC is just one word - Outstanding! I still play the original with my buddies most evenings especially on weekends. After a hard days work there nothing better than shooting...
$28.99
Battlefield 2 Booster Pack Collection (Euro Force & Armored Fury) - It was given as a gift to my boy friends son he wanted it. It arrived promply. He loves this game and plays it all the time.
$62.95
Doom Collector's Edition - Most games age like milk. They become stale and campy after a few years. But Doom is the series that has withstood a lot of crap and still kept on swinging. I would highly recommend getting this. Or a...
$3.99
Company of Heroes - Dream come true! Great graphics, sound effect and game play. Bought it at Amazon.com
$19.99
Company Of Heroes: Opposing Fronts - I usually disregard Amazon reviews of video games because they always seem overly negative and repetitive about bugs I never find in the game... that is not the case with COH OF. I played the first CO...
$19.99
Counter-Strike: Source - So, by now you probably know what Counter-Strike is. In fact, it's impossible not to. But what makes this game better than other online shooters? Frankly, it is hard to say, you'll just have to play i...
$18.99
SWAT 4: Special Weapons and Tactics - One thing I didn't like was being penalized for shooting a fleeing armed suspect.Is this true for real cops?Otherwise a great game that should have had save checkpoints.
$13.87
Quake 4 - This is one intense video game. And what's best, it runs natively in Linux.

I'm running it in Ubuntu 8.04 with the older 169 nvidea drivers. Online gaming is pretty good and the solo pl...
$125.00
Star Wars Jedi Knight 2: Jedi Outcast Collectors Edition - While the individual games are great, putting JK2, JK & the original DF together in a single bundle doesn't maximize your gaming experience. But first, a summary:

The games are part of a...
$84.88
Star Wars Jedi Knight: Jedi Academy - Great Game! You actually need skill to play, not like the Battlefront games. Mr. Lucas why have you abandoned the game genre that started it all?
Please continue the story, especially for us w...
$9.95
Max Payne - Sometimes a guy just wants to kick back and shoot the holy heck out of everyone. Max Payne lets you do that and lets you do it with a modicum of style. There is something almost ballerina like that ...
$12.17
Max Payne 2: The Fall of Max Payne - Max Payne: The Fall of Max Payne is an excellent game with an engrossing storyline and good game mechanics. It's not too difficult for someone with some first person shooter experience but the gorgeo...
$14.97
Tiger Woods PGA Tour 06 - This game has gotten so much better over the years. There is a new battle mode where you try to beat the best ever with your created character. But you had better have a lot of time on your hands. The...
  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!
Buy.com:$10 off $200 valid in our Computers, Software, Home Networking, Digital Cameras and Electronic Stores! exp 06/30/09