search function

Creating and modifying plugins.
Post Reply
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

search function

Post by danst0 »

Hi,

is it possible to log the searches done with the search plugin? Is there a way to see those logs?

Thank you,

Daniel
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: search function

Post by garvinhicking »

Hi!

Yeah, one could write a simple event plugin that listens to the frontend_configure header, check if $serendipity['GET']['searchTerm'] is set and then log that variable to a file or database.

But you can also use a logfile analyzer; search requests are performed via GET, so it's contained in the logs and you could evaluate them...

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/
Post Reply