Version 2.7 of Search Meter, my free WordPress search statistics plugin, is now available. I have added four often-requested features:
- Duplicated recent searches are shown only once in the Recent Searches plugin
- You can now specify a list of filter words. Any searches containing these words will not show up in the recent and popular search widgets, even if the searches were successful
- Search links in the widgets will work correctly whether or not fancy permalinks are enabled
- The blog administrator can decide who is allowed to see full statistics: all logged-in users, authors and administrators, or administrators only
This version of Search Meter requires WordPress 2.3 or later. If you are still using an older version you should probably upgrade anyway, otherwise you can always use an older version of Search Meter.
Let me know how the new features work for you. If you have any comments or questions, just add a comment to this page.
I got an error that array_key_exists only works with arrays and objects. I fixed it, you may wanna replace the function with mine:
// This is here to avoid E_NOTICE when indexing nonexistent array keys. There's probably a better solution.
function tguy_sm_array_value(&$array, $key) {
if (is_array($array) || is_object($array)) {
return array_key_exists($key, $array) ? $array[$key] : null;
} else {
return null;
}
}
I haven’t tested it much, but I assume this should work as you intended it.
BTW: Thanks for this plugin, I’m already using it for years!
Works wonders for our blog. With your plugin, we were able to see what our visitors are searching and we try to come up with blog posts regarding those searches.
Keep up the good work!
Hi Bennett,
Currently have 2.7.3 of the plugin installed on http://babiesgiftideas.co.uk/ and using “fancy permalinks” of just %postname%. However, the searches featured in the right hand widget on the site are not displaying correctly. Any ideas ?
Thanks
mike
@Mike, it seems that it’s difficult to correctly handle spaces in search terms in every case. Thanks for your details — I will see if I can isolate the problem.
Forgot to add, using wp 3.1 and site using genesis framework with serenity them from studiopress.com if it makes any difference. Hopefully you can resolve as the plugin is excellent when it works and would be a shame to have to disable….
@Mike, a WordPress bug is the cause of this issue. It should be fixed in WP 3.2, but I will see if I can implement a workaround in Search Meter before that.
Thanks for the update Bennett.
Hi Bennett, Any update on this ? Still doesnt seem to be working under WP 3.1.2…
Hmm, I was hoping 3.2 would be out soon. Perhaps not. I haven’t had much chance to investigate recently but I am still hopeful.
This is one of only few wordpress plugin that bring tons of money pouring in.
Really appreciate your work.
I stick to last wp version that works in order to retain this plugin works as expected, until further patch were available.
-nobody just thanks
Hi Bennet,
Wondering if you had managed to work a patch at all yet..
I am testing a new mini-plugin to fix the WordPress bug. It’s impractical to fix it completely but it should improve matters until WP 3.2 is released in about three weeks. I will send you the plugin when I think it works!
I’ve created Search Fixer, a plugin that patches WordPress so fancy search URLs work properly. With Search Fixer installed, the Search Meter widgets should finally function correctly.
http://www.thunderguy.com/semicolon/2011/06/08/search-fixer-wordpress-plugin/
Works a treat 🙂 Thanks Bennett, you’re a legend 🙂 Good job.
Hi Bennett,
Just noticed that it’s not working as hoped. If you have a look at http://BuySportswear.co.uk and search as normal for nike golf polo shirt, then that produces results, however the link that your plugin products with search fixer does not return any results ? Is it searching for “nike golf polo shirt” as a complete phrase rather than occurence of those words ?
@Mike, you are right. Search Fixer hooks into WordPress after the search terms have been split into words — can’t reliably do it any earlier. As a result, searches are full-phrase searches rather than word searches. I’m still trying to figure out ways to improve this. It looks as if WordPress 3.2 will not include the fix, so I will try to improve Search Fixer and Search Meter to take up the slack. Stay tuned.
OK, I have updated Search Fixer so it should work as expected now. Please try it out!
Hi Brett,
Seems to work fine on a number of sites Im using it on now – many thanks for sorting this.
On another note, is there a way to display the output of the Popular searches widgets in a seperate page ? I’d like to have these links on a seperate page so that google will crawl and index the search results, but i dont want to put them in the sidebar…..
Cheers
Mike
Some searches say they’re returning 0 results when I know for a fact that results exist. Why would this be?