I have written a first draft for a 'Recent Search Queries' block for trip_search (see patch).
There's lots of work to be done and I have some items on my TODO list I want to implement before this gets submitted, but here's a first version of it.
Please comment of whether this should go into CVS and/or what I can improve.
TIA, Uwe.
| Comment | File | Size | Author |
|---|---|---|---|
| recent_search_queries_block.patch | 2.46 KB | Uwe Hermann |
Comments
Comment #1
moshe weitzman commentedi very much support this idea.
i think the required pemission should be simply 'administer trip_search'. also, i'd like to see all queries go to a dedicated table, instead of doing a regex against watchdog table. then we'd like a table view of recent queries on an admin page.
Comment #2
Arek commentedcould you write it for drupal 4.6.0? I'm trying to do it by myself but I'm not good in php.....
Comment #3
joel_guesclin commentedthis is a very good idea - in fact it would be good to combine it with extraction from the referrals so that you could get Google searches to show up in the same table.