[WP Plugin] HANA-XML-STAT

[WP Plugin] HANA-XML-STAT
0 votes, 0.00 avg. rating (0% score)

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/

, , , ,

  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)