Page 1 of 1

Plugin for top search?

Posted: Fri Mar 21, 2008 6:44 am
by MagicV
Hi Folks!

I'm looking for a Plugin that can show the top search-strings of the actual month. Has anybody an idea?

Re: Plugin for top search?

Posted: Fri Mar 21, 2008 11:22 am
by garvinhicking
Hi!

Do you mean the google_last_query sidebar plugin?

Regards,
Garvin

Posted: Fri Mar 21, 2008 11:27 am
by MagicV
No, because this will only show the LAST search. ordered by date/time.
I want to show which search-string is typed most (e.g. with the number of searches that linked to the blog).

Du U understand what EI mean ? *fg*

Posted: Fri Mar 21, 2008 11:30 am
by garvinhicking
Hi!

Yeah, but that plugin could then be used as a foundation for patching :)

Regards,
Garvin

Posted: Fri Mar 21, 2008 11:42 am
by MagicV
:evil: you are kidding me, and EI will be unhappy :twisted: i spend 3 evenings with this boring plugin, and i don't understand where to jump into the code, thare are 2 possible code-points i wil see

1. generate_content_by_referrers_table
or
2. generate_content_by_vistors_table

which line is the right one?

A bigger problem is the select statement.
first i have to check wich year/month we have actually, then i have to select the correct data form my db, but the select "...where 'day' like '2008-08-%' will bring an empty answer from DB???

Whats wrong...???

When I found a way to select the data, then I will learn *fg* how to generate the right search-string in php, because i don't really know, how to generate the "2008-01-%" or "2008-03-%" to make the selct for the actual month of the year...


I guess, my sql-knowledge is poor, [/code]

Posted: Fri Mar 21, 2008 12:31 pm
by garvinhicking
Hi!

You're already on to it, just experment some more. After Easter I can tell you more if you haven't achieved it by then :)
select the correct data form my db, but the select "...where 'day' like '2008-08-%' will bring an empty answer from DB???
That should work. Execute your SQL query in phpMyAdmin and see if it works. You are not allowed to put quotes around "day", you do know that?

Regards,
Garvin