does quicksearch plugin write a log?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
konus
Regular
Posts: 334
Joined: Mon Jun 16, 2008 1:57 pm
Location: Dresden, Germany
Contact:

does quicksearch plugin write a log?

Post by konus »

Hi,
this is not a feature request, just a question :P
Does the quicksearch plugin create some kind of log, so that I could lookup the search queries and find out, what my visitors where searching for (and maybe didn't find)?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: does quicksearch plugin write a log?

Post by garvinhicking »

Hi!

No, it doesn't log the queries. However, in some cases the search is sent via a HTTP GET request, so you might be able to find this in your Apache request logs!

HTH,
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/
konus
Regular
Posts: 334
Joined: Mon Jun 16, 2008 1:57 pm
Location: Dresden, Germany
Contact:

Post by konus »

Ok thank you, I will have a look there.
konus
Regular
Posts: 334
Joined: Mon Jun 16, 2008 1:57 pm
Location: Dresden, Germany
Contact:

Re: does quicksearch plugin write a log?

Post by konus »

looking into the log is not very comfortable.

I would like to change it into a feature request: would it be possible to write date, time, ip-adress and searchterm into a csv-file?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: does quicksearch plugin write a log?

Post by garvinhicking »

Hi!

I've committed a temporary hack:

http://svn.berlios.de/viewcvs/serendipi ... ision=2529

If you patch this into your functions_entries.inc.php file and set the static variable $log_queries = true, you should get a "queries.csv" file inside your "archives" subdirectory.

For the future, making this a config option would be nice, but I don't have the time right now to add the language strings, config options, etc. to it.

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/
konus
Regular
Posts: 334
Joined: Mon Jun 16, 2008 1:57 pm
Location: Dresden, Germany
Contact:

Re: does quicksearch plugin write a log?

Post by konus »

Hallo Garvin,
vielen Dank für die extrem schnelle Hilfe!
Ich weiß, warum ich nicht WP verwende :-)
Post Reply