Page 1 of 1

does quicksearch plugin write a log?

Posted: Wed Sep 10, 2008 10:10 pm
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)?

Re: does quicksearch plugin write a log?

Posted: Wed Sep 10, 2008 10:52 pm
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

Posted: Thu Sep 11, 2008 11:22 am
by konus
Ok thank you, I will have a look there.

Re: does quicksearch plugin write a log?

Posted: Wed Jun 17, 2009 1:43 pm
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?

Re: does quicksearch plugin write a log?

Posted: Wed Jun 17, 2009 2:18 pm
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

Re: does quicksearch plugin write a log?

Posted: Wed Jun 17, 2009 3:30 pm
by konus
Hallo Garvin,
vielen Dank für die extrem schnelle Hilfe!
Ich weiß, warum ich nicht WP verwende :-)