IP to Country Module

nice job sugree

I was at Drupal and I saw this http://drupal.org/files/fosdem-big.jpg . The last word pertains to your IP-to-country module. Nice work. These days it's a very nice feature to have. Good job my man! larry

eu and gb flag for IP to Country Module

Thanks to Larry. He has just produced the missing flags, eu.png and gb.png, and sent them to me. eu.png has been resized to 14x14 while gb.png is just a copy of uk.png. Now ip2cc should have all flags.

View permission in ip2cc module

ip2cc module could help anyone to know where the poster was in term of country, IP address and network name. Anyway, this information may not be publicly accessible by anyone, instead it should be accessible by authorized persons. Since I forgot this feature at the time I wrote it, I have just noticed this missing feature when I want to implement a site for publicly offering image hosting service free of charge. As you might know, most image hosting services are heavily used for storing images to show in webboards. Some images are inacceptable due to copyright law or TOS violation by any reasons. In worst case, police might ask for the address of the poster. They just want to know his/her IP address. However, normally this information should be hidden to keep each image posted by anonymous user as long as nobody reports TOS violation.

ip2cc supports displaying flag in node's link area

According to the flag in comment’s link area, now ip2cc is able to display flag in node’s link area also. These 2 features was suggested by Larry. The use of these capabilities, pointed out by Larry, is to verify the location of the visitor in E-Commerce sites.

What to see a demonstration? See below. You should see I am currently in Thailand.

ip2cc supports displaying flag in comment's link area

Larry asked me how to use ip2cc module. This is very interesting question. ip2cc module generally just provides APIs to obtain location of given IP address programmatically but useless for end-user. He also inspired me to show flag for each post or comment. That"s why I quickly said thank to him and added this wonderful and useful functionality.

You could update the code to the latest one in CVS and then go to admin/settings/ip2cc to enable this function. If you want to see how it look like, check it out here.

Missing UK in ip2cc module

I have just found that ip2cc module doesn"t know the country of all IP from United Kingdom. The reason is ISO3166 used GB to identify United Kingdom but IANA used UK instead. To fix this problem, I added UK to iso3166.mysql so it will find the right country successfully.

Please update iso3166.mysql and apply it again.