Title: LOG SEARCHES?
Last modified: August 30, 2016

---

# LOG SEARCHES?

 *  [CraftyMc](https://wordpress.org/support/users/craftymc/)
 * (@craftymc)
 * [11 years ago](https://wordpress.org/support/topic/log-searches/)
 * Hey, Is there anyway to perhaps log the IP or geolocate someone who matches a
   search?
 * Basically I’m using PD for a vin / number check database and i’m wondering if
   it’s at all possible to log the search if someone makes a match / correct search.
 * The database is set so that records can only be found if searched for by the 
   correct unique sequence.
 * Is there anyway to log the IP or other such data should someone make a match /
   correct search?
 * Kind Regards,
 * Crafty
 * [https://wordpress.org/plugins/participants-database/](https://wordpress.org/plugins/participants-database/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [11 years ago](https://wordpress.org/support/topic/log-searches/#post-6199848)
 * Yes, it’s possible, but there isn’t anything like this built into the plugin.
   You’d have to put some code into a custom template for the results list that 
   saved the info. You may also want to create some way of viewing or interacting
   with the log. All of this requires some coding skill.
 *  [kinna28](https://wordpress.org/support/users/kinna28/)
 * (@kinna28)
 * [11 years ago](https://wordpress.org/support/topic/log-searches/#post-6199953)
 * It’s possible to do something along these lines, but it’s not clear exactly what
   you want to do with this info. If you want to log the IP of whoever searches 
   for that VIN, are you intending to have it append the IP to the original database
   entry? Are you trying to store it elsewhere?
    How would the VIN and IP need to
   be matched up and how would they be accessed later? I wonder if it’s possible
   to automatically update a hidden (initially empty) field when it’s displayed 
   in search, possibly with the [PHP Superglobal](http://php.net/manual/en/language.variables.superglobals.php)
   SERVER:REMOTE_ADDR which is referenced about 3/4 of the way down the page here:
   [https://wordpress.org/plugins/participants-database/other_notes/](https://wordpress.org/plugins/participants-database/other_notes)
   If that were possible, it could state the IP last used to access the record. 
   That could be paired with a hidden field in the sign-up form that records the
   IP used to create the record in the first place. Sort of a tangent, sorry.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘LOG SEARCHES?’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [geolocate](https://wordpress.org/support/topic-tag/geolocate/)
 * [log](https://wordpress.org/support/topic-tag/log/)

 * 2 replies
 * 3 participants
 * Last reply from: [kinna28](https://wordpress.org/support/users/kinna28/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/log-searches/#post-6199953)
 * Status: not resolved