These are some readers' responses. Read the full article to see what all the fuss is about.
-
Popular
Categories
- .Net & C# (1)
- C++ (5)
- Coding (3)
- Copyright, etc. (3)
- HTML/CSS (2)
- Java (14)
- JavaScript (5)
- JUnit (3)
- Recommendations (9)
- Risks (6)
- Software projects (2)
- SQL (4)
- Testing (6)
- Tools (4)
- Web (4)
- Web publishing (16)
- Windows (1)
- WordPress (27)
554 responses
Other comment pages: [1] 2 3 4 5 6 7 8 9 10 11 … 28 »
Thanks for the great plugin - I made 2 small changes to it, though -
1) added ,1 to the ORDER BY in tguy_sm_stats_table so that the terms would be alphabetized after they were sorted by decreasing hits. I’d noticed that I was showing different results between the 3 queries (1 day, 7 days, 30 days), and just wanted to tidy them up a bit when they all held the same results.
2) I moved the plugin from the options page to the dashboard, as I felt that since this was an information-only page and didn’t have any options to set that it would be better placed with other information-only pages.
function tguy_sm_add_admin_page() {
// if (function_exists('add_options_page')) {
// add_options_page('Search Meter', 'Search Meter', 8, basename(__FILE__), 'tguy_sm_options_page');
// }
// 09/06/05 GK - move it from options page to dashboard, since it's an informational display only
add_submenu_page('index.php', 'Search Meter', 'Search Meter',1, __FILE__, 'tguy_sm_options_page');
}
Thanks again!
Kaufman, thanks very much for your comments. Your
order bytweak is simple but effective — I should have thought of it myself. And I did consider putting the Search Meter stats in the Dashboard, but I personally don’t like using the Dashboard because the main Dashboard page takes too long to load! (It’s all those RSS feeds I suppose.)However, I think you are right; it is a more logical place to put it. I know there are plugins that can change the Dashboard main page so it’s not so slow — maybe I should use one.
I have updated the plugin to incorporate these suggestions. I’ve credited you in the source, so if Search Meter becomes famous then you will too!
Cool, thanks, Bennett!
I agree about the dashboard taking too long to load - I’ve gotten to where I just have bookmarks for the different sections that I need - that way I rarely have to actually HIT the dashboard itself. (For instance, I also use a modified version of Short-Stat, which sits on the dashboard as well. ) Perhaps an upcoming WP release would allow us to turn off the RSS feeds. I’ve seen some plugins to do that, also, but it looks like you have to modify the page itself. I’m still rather new to WP, so I don’t want to change too much of the core pages as I’m not yet clear on how those modifications will carry over during WP upgrades.
Hi Bennett,
The Search Meter is a great tool to have, it’s one of the first plugins I installed. I do have 1 question though: Can we purge search results and start over?
And as to your aversion to dashboard because of all the feeds, you should consider installing this hack, it makes the dashboard a lot more useful without all the fat: WordPress 1.5 (1.5.1 and 1.5.2) Hack: How to trim the fat resource hogging Admin DashBoard (Version 2)
[Edited on 18 September by Bennett: edited the link above to fit on the screen]
Darrell, that’s an excellent idea. Currently the only way to purge the stats is to wait 31 days for al the stats to age. So you need to be patient.
However, I realise that in today’s fast-moving world we need instant results, so I will add a Search Meter options page with a “Reset statistics” button. I very much hope I will have time to do this sometime this coming week.
Hi Bennet,
Firstly, great plugin - it’s going to be really handy.
One question I have, is how easy do you think it would be to make it so that you can list all the succesfull most recent searches made on the site in your sidebar and link through to those results?
Where is the data pulled from? Is there a simple output query I could add to the sidebar to get the list?
Cheers
Oliver
Oliver, I think that would be fairly easy. Search Meter saves search information to its own database table. I’ll see if I can find the time to add a “popular searches” template tag — a nice idea.
One little suggestion : replace every <? with <?php and avoid PHP’s short syntax like <?=$a?> to ensure maximum compatibility on any PHP enabled webserver.
Thanks Ozh, that is something I should really do. I am probably not as careful as I should be about this sort of thing — I do avoid PHP 5+ and MySQL 4.1+ features, but other than that, the code only works if you’re fairly current and have all the bells and whistles on (like short PHP tags). I have added this task to my steadily lengthening list.
Other comment pages: [1] 2 3 4 5 6 7 8 9 10 11 … 28 »