I am running a 6.x drupal site with Views 2 and the Location module, and I have installed the smart IP suite to determine the location of my visitors.
As it currently stands, if I put this code into a template:
print $_SESSION['smart_ip']['location']['zip'];
?>
I get a zip code in return that is pretty close to what I need.
What I would LIKE to do is, on pages where the exposed filter block for my search comes up, have that particular piece of information be the default value for the postal code field in the proximity/distance filter of Location.
I checked to see if I could use php in the default value field in the views proximity filter, but it does not allow me to do that. And I cannot simply use the Smart IP proximity filter, as it does not allow people to type in their own values, which is an important part of the search tool.
Basically, I am looking for the right way to intercept the exposed filter block before it is rendered, and modify the default value of proximity/postal code before presenting it.
Any help on how to do this will be greatly appreciated.
Read »








