Ip2Nation for Drupal

This Ip2Nation module provides an API to access ip2nation database in Drupal. Actually, there is a module called ip2cc which does the same thing, but it exposes another Ip-to-Country database. Ip2nation database is better because it is optimized for queries (and so smaller and faster to use), so I made this module.

Another feature in this module is commenter’s information. You can show from which country a comment in your website is from. This is nice especially for social websites that have lots of users all around the world, or for personal blogs. Of course you can turn off this feature at will (it is, by default). If you know HTML you can put up country flags in the comments, too.

This module is for Drupal 5 only.

Installation

This module does not modify or add database schema in any way; but you need to download ip2nation database and install it (i.e. execute the queries). Do not change the table name even if you use Drupal table prefix facility.

After the module is uploaded and activated (as usual module installation) and ip2nation data is installed, go to Site configuration >> Ip2Nation to set the settings and check that the ip2nation data is installed properly. You should see your own country information there – if you don’t, or an SQL error occured, there is something wrong about your ip2nation data installation.

Country Flags for Comments

You can also put country flags for the comments – after you turn on commenter’s country information setting, you can set the HTML that will be shown in comments. So you can slap in e.g. <img src="files/flags/flag_@code.gif" title="from %country" />, upload the flags and voila! There is also alternative flags.

There are some country flags artwork in the internet. My copy works nice but I forget where I got it. If someone feels familiar to this flags, please let me know so I can put acknowledgements here!

Anyway…

If you have comments, suggestions, feature request etc, feel free to post a comment. Updates for this module will also be posted here.

AttachmentSize
ip2nation-5.x-1.0.tar.gz7.96 KB
flags.zip160 KB

72 comments

Please contribute.

Please contribute this module on Drupal.org

I do not currently have.

I do not currently have enough time to administer this project. Probably some time in the future. In the meantime, I would be delighted if someone can take over the code and put it on drupal.org.

I you don't mind, I want to.

I you don't mind, I want to maintain this project. I also have added automatic database installation and display flags in your module.

I have put this module in.

I have put this module in drupal.org. You can download the latest version from http://drupal.org/project/ip2nation.

Thanks!!!

Thanks!!!

Metal isn't the only material.

Metal isn't the only material used for women's fashion watches. While a solid cuff or bangle is common, they're often embellished, particularly by beads. Such watch bands can be covered in small seed beads or, for a large or chunky style, designed with glass beads. Additionally, other materials are used to make a solid watch band.

Flags zip file.

Hi,

The link to the flags zip file is dead.

By the way, I can recommend the flags on famfamfam:

http://www.famfamfam.com/lab/icons/flags/

They are iso compatible

...instructions.

And can you expand on your installation instructions? For those of use not familiar with SQL can you give us a step-by-step of what we have to do with the database file?

Thanks

...one more thing.

can you access this from a form to create a select list for users to choose which country they come from rather than only identifying their IP?

Thanks.

There's nothing like planning.

There's nothing like planning your annual holiday. The anticipation of an exotic or a romantic destination and all the fun activities, fill up your whole day and your daydreaming time.

Whoops, the last server. Whoops, the last server move killed the link... Should work OK now.
Little things can turn your.

Little things can turn your life topsy turvy. Imagine yourself driving to the office and, in the midst of heavy traffic, you remember than you have forgotten to turn on the home alarm system. Imagine another situation where you are supposed to give an important presentation and your have left your presentation material at home.

