CodeCanyon

GeoIP Locator

  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
booheadinc says
Purchased

Sure, I added my key and it worked a bit but the order has changes so everything is showing correctly now, just not in the correct order :)

Please add an alternative as a backup, I actually have scripts for 5 more alternatives, I just needed them integrated in to your API :) I will pay for it :)

-Sam

2 years ago
Author
arl1nd arl1nd replied

Please email me about your alternatives

2 years ago
  • Has been a member for 1-2 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 100 and 499 items
  • Austria
janechtholz says
Purchased

Hi, thanks for this great script. When can I expect the new Update because my Site is now boken with the old Version because of change of the database.

Thanks!!

2 years ago
Author
arl1nd arl1nd replied

OK, I’ve just added the new version of GeoIP Locator. If you re-download the file from Downloads area, please note if UPDATE _NOTES.html file exists in the archived file, If so, then you have the latest version of GeoIPLocator which is 2.1.

2 years ago
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
sqinny says
Purchased

yea, same problem here, client is fizzing, lol :)

appreciate you’re working on it, but if you could give us an update it’d be much appreciated.

Cheers, Sqinny.

2 years ago
Author
arl1nd arl1nd replied

Thank you, I’ll do my best to get out the new version as soon as possible

2 years ago
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
sqinny says
Purchased

solution i’ve found; changing this line:

const API _URL = ‘http://ipinfodb.com/ip_query.php?ip=#REMOTE_ADDR#’;

in geoIPLocator.interface.php to:

const API _URL = ‘http://api.ipinfodb.com/v2/ip_query_country.php?key= &ip=#REMOTE_ADDR#’;

works for me for getting the countries back. you just need to make an account at http://www.ipinfodb.com and you get an api key to use.

Note: there’s a seperate file; ip_query.php which you can use which i believe brings back a fuller result set. this page shows more options: http://www.ipinfodb.com/ip_location_api.php

Hope this helps.

Sqinny.

2 years ago
Author
arl1nd arl1nd replied

OK, I’ve just added the new version of GeoIP Locator. If you re-download the file from Downloads area, please note if UPDATE _NOTES.html file exists in the archived file, If so, then you have the latest version of GeoIPLocator which is 2.1.

Thanks for your effort

2 years ago
  • Has been a member for 1-2 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 100 and 499 items
  • Austria
janechtholz says
Purchased

Hmm, thanks for that, but it won’t work for me!

