Home > Questions and Answers > General Questions

Geo-Location script? "Hello user, you are located in [location here]" (4)


07-14-2011 09:49 PM #1 mediumlebowski (Member)
Geo-Location script? "Hello user, you are located in [location here]"

Hey guys
I'm using a script I stole from some lander "http://promos.fling.com/geo/txt/location.php" it's pretty simple I just paste it into the html flanked by script tags and it displays "New York, NY"

However, let's say I just want it to say "New York" or just want the state to appear as "NY"

How would I do that? There must be a script out there.


07-14-2011 10:11 PM #2 wish (Member)

Check out http://j.maxmind.com/app/geoip.js


07-14-2011 10:16 PM #3 chase (Member)

See attached.


07-15-2011 01:31 PM #4 eliquid (Member)

there are several ways to do this, from Maxmind free and paid, to google api, to even using fling.com and some code they give you. There are even a few others, just google


Home > Questions and Answers > General Questions