Pingback. [...] module Fri, 03/07/2008 - 20:06 This IP2Nation module provides API to access ip2nation (http://www.ip2nation.com/) database in Drupal. With this module you can easily display visitor’s country flag and name. I have developed this module from leon works. [...]
Pingback. [...] module Fri, 03/07/2008 - 20:57 Modul IP2Nation menyediakan API untuk mengakses database ip2nation (http://www.ip2nation.com/) di Drupal. Dengan modul ini Anda dengan mudah dapat menampilkan nama negara dan bendera pengunjung. Saya mengembangkan modul ini dari hasil pekerjaan leon. [...]
Pingback. [...] in the day, Suryanto Rachmat posted a comment in my blog asking my permission to maintain another of my Drupal module. I’ve never met this person but he obviously has an identical nationality to me (Indonesia) [...]
Pingback. [...] module Fri, 03/07/2008 - 20:57 Modul IP2Nation menyediakan API untuk mengakses database ip2nation (http://www.ip2nation.com/) di Drupal. Dengan modul ini Anda dengan mudah dapat menampilkan nama negara dan bendera pengunjung. Saya mengembangkan modul ini dari hasil pekerjaan leon. [...]
hello, What snippet to use in.

hello,

What snippet to use in D6 to show ip2nation flags in comments (top of comments or top left ) but not in $links

thank you for your replay

Food.

I really like this Cake :) Great Job !
It is incredible and informative knowledge
Very inspiring.
This is great and just what i've looking for. Thanks a lot.

Hay All.

If some one needs to be updated with hottest technologies then he must be pay a quick visit this web page and be up to date everyday. Judi Bola Online

This is a fantastic website.

This is a fantastic website and I can not recommend you guys enough. Full of useful resource and great layout very easy on the eyes. 338A Casino Agen Ibcbet

By choosing our gym flooring.

By choosing our gym flooring rolls you are going to give a whole new and better look to your place that you sure would not regret, in very reasonable price. gym flooring

People do not believe any.

People do not believe any real estate business company in first sight to invest money in property, due to many fraudulent activities are happening in the real estate business.

Even though I’m conversing.

Even though I’m conversing with these kind of building contractors, I’m gonna discover in case they’re holding their residence advancement contractor’s licenses on the folks. how to home improvement

It is a common fact which.

It is a common fact which young era is extremely affected along with influences associated with internet. Online music web sites, gaming web sites and other types associated with entertainment web sites are extremely popular. internet games for kids

Provide your own visitors.

Provide your own visitors something which may permanently help remind all of them of the wedding. Absolutely nothing provides an individual to a unique second that can compare with the tune. wedding favor ideas

Ip2Nation for Drupal.

Great article! One more important social media management services truth is that you need to be transparent. If you're not, your audience will always find out and amplify their distasteful you or your company makes a blunder. The best way to diffuse the situation is to talk about it and the lessons you learned from it, in a blog or social post.

Drag and Drop the Part No.

Drag and Drop the Part No from the list into the highlighted Image area. Once mapped, the Image is highlighted when the JCB Service Parts Catalog 2011 is clicked and vice versa. Michale Jordon is the Expert of Electronic Parts Catalogs.

mr.aris.

Thank you very much for posting and sharing this great article. It is so interesting for me alat bantu sex pria

I was very pleased to find this site.

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
Prediksi Bola

This is very interesting content.

This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great
Prediksi Bola Menang | Prediksi Bola Malam Ini | Prediksi Bola Akurat | Prediksi Bola Jitu | Prediksi Bola Malam Hari Ini

Thanks for the nice blog.

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post
Agen Casino Online | Agen Judi Bola Terpercaya | Agen Judi Casino Online Terpercaya | Prediksi Skor Bola

Thanks for sharing nice information with us.

Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job
Agen Bola Sbobet Ibcbet | Taruhan Bola Online

Very interesting blog.

Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know
Agen Judi Bola Online | Bola Tangkas Online

I really like the dear information .

I really like the dear information you offer in your articles. I'm able to bookmark your site and show the kids check out up here generally. Im fairly positive theyre likely to be informed a great deal of new stuff here than anyone else!

Hasil klasemen | Prediksi Bola | Berita Jadwal Liga | Hasil Prediksi Bola | Bursa Taruhan Bola | Pasaran Bola | Situs Agen Taruhan Judi Bola Online Terpercaya | Situs Agen Judi Bola Online Terpercaya

Thanks for such a knowledgeable post.

Thanks for such a knowledgeable post

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
Judi Bola Deposit Bank Danamon | Judi Bola Deposit Bank CIMB Niaga | Agen Bola Deposit Bank Danamon | Agen Bola Deposit Bank CIMB Niaga | Taruhan Bola Deposit Bank Danamon | Taruhan Bola Deposit Bank CIMB Niaga | Judi Online Deposit Bank Danamon | Judi Online Deposit Bank CIMB Niaga

obat tradisional kanker nasofaring.

Thanks this is a comment that could add my insight .

ww.

obat jantung koroner ampuh dan alami

obat tradisional keloid.

that is the most important thing in my life Obat Tradisional Keloid

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <pre> <i> <b>
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Recent comments