I registered and get the API and changed it in the File, but there were no results :o(

Can anybody help? Thanks Jan

2 years ago
Author
arl1nd arl1nd replied

Yes, I’ve just updated the script and the new version can be downloaded later as CodeCanyon approves my update. Please be patient for a while.

If you want to make sure it is working, please re-check the demo site of GeoIP Locator:

http://arlindnushi.dervina.com/geoiplocator/

Or try this one:

http://arlindnushi.dervina.com/geoiplocator/examples/1_very_simple_example.php

Have a nice day

2 years ago
Author
arl1nd arl1nd replied

Hey mate, I have an idea. If you can’t wait till the new version is approved, please send me an email with your ftp infos, and I’ll upload to your server the new version.

I think this is more secure way to make sure you get it, and prevent illegal spreading of my script.

2 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • Sweden
translegal says
Purchased

Dude, i am really dissapointed with your documentation and script. I’m not gonna make a big deal from this, just payed $6 but still if i buy a script i expect it to be up and running in like 5 minutes….

Anyway i need this to work ( thats why i bought it ) so i’m hoping for your help.

I followed all instructions which by the way are spread out of through a relly confusing and non logical folder structure; i promise i will stop complaing now….

Entered the API Key from ipinfodb.com Entered the API Key from Google Maps Entered my MysqL Info

and what now

i tried all examples in the src_v2/tempalates folder 1 to 4 because the index.html files are empty i opened the struct.php files, which causes error messages ….

Then i tried; to some how create the object myself but could not find any documentation about that….

In your online Examples & Implementation you have:

$geoip = new GeoIPLocator(“127.0.0.1”); // IPv4 Format

and

$geoip->showDetails(“template_3”); // Three built-in default templates

so i need to require/include the GeoIPLocator.class.php File took another couple of minutes which file incudes the GeoIPLocator class. You should provide that line

require_once( ‘GeoIPLocator.class.php’ ); $geoip = new GeoIPLocator(“213.55.76.19”); // IPv4 Format $geoip->showDetails(“template_3”); // Three built-in default templates

Then another problem is if i enter an IP Adress like

213.55.76.19

it should be

Lc Sheraton Addis, ET Africa/Addis_Ababa

but instead i get following 3 error messages…

Notice: Undefined index: in /Applications/MAMP/htdocs/test/geoip/src_v2/GeoIPLocator.class.php on line 304

Notice: Undefined index: in /Applications/MAMP/htdocs/test/geoip/src_v2/GeoIPLocator.class.php on line 309

Notice: Undefined index: in /Applications/MAMP/htdocs/test/geoip/src_v2/GeoIPLocator.class.php on line 314

After looking into your code it’s pretty obvious why:

if( $country[ $country_name ] ) { $src = ”$country_name.png”; } else if( $country[ $region_name ] ) { $src = ”$region_name.png”; } else if( $country[ $city_name ] ) { $src = ”$city_name.png”; }

.... so there is no country related to that IP Adresss why don’t you just use:

if ( isset( $country[ $country_name ] ) )

or

if ( array_key_exists( $country_name, $country ) )

then you won’t get any error and instead you could capture the “error/missing data” elegant with not available….

I dont know dude but this script feeld half done or kind of semi-proffessional….

2 years ago
Author
arl1nd arl1nd replied

Hello sir :)

First of all, let me thank you for purchasing this script.

It’s really weird because you are the first of 96 other purchasers of this script and no one of them complained in this way. The buyer of this script or lets say exactly this class is supposed to know Object Oriented Programming and by that there is no need for wide-range explaining of API about how this works, at least this is just three hundred lines file, and to document every single line its not big deal, at least when the price of this script is as low as you’ve seen before – $6.

Also, as another hint before buying this script was in preview site, which you may be informed about main functionality and the code how’s that getting to work.

Every buyer of this script predicted the passing work, and manners of how they can use GeoIP Locator to get it to work for their purpose.

In the below comment you’ll find my recommendation about solving your problem.

2 years ago
Author
arl1nd arl1nd replied

IP location is not always very accurate because you probably read data accuracy, but I’m going to remember you again:

Data accuracy Over 99.5% on a country level and around 80% on a city level for the US within a 25 mile radius. The database used for this API is compiled from the free Maxmind CSV database (Geolite City) and rearranged with many scripts.

Second issue:

I saw that you are using MAMP , Mac based Web Server.

So, the error you are getting is just a code warning, that no-one cares, its just not the perfect way that PHP wanted to implement/declare some lines/rules but it works perfectly so without any doubt I recommend you to put this line in the top of PHP file, and you won’t get that error anymore.

error_reporting(E_ERROR);

So this will just report all errors, but not warnings.

And by the way, I am PHP Senior programmer involved in Governmental Projects here in Kosovo, and your opinion/doubts about my skills really doesn’t make sense, because at the semantic of this script everything is right and the number of purchases and feedback proves it, just read the above comments.

Its sure that this script could be improved to be more fine, but the way it is (as six-dollar item) people love it.

2 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • Sweden
translegal says
Purchased

Thanks for the reply; well somebody always has to be the first.

If you can invest some minutes to help me out it would be great and maybe you can you this to improve it for your next 96 customer…

What i have done so far:

- put in all the API codes into the GeoIPLocatorInterface - put in all my mysql information and created the database/table according to the requiret names - created a index.php file in the src_v2 folder with following content:

