I’ve been using statpress (version 1.4.1) on this blog (wordpress 2.9.1), which is not at the root directory of the site (i.e., www.mattvsworld.com/blog instead of www.mattvsworld.com). The urls that the statpress code generates to access some of the plugin images (like browser icons, etc) appear to be based at the site root, rather than relative to the location of the blog. And I refuse to look at the stats without those little icons! Heh…
To fix it, any place you see:
SRC='/wp-content/plugins/".dirname(plugin_basename(__FILE__)).
in statpress.php you want to replace it with:
SRC='".WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)).
The archive linked to below contains a patch file which should work on statpress 1.4.1.
statpress_fix_imageurls.diff.zip
Cheers!
{ 1 comment… read it below or add one }
Thanks, worked like a charm!