WordPress 2.0 & Shortstat Plugin

For WordPress 1.5, I had done some changes to Jeff Minard’s Shortstat plugin and since I recently installed WordPress 2.0 on my personal site, and since Shortstat 1.3 still works for WordPress 2.0, I figured I would go ahead and redo the color scheme and make it fit in more with WordPress 2.0′s new backend colors.

For more detail on the original changes see my original posting of a Custom Shortstat Plugin.

WordPress ShortStat Plugin in Blue

If you like the blue scheme you can download the plugin with the complete changes here:

wpshortstat.blue2.txt

Or if you like the color scheme and want to disable the IP lookup feature as well, download the complete changes here:

wpshortstat.blue.nolookup.txt

You can copy and paste the code into the Plugin Editor or rename the file to wp-shortstat.php and upload it to your server.

Since WP-Shortstat stopped working on WordPress 2.0.1, these custom versions are now based on HappyArt Blog’s modified wp-shortstat. My CSS changes were added by HappyArt Blog to his version, so wpshortstat.blue2 is the same as his plugin. For the lastest version go HappyArt Blog.

19 Responses to “WordPress 2.0 & Shortstat Plugin”

  1. Mark
    January 9th, 2006 15:11
    1

    I tried installing and activating your Blue2 version of WP-ShortStat on my 2.0 dev blog, but it did not work. On the ShortStat page, all I’ve got is 1 box which has this error:
    Fatal error: Cannot access empty property in /var/www/wp-content/plugins/wpshortstat_blue2.php on line 771

  2. JBagley
    January 11th, 2006 09:13
    2

    I also got an error trying to install your version on WP 2.0

    Fatal error: Non-static method wp_shortstat::maybe_create_table() cannot be called statically in /wp-content/plugins/wp-shortstat.php on line 83

  3. WKD Webmaster
    January 11th, 2006 19:53
    3

    What version of PHP and Apache are you running WordPress on? I think the problem is PHP 5. On PHP 4.4.1 and Apache 1.3.34, it works. Even The WordPress Codex has it on the 2.0 compatibility list. Did you try the original WP-Shortstat plugin first?

  4. tooltonic
    January 25th, 2006 09:05
    4

    Fatal error: Cannot access empty property in /var/www/wp-content/plugins/wpshortstat_blue2.php on line 771

    -> replace in line 771:
    ($wpss->$tz_offset+1):$wpss->$tz_offset)*3600)
    with
    ($wpss->tz_offset+1):$wpss->tz_offset)*3600)

    tooltonic

  5. mark
    January 25th, 2006 11:28
    5

    Thanks for the tip tooltonic, that fixes it for me. :)

  6. Rob
    February 3rd, 2006 07:25
    6

    I have been using my own modified version of wp-shortstat. I just updated to WP2 yesterday, and it stopped logging. The stats displayed fine, but it just stopped logging new visits. It recreated the tables after I dropped them. I went back to the original program, and it didn’t log stats either. I tried your program, and got the same thing.

    Any ideas? Did something chnage in WP2 that affected the tracking hook?

    I was thinking of adding a logging mechanism to log whether track function even gets hit at all.

  7. WKD Webmaster
    February 3rd, 2006 07:59
    7

    The 2.0.1 Update to WordPress killed it for me as well. On 2.0 it was working fine. I think everyone is having the same problem who upgraded this week to the new update.

  8. Rob
    February 3rd, 2006 08:26
    8

    I am glad it is not just me. I am assuming a bug in 2.0.1? Mabye they goofed up the shutdown hook?

  9. WKD Webmaster
    February 3rd, 2006 09:54
    9

    It looks like WP-Shortstat still conflicts with the Google Sitemap plugin.

    It looks like modified version works though.

  10. Rob
    February 3rd, 2006 10:27
    10

    I will try new version when I get home. I tried deactivating the sitemap plugin. No logging. So I deactivated all the plugins except shortstat, still doesn’t seem to be logging. Maybe there is more to it than the sitemap conflict, and new version fixed it.

  11. WKD Webmaster
    February 3rd, 2006 11:53
    11

    I went ahead and changed the modified versions here over to HappyArt Blog’s version.

  12. Rob
    February 3rd, 2006 17:56
    12

    The only thing that needed to be chnaged was commenting out the is_admin_page() check:

    // test is not correct, because sitemap plugin loads admin fucntions for standard pages, too
    // || is_admin_page()

    I did that on mine, now it works. Thanks for the help WKD!

  13. Retro-PC » WordPress WP-ShortStat Plugin Fix
    February 6th, 2006 01:24
    13

    [...] The plugin is by Jeff Minard and based work by Shaun Inman. When I noticed the plugin wasn’t working I Googled it. I found a fix at Happy Arts Blog but had a problem downloading the zip file. So checked Google again and found a copy at WebKeyDesign that included the fix and modified the CSS to match the style of the WordPress 2.0.1 admin panel. It worked immediately and looked great too. [...]

  14. More updates for the wp-shortstat plugin · Happy Arts Blog
    February 6th, 2006 04:27
    14

    [...] changes from WebKeyDesign included: changed CSS to match WP2 theme (http://www.webkeydesign.com/107/wordpress-20-shortstat-plugin/) [...]

  15. WP-Shortstat fix at blimmer
    February 6th, 2006 06:47
    15

    [...] Update: There is a similar fix for wp-shortstat @ WebKeyDesign with a blue color scheme to fit in WordPress 2.0’s admin page. Markus Kämmerer from HappyArts has apparently updated his version with the new color scheme from WebKeyDesign so there’s really not much difference between the 2. [...]

  16. Solutions Log » Blog Archive » Functional WP_Shortstat
    September 20th, 2006 03:07
    16

    [...] The official wp_shortsat page gives you a version that no longer works with WordPress. Get a good one here. It’s even blue to match the rest of WP Admin. [...]

  17. Nehemiah
    November 17th, 2006 12:18
    17

    Does anyone know the name of the wordpress plugin that creates a list of your posts in a category instead of just displaying them one after the other? I want it so that when someone clicks on a category they just get a list of posts from that category.

    I'm sure Ive seen one…and sifting through the WP site is a nightmare

  18. WKD Webmaster
    November 17th, 2006 14:40
    18

    I’m not sure about a plugin, but you could try referencing this WordPress Forum post.

  19. antiquarian books
    December 11th, 2008 08:17
    19

    Thank you for this information. :)

Leave a Reply