<h3>START</h3> <?php // require_once( 'GeoIPLocator.class.php' ); $geoip = new GeoIPLocator( "87.2.211.49" ); // IPv4 Format $geoip?>showDetails("template_3"); // Three built-in default templates // ?> <h3>END</h3>

This is my result, when i open the index.php file in my browser:

START 1 Notice: Undefined offset: 10 in /Applications/MAMP/htdocs/test/geoip/src_v2/GeoIPLocator.class.php on line 186

Notice: Undefined index: 09 in /Applications/MAMP/htdocs/test/geoip/src_v2/GeoIPLocator.class.php on line 304

Notice: Undefined index: in /Applications/MAMP/htdocs/test/geoip/src_v2/GeoIPLocator.class.php on line 309

Notice: Undefined index: 45.2 in /Applications/MAMP/htdocs/test/geoip/src_v2/GeoIPLocator.class.php on line 314 09 IP Address 87.2.211.49 Country Name 09 City Name / Region Name 45.2 / Unknown END

To ensure that this problem is not trelated to that i’m working on my localhost i uploaded the folder src_v2 to the root of my server and got the same errors.

To be sure that the ip is ok i copied and pasted the IP into your app http://arlindnushi.dervina.com/geoiplocator/ip_lookup_example/

and yes it works….

Hopefully you can help me out!

best regards

2 years ago
Author
arl1nd arl1nd replied

Just one question, did you put this declaration

error_reporting(E_ERROR);

in the top of your PHP line of your script?

So if you did put that line you probably won’t get that error. I’m here again if your issue can’t be solved.

2 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • Sweden
translegal says
Purchased

Thanks – but turning off errors with will just tell the server not to echo the errors… and thats done in the server settings anyway;

My problem is that the script is not working either on my localhost where the errors are turned on or on the live server where the errors are turned off by default… I do not get any info at all – i get a blank screen…

http://www.translegal.com/geo_ip/src_v2/

<h3>START</h3> <?php require_once( 'GeoIPLocator.class.php' ); $geoip = new GeoIPLocator( "87.2.211.49" ); // IPv4 Format $geoip?>showDetails("template_3"); // Three built-in default templates // ?> <h3>END</h3>
2 years ago
Author
arl1nd arl1nd replied

translegal,

Thank you very much, now I’ve noticed that the changes/updates that I’ve applied in the src/ I didn’t do the same for src_v2/ as well, and you was right for that word “half done work” and I apologize about that, because it was careless by my side to verify that if properly works. I just tried the script in src/ and I’ve decided everything is right.

Once again, thank you, and don’t forget to PM me, I’ll send you the updated code via email because it takes some time for approval of new update, so I won’t let you wait.

2 years ago
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
photography4free says

Hi, would I be able to direct a page according to the found ‘town’ location? Cheers, Gray

1 year ago
Author
arl1nd arl1nd replied

Yes of course, this is possible.

Just let you know that not all IP’s have country/town information sometimes, but mostly have, so you must consider this.

The town name is defined on the main database (IPInfoDB.com) and you have to handle with it.

Have a nice day

1 year ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
jspicher says

Great looking script here… Do you need to subscribe to a service like maxmind to get this to work? Where does it look up the info for each IP from?

Thanks,

1 year ago
Author
arl1nd arl1nd replied

Yes you need to subscribe but not on maxmind but IPInfoDB.com, and all you need, is to configure API of your GeoIP Locator and then everything is done.

1 year ago
jspicher jspicher replied

That’s awesome, thanks dude!

1 year ago
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
photography4free says

Hi, I may buy this script. Would you assist if I run into problems installing/configuring it?

Thanx, Gray

1 year ago
Author
arl1nd arl1nd replied

Hi

Yes I would help you implement it. You also have tutorials/documentation and I don’t believe you need more help after reading documentation, however I am here and you can contact me.

1 year ago
  • Has been a member for 2-3 years
  • Bought between 100 and 499 items
  • United States
Avoli says

IP 171 .165.134.135 comes back Concord California… Should be Concord North Carolina

11 months ago
  • Has been a member for 1-2 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United States
  • Referred between 1 and 9 users
TheNeezioGroup says
Purchased

I bought this script a while ago and have been meaning to get around to installing it on one of my sites. Tonight, I decided to just go ahead and load it up to play around with it and I must say overall this is a pretty awesome script. Only a few things I noticed which might be of use to people.

1) The documentation only seems to mention getting and API key for Google Maps. You will also need to go and get one for the IPInfoDB system here: http://ipinfodb.com/ip_location_api.php

2) In the GeoIPLocator.class.php file under the “construct” function you need to change ”$ip” to ” $ip = ’’ ” to set $ip as blank if the parameter has not been passed to it. Otherwise you will get a PHP warning when using the “new GeoIPLocator()” function. The “construct” function will then see the blank ”$ip” and retrieve the remote address of the user.

3) Another PHP warning pops up around line 157 of the GeoIPLocator.class.php because the “curl_close($ch);” line is first used at line 154 so this results in line 157 trying to close and already closed resource.

Other than that I haven’t noticed any other problems! Hope this helps and again thanks for the awesome script!

10 months ago
  • Has been a member for 2-3 years
  • Bought between 50 and 99 items
avanzate says
Can it do this? http://www.e-moxie.com/

on the left footer.

9 months ago
Author
arl1nd arl1nd replied

Absolutely! Just notice that not always city name is available. So in these cases you should show country name.

9 months ago
  • Has been a member for 1-2 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
Eugo says
Purchased

Absolute junk. Doesn’t work and full of PHP warnings and errors. Documentation is also useless.

Quite frankly, I’m shocked that this was even approved by CodeCanyon. Do not buy.

6 months ago
Author
arl1nd arl1nd replied

It works with PHP 5 .2 or higher, and if you want to hide warnings you can disable it by php.

This item was added in the beginning of 2010 so it may not be as good as a newer items in the last months.

Despite all users, you are the first or second who complains with documentation, are you PHP rookie or what? What should you expect from me to do for you for only 6$?

You better pay someone else to do this job for you :D

6 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
suddenlyill says

Hello, I just bought your plugin. It would be nice if it did two more things: Instead of entering a url for each country, have a “reverse select” checkbox and input field that lets you enter a URL redirect for every country except one.

Also, I know you’re in the UK, but it would AWESOME if we could redirect based on a US state level!

4 months ago
Author
arl1nd arl1nd replied

Hi suddenlyill

Sorry, as I am not very good at english, I wasn’t able to understand the first question, can you explain it so I can figure it out?

I think that is possible to redirect in US state level, by just using region code, have you noticed it?

4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
suddenlyill says

Sure: I want to redirect every country except for the US. So, I have to enter a redirect for every country except the US. It would be easier if I could just enter the redirection URL once make it apply to every country except the US.

For example

*=http://redirect.url.com

US = http://mydomain.com

4 months ago
Author
arl1nd arl1nd replied

Oh now I get it. I have an item which does this job, Country Detector but you don’t need to buy that because GeoIP locator is much advanced so you may do it by only adding few lines code and make like it.

Do you have any idea how to do this?

4 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
gvworker says
Purchased

I am getting few times following error

“This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/documentation/javascript/v2/introduction.html#Obtaining_Key."

How I can get rid from this issue ?

4 months ago
Author
arl1nd arl1nd replied

Hi gvworker,

In order to remove that error, just empty the Goole API variable and you will not see that error, because Google maps now are supported even without API code.

If this doesn’t work for you I’ll find another alternative to avoid this.

Thanks for purchase

4 months ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
  • France
jafkettani says
Hello I would like to know if we can use your great script into iframe Facebook application for localized facebook pages see example http://www.facebook.com/cocacola?v=app_161193133389

idea is that based on user location we can build a facebook welcome page that show different page depending on user region if you know other idea for same result please advise

3 months ago
by
by
by
by
by