Plugin for top search?

Creating and modifying plugins.
Post Reply
MagicV
Regular
Posts: 159
Joined: Wed Apr 11, 2007 8:44 am
Contact:

Plugin for top search?

Post 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?
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plugin for top search?

Post by garvinhicking »

Hi!

Do you mean the google_last_query sidebar plugin?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MagicV
Regular
Posts: 159
Joined: Wed Apr 11, 2007 8:44 am
Contact:

Post 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*
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MagicV
Regular
Posts: 159
Joined: Wed Apr 11, 2007 8:44 am
Contact:

Post 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]
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply