Note:
I have discontinued Counterize2 in favor of a brand new statistics plugin called FireStats.

Intro - What is that, another counterize?
I used Counterize for quite some time, recently I added a featute (bot hunting) to it, and sent the author a patch.
a few weeks later, I posted a comment in his blog, asking if he got the patch.
few more weeks have passed without any response, and I have decided to fork the project, so others will benefit from the work I have put into it.The new project is called Counterize 2, and is based on Counterize code, however, there are several significant improvements, and I plan to add quite a few more features in the near future.

Latest version 1.1. Download

New installation:

  • Unzip into wp-content/plugins
  • Activate from plugin menu

Migration from the old counterize:

  • make sure to remove counterize.php and its image files from the plugins directory (you can move the to a different directory to be safe)
  • If you used a very old version of counterize, be sure to remove the call to counterize_add() from your header.php file (wp-content/themes/YOUR_THEME/header.php)
  • Unzip into wp-content/plugins
  • Activate from plugin menu

Major features

  • Displays Browser and OS icons for easy recognition. (Click to enlarge)
    browser and os icons
  • botlist.txt file that can be easily edited to add support for more bots.
  • Can purge bots from database. (Click to enlarge)
    purge bots
  • A single plugin version that supports multiple languages.

Languages

  • English
  • Hebrew

ChangeLog

1.1 - Minor bug fixes (Thanks to Greg)

  • Fixed malformation in the dashboard.
  • Fixed missing images in some of the graphs.

1.0 - First release

  • Restructured plugin, it now belongs in a plugins/counterize/ directory.
  • Added botlist.txt file, this allow easy addition of new bots without messing with the code.
  • Added bot termination functionality to help clean up the database from bots.
  • Added OS/Browser image based on a modified version of browsniff plugin (included)
  • Added internationaliztion support. future translation will be easy using the standard gettext style translation. see counterize-en_US.po etc.

Translation should be easy, just copy counterize-en_IL.po to your own file (based on your blog locale), and use a tool like poedit or gettext to translate it. the web is full of help about it.

Please send me your translations so I will add them to future releases

7 Responses to “Counterize2”

  1. Greg UNITED STATES Windows XP Mozilla Firefox 1.5.0.6   Says:

    I have made some modifications to this plugin that fixes some issues such as the malformation on the dashboard and the missing images on the graphs. You can download a copy at http://www.taac.us/counterize.rar

    Thank you for all your hard work on this plugin!

    Greg

  2. omry Debian GNU/Linux Mozilla Firefox 1.5.0.4   Says:

    Greg, Thanks alot.
    Your fix in included in 1.1.

  3. Blogabundo SPAIN Windows XP Mozilla Firefox 2.0.0.1   Says:

    I’ve found an error while using the plugin.

    Fatal error: Call to undefined function: pri_browser_images() in /home/chs/gdrlasnieves.blognautas.com/home/html/wp-content/plugins/counterize/counterize.php on line 1517

    I’ve found a version of browsniff.php in http://priyadi.net/archives/2005/03/29/wordpress-browser-detection-plugin/ but this function is not provided.

    Any idea? What am I doing wrong?

    Thanks

  4. Omry ISRAEL Debian GNU/Linux Mozilla Firefox 1.5.0.7   Says:

    This plugin is no longer supported, please use FireStats.

  5. Omry ISRAEL Debian GNU/Linux Mozilla Firefox 1.5.0.7   Says:

    also - it seems that I missed the browsniff plugin in the second zip, you can get it from the 1.0 file.
    in any case, I strongly suggest that you try FireStats.

  6. Echo INDONESIA Windows XP Mozilla Firefox 2.0.0.9   Says:

    I still use 0.53, 2 days ago i found problem first page of site is gone. today i found the problem if i use

    the old code

    $sql = ‘SELECT DISTINCT IP FROM %sCounterize’;
    $sql = sprintf($sql, $GLOBALS[’table_prefix’]);
    $wpdb =& $GLOBALS[’wpdb’];
    return count($wpdb->get_results($sql));

    my code: changed SQL and return value.

    $sql = ‘SELECT COUNT(DISTINCT IP) FROM %sCounterize’;
    $sql = sprintf($sql, $GLOBALS[’table_prefix’]);
    $wpdb =& $GLOBALS[’wpdb’];
    return $wpdb->get_var($sql);

    it is also happen another code using return count($wpdb->get_results($sql)) with the SQL is SELECT DISTINCT …

  7. Omry ISRAEL Debian GNU/Linux Mozilla Firefox 2.0.0.8   Says:

    Hi Echo,
    This plugin is no longer supported, please use FireStats.

Leave a Reply