Geo Location Service
This is an open discussion with no replies, filed under Extensions.
Search
Create an account or sign in to comment.
This is an open discussion with no replies, filed under Extensions.
Create an account or sign in to comment.
Quick Links
Symphony • Open Source XSLT CMS
--with-xsl
)
I am trying to work with the Geo Location Service Plugin written by Joseph Denne. (http://getsymphony.com/download/extensions/view/31849/)
I am having some difficulty in getting it to function.
Since I dont have a public IP on my development machine (although I am behind a NAT with a public IP) It tries to Geo Locate 127.0.0.1, obviously this wont work.
So I mocked up a quick test and if my IP is 127.0.0.1 I hard code my NAT Public IP. This works on my laptop in a simple php page.
<?php
if(isnull($ip)) { if ($SERVER['REMOTEADDR'] == '127.0.0.1') { $ip = "75.149.56.29"; } else { $ip = $SERVER['REMOTE_ADDR']; } }
echo "IP: ".$ip;
?>
So I went into
extension.driver.php
and made the change in lookup() from:if(isnull($ip)) $ip = $SERVER['REMOTE_ADDR'];
to
if(isnull($ip)) { if ($SERVER['REMOTEADDR'] == '127.0.0.1') { $ip = "75.149.56.29"; } else { $ip = $SERVER['REMOTE_ADDR']; } }
and I still get just
1044317423
when I debug=xml
What else am I missing?