WordPress IP to Country Plugin
Wordpress IP to Country plugin is adapted from IP-to-Nation plugin for Wordpress. The only difference is that my IP to Country plugin uses (surprise!) the IP to Country database instead of IP to Nation database. There is also the GeoIP plugin which uses the GeoIP database.
I’ve been using the IP to Nation plugin, but I feel that the database is not good enough. An IP from Germany, for example, sometimes get identified as from Europe. My previous experience with the GeoIP database was much better, but the plugin itself seems to be unmaintained. It was not hard to adapt the IP-to-Nation plugin to use IP to Country database since both uses database backend and uses similar algorithm. Thanks to Ozh for creating IP to Nation plugin in the first place.
Requirement
Any version of WordPress above 1.2 should suffice. Some basic knowledge of PHP and editing WordPress template are also required.
Installation
Next, the installation instruction. The installation is a bit more involved than IP to Nation since IP to Country only provides its data as a CSV file, not as SQL dump file.
- Download the IP to Country database
- Unzip it to get a CSV file.
- Create the table ‘iptocountry’ to store the database:
CREATE TABLE iptocountry (ip_from int(4) unsigned, ip_to int(4) unsigned, country_code2 char(2), country_code3 char(3), country_name varchar(50)); - Create the cache table ‘iptocountry_cache’ if you wish to use caching. Caching is recommended for busy sites, but for smaller blogs it can unnecessarily waste space:
CREATE TABLE iptocountry_cache (ip int unsigned, country_code2 char(2), country_code3 char(3), country_name varchar(50)); - Populate the table:
load data infile '/path/to/ip-to-country.csv' into table iptocountry fields terminated by ',' enclosed by '"' lines terminated by '\r\n';. Note: if you uploaded the CSV file using FTP in ASCII mode, you need to do this query instead:load data infile '/path/to/ip-to-country.csv' into table iptocountry fields terminated by ',' enclosed by '"' lines terminated by '\n';. You might not be able to do this if your database user lacks privilege, in that case, you will need to write a CSV parser to do this, should be easy enough if you have some programming skill. If you wrote one, please share it so others can benefit. Note: Praveen has made available an SQL dump of IP to Country data. You can use that if you have difficulties loading CSV file. - Download the plugin, rename it into wp_ip2country.php and put it in your wp-content/plugins directory.
- If you wish to use caching, please enable it near the top of the wp_ip2country.php file.
- Activate the plugin from your Wordpress plugin menu.
- (optional) Get flag images. Ozh provides a download link here, or you can also download another version from GeoIP.
- Modify your templates as you see fit
Available functions
wp_ip2c_getCountryName($display, $ip): prints/returns country name, e.g. Indonesiawp_ip2c_getCountryCode2($display, $ip): prints/returns two letter country code, e.g. idwp_ip2c_getCountryCode3($display, $ip): prints/returns three letter country code, e.g. idn
The IP to Country database uses CAPITAL LETTERS exclusively. But with this plugin, the country name is always printed/returned with capital first letter in each word, and the country code is always printed/returned in lower case.
If $display is set to 1, the function will print the output. If $display is set to 0, the function will return the output so that you can use the returned values. $ip can be omitted, this way the function will use cached data from previous invocation. You can use this feature to minimize database lookups. If there is no cached data and $ip is not provided, the function will use the server variable $REMOTE_ADDR as the IP address to check.
Examples
This will display visitor’s country flag and name.
You are from
<img src="flag-<?wp_ip2c_getCountryCode2(1)?/>.gif" />
<?wp_ip2c_getCountryName(1)?>
Put the following inside comment loop for displaying commenter country name and flag.
Posted from
<img alt="<?php wp_ip2c_getCountryName(1,$comment->comment_author_IP); ?>"
src="/flag/flag-< ?php wp_ip2c_getCountryCode2(1); ?>.gif"/>
< ?php wp_ip2c_getCountryName(1); ?>
Note
IP to Country database is not normalized unlike IP to Nation. So, it takes a bit more space. In my case, IP to Country takes about 1.58 MB of space, and IP to Nation takes about 350 KB.
Demonstration
You are coming from
Australia.
I hope this will deter people from making comment tests below ![]()
Changelog
2.0: Implements caching, useful for busy sites.
Hello, nice to see some other plugin on the same topic
As for IP databases, I think each one can be better or worse than the other one depending on the IP. You say for example that ip2nation sometimes identifies Germany as “Europe”, I see that IP-to-Country identifies me as, on their website, “You are from United States and your IP Address is unknown.” which I think is kind of pathetic
(I’m from France, and why the hell would my IP be unknown ?)
It’ll be interesting nonetheless to see what feedback you’ll have from visitors and users from all over the world regarding accuracy of the database you’re using, I’m looking forward to see how it turns out
Again, cheers !
weird. It displays here the correct flag, but they just cannot identify me on their own website
That’s probably simply a bug on their web site and their code choose United States by default
. I don’t know how accurate IP to Country is, this is my first time using it. I guess we’ll see how it goes.
BTW, thanks for IP to Nation plugin…
Now, we’ll see if the flag is right… Anyway, nice plugin tho.
[...] IP to Country Thursday February 24th 2005, 5:17 pm Filed under WordPress Plugins WordPress IP to Country Plugin is adapted from IP-to-Nation plugin for Wor [...]
So? where I come from? with this new Plug in?
another plugin test.
Dari Samarinda Flag nya apa ya …?
wah wah
boleh ngejunk flag di sini ya?
Well, this is a interesting plugin…
I like it…
[...] endungen dokumentiert
WordPress IP to Country Plugin
Das WordPress IP to Country Plugin setzt eine IP in ein Land um und liefert de [...]
Test from Sydney, Australia
Test for the UK…
Testing and greetings from Singapore!!!
Make sure you use the GeoIP Flags and not the IP2Nation ones as some of the flags have different names… For example the GB flag for IP2Country is called flag_uk.gif in the IP2Nation collection, likewise there are issues for the European Flag…
Cool plugin ^^
Test from Taiwan!!
testing India
#15: I happen to use both. I unzipped GeoIP flags, then replaced them with IP2Nation. So I have both gb.gif and uk.gif.
FYI, the IP2Nation version has about one dozen more flags than the GeoIP one. Some flags in GeoIP are in different size than the others. In IP2Nation, only one flag (Syria) is in different size than the others. So, I think this is an indication that the IP2Nation version is newer than GeoIP.
Just testing to see whether this resolves my IP more accurately than IP2Nation (which thinks I’m in the US) though I’m actually in Canada.
test, ini dari jakarta
hello from turkey
Another test for Sydney Australia.
I wonder if I can use this plugin to identify which countries I blog from, giving visitors a “last seen in” status box.
#22: should be possible, but you will need something else. Your wordpress will need to store your IP address everytime you publish a post. Then this plugin can attempt to guess country of that IP address.
Will it work for the Netherlands too? Let’s see.
test test from norway
this is not Taiwan’s flag.
Thanks for the great plugin…love it!
-Adam
#26: Not my fault, I didn’t create those flags.
Hello from Guam?
Funny thing is that despite the number of users, US citizens seem highly unrepresented in the comments here. Wonder why? (Blah, blah, blah, if you want to flame me for that comment, visit my site, and don’t futz up Priyadi’s).
Cuba-cuba dari Malaysia.
[...] 都是國外網站….. 可以讓你知道你網路上的留言是從那個國家來的喔! http://priyadi.net/archives/2005/02/25/wordpress-ip-to-country-plugin/ 讓你對付Spam的好工具!! http://www.gudlyf.com/index.php?p=376
[...]
This is gonna look good on my forums… as soon as I figure out how to use it.
Priviet! From somewhere in Arizona.
After a long frustation that I was not able to load from the GeoIP CSV file (because of the lack of FILE priveliges in MySQL), I have loaded it on my local machine and created a SQL dump of the table. It is available at http://www.praveen.ws/journal/pub/iptocountry/iptocountry.tar.bz2
I thought of sharing this because it may be of some use to the people who face problems like me.
PS: BTW, I am not sure if the license of GeoIP allows to distribute the database in this way.
[...] ch 30th, 2005
IP to Country plugin is now up
Finally I have managed to get the IP to Country plugin up and running. The difficulty was because of the lac [...]
For WP 1.5, we need to change the comments.php file in the current theme directory and add the following code to get it working.
#34: thank you for sharing!
#36: no you don’t need get_comment_author_IP() on the second invocation. if you use get_comment_author_IP(), then query will be done twice. if you don’t, it will use cached data from the last invocation.
saya dari singaparna. boleh test ya… mau coba pake plugins ini.
[...] Pluggins itu antara lain Browser Detection Plugin dan IP to Country Plugin. Gue bangga karena yang bikin ini adalah orang Indon [...]
This is great! Thanks for all the hard work you’ve put in!
Good plugin
Hello
Test from Switzerland.
N1ce Day

IPstyle
Wow, nice
And a test from Hungary.
test from france
Mas Pri,
Saya kok tidak pernah bisa menampilkan gambar flagnya yah? Kalau saya pasang codenya yg utk flag selalu error. Tapi kalau tanpa flag sudah bisa sih. Kenapa yah? contoh yg di atas itu perlu ditambah prefix php apa lagi ya? saya sama sekali tidak tahu php nih. Mohon pencerahannya.
Terima kasih sebelumnya.
#46: bisa minta URL yang flag-nya selalu error itu?
Mas, ini URLnya. ini aku pakai contoh code yg ke dua di atas itu. Di sini aku hanya merubah path-to-flag foldernya thok. thanx yah…
http://blog.a2xm.com/?p=1#comments
PS: kalau hanya pakai yg ini:
nama country-nya bisa muncul dgn baik.
oops.. maksudnya yg ini:
–>
(muncul gak tuh)
oops.. maksudnya yg ini:
–>
(muncul gak tuh)
akhirnya…
Mas Pri,
Setelah saya kutak-katik lagi pelan2, ternyata sudah bisa jalan semua. Tapi pake code dr commentor #36. Maaf, sudah ngerecokin. Itu comments saya yg gagal tulis code dihapus saja bisa kan. Banyak sekali tuh. bikin kacau.
Terima kasih.
[...] 12; admin @ 7:44 pm
I’ve installed the IP to Country Plugin by Parida from here. There is a detailed explanation of the process in the link. Follow t [...]
Just testing this great plugin…
pluign yang bagus… erm.. kalo mas priyadi tambah fungsinya pasti lebih bagus seperti digabungkan seperti:-
IP2Nation + Browser Detection + Gravatar = Webstat analysis
Pasti enak deh.. oleh demkian, plugin ini bisa bekerja 3 dalam 1….

#56.. aduh kalo bisa jangan digabung2 gitu deh, gak semua org butuh semuanya soalnya. Kalo dipisah kecil2 akan membuatnya jadi lebih flexible dan ramping. You can always mix and match from smaller components, but it’d be harder to do it the other way around, i.e. removing parts you don’t need.
Tested in Russia, Moscow!
[...] uck dan akhirnya tertarik sama aplus tadi siang … mulai install plugins smiley sama ip2country trus masang wp-photo yang udah diutak atik sama setan akhirnya [...]
hi, kirimin script yang dah jadi donk.
Testing to see the functionality of this plugin
hello from China!
where am I?
[...] WordPress, con la posibilidad de aplicar o no los filtros del CMS antes de mostrarse. [...]
mas Pri.. tutorial tuk newbie doong
saya nga ngerti cara no. 3dan 4 nya mas… tulung
#66: itu berhubungan dengan database mysql, coba hubungi sysadminnya. saya gak bisa kasih info detail karena tiap sistem beda-beda konfigurasinya.
Good job
But it’s a little too long installation process
[...] ugin Posted in Work, Asides by Joachim on the May 25th, 2005 I just installed the IP to country plugin. I’d say the difficulty to install th [...]
Pri, punya gue kok anehnya, semuanya from Indonesia.. Ada yang salah ?
Interesting plugin. :3 May try it one day when I’m feeling not that lazy. ^^
test…let me test this…
Ahhh, mwahaha, I posted on May 31th, not June 1st…at least the time is correct.
#74: June 1st on GMT+7, I think your timezone is GMT-5 (you post on 8:04AM)
#74: not everyone lives in the US/Canada Central (GMT-5) timezone.
hi, I love this plugin alot but cant get it to work. I notice that the table I created has no index… is that right?
Thanx
Hi, I love the plugin, but cant get it to work. I have a feeling it might be mysql related. the fields are populated with this:
Hi, i was able to get this working but had to change the following code to get it to display right:
comment_author_IP); ?>" src="/flag/.gif" />thanks for the awesome plugin
sorry, the code didnt post correctly.
Shalom from Israel!
[...] t be sent. Semalam suntuk Gara gara om priyadi nih dengan pluginnya jadi begadang semalam suntuk. Udah gitu pluginnya ga jadi pula , [...]
[...] yah buat blog, banyak hal yang tadinya gak tau sekarang jadi tau . Setelah install plugin IP to Country nya om Priyadi dengan susah payah sampe berdarah darah . Sek [...]
Hey,
Well this worked for me:
PHPMYADMIN > SQL Tab > Insert data from a text file into the table > DATA LOCAL LOAD method
Take Care,
Will
ok Like this
:
LOAD DATA LOCAL INFILE ‘/path/to/ip-to-country.csv’ into table iptocountry fields terminated by ‘,’ enclosed by ‘”‘ lines terminated by ‘\r\n’;
Very cool, I’d love to have this plugin..thanks!
sits
[...] Interessante WordPress tillegg - Splitter kommentarer på delsider - eksempel1, eksempel2 - Vi satser vel på mange kommentarer
- Kramer, Henter lenker knyttet til en artikkel fra Technorati uten at det er sendt pingback til Ensporet. - Stavekontroll - bør kjøres gjennom denne før en publiserer. - IP til land - greit å kunne bruke til å vise flagg fra hvor leseren befinner seg. [...]
[...] だいぶ前に、更新滞っている英語サイトに入れていたIP to Country。私の英語サイトのURL変更に伴って、使っていたCVSデータを更新したのでインストール方法も書いておこうと思います。何でURLを変更したかと言うと、サーバ移動の記事で書いた方法のサブドメインを利用しようと思ったからです。今まではルートに”en”というディレクトリを作っていましたが、サブドメインにするのでそれも”blog”に変更しました。というのは、ゆくゆくは英語以外の言語でも勉強のために書いていきたいけれど、独立させるほどネタも言語力もないので、英語と混同しようと思って。 さて、IP to Countryですが、これは、コメントをしてもらったらその人のIPから出身国を割り出してその国旗アイコンを表示させるプラグインです。日本語のサイトには日本人しか来ないだろうからコメントに日本の国旗を並べてもなぁということでこのサイトには入れてませんが、面白そうだったので英語サイトで入れてみました。 まず、このプラグインはIP to Countryのデータベースを利用するので、IP to Countryのページの”latest IP-to-Country Database”のリンクからCVSファイルをダウンロードし、ファイルを解凍しておきます。WordPressで使用しているデータベースをphpmyadminで開き、SQLタブメニューを開いたらクエリー実行のテキストエリアに CREATE TABLE iptocountry (ip_from int(4) unsigned, ip_to int(4) unsigned, country_code2 char(2), country_code3 char(3), country_name varchar(50)); と入力し、実行します。これで、IP to Country用のテーブルが作成されました。 次にこのテーブルに先程ダウンロードしたCVSのデータを挿入します。phpmyadminの左のフレームメニューに新しくできた”iptocounry”を選択します。開いたページの一番下のほうにある”テーブルにテキストファイルの追加”をクリックして開きます。 開いたページの”テキストファイルの場所”に先程ダウンロードして解凍したCVSファイルを呼び出します。あとは”フィールド区切り記号”を「,」に、フィールド囲み記号を「”」に、行の終端記号を「n」にし実行を押します。少し時間はかかるかもしれませんがこれでデータの挿入は完了です。難しい場合はPraveen’s Journalというサイトでsqlファイルがダウンロードできるみたいです。 あとはプラグインをダウンロードしてテキストエディタにコピペし、”wp_ip2country.php”という名前で保存していつものPluguinsフォルダにいれアドミンエリアで有効化します。 あとはcomments.phpにこれを呼び出すコードを書けば完了です。 wp_ip2c_getCountryName($display, $ip) 国の名前を表示します。(例:Indonesia) wp_ip2c_getCountryCode2($display, $ip) 2文字の短縮形で国のコードを表示します(例: id) wp_ip2c_getCountryCode3($display, $ip) 3文字の短縮形で国のコードを表示します(例: idn) [...]
[...] IP 2 Country [...]
[...] If you’re interested in implementing it in your own WordPress blog, the plugin can be found here. [...]
works great…!!
A bit more complicated than the plugins I usually use, but well worth it! Thanks!
OK well, I had a couple of problems with the coding, but I fixed them and the plugin works great now. Thanks again!
[...] I also unsuccessfully tried to install three different country detecting plugins. [...]
Testing before I (attempt) install…
Asheville, NC USA

Salam from Saudi Arabia,
Thank you for your help
checking the plugin
hello from Mauritius…
aww. doesn’t work for me
Great Plugin!
Thanks!
Very nice plugin !
[...] IP To Country Retrieves the country name of the visitor, guessed from is IP. [...]
[...] Baru pada sore hari saya dapat menemukan penyebab utama mengapa server saya tidak dapat menangani Detik effect. Penyebabnya adalah plugin IP to Country buatan saya. Plugin ini berfungsi untuk mendeteksi asal negara pembuat komentar. Masalahnya plugin ini bekerja dengan mengeksekusi query SQL tanpa menggunakan indeks, dan itu dikerjakan pada setiap komentar. Sedangkan tulisan saya tersebut sudah memiliki puluhan komentar dan meningkat tajam sampai lebih dari 200 komentar. Setelah menonaktifkan plugin ini, server saya dapat dengan mudah menangani Detik effect yang sudah melewati puncaknya pada siang hari. [...]
cool…
I used to have IP to Nation, and I must say it worked fine.
The problem now is my provider! No matter what I use, it eill tell I am from Belgium… I am from Luxembourg!!! Might be a small country, but nonetheless… ahh… never mind, the plug-in works just fine on WP anyway!
Thanks!
賈偉柏
great work
yg bener ah…
udah lapan bulan disini, ip-nya gak di update2
hehehe test !
wow excellent script
This plugin will not work for me. Followed instructions. comments.php cannot locate the functions from the activated plugin … Are the instructions lacking somewhere?
Nice work.
indeed, I’m coming from Canada. cool plugin!
pMachine IP To Country Plugin
pMachine IP To Country Plugin is adapted from WordPress Ip To Country Plugin. It retrieves the country name of the visitor, guessed from is IP. Uses ip-to-country’s data. I implement
I am a newbie in blogging… I am still puzzled how i install this IP to nation thingy? can anyone please give me a simple guide?
elvin
[...] Auf meinen allabendlichen Striefzügen durch das INet habe ich weitere plugins für WordPress gefunden, welche ich unbedingt installieren wollte Beide entstammen dem gleichen Autor (ein dickes Lob für diese doll gelungenen Stücke ). Zum einen wäre da: WordPress Browser Detection Plugin - einfach zu installieren und ein nettes kleines Stück. Auch schon unter den Kommentaren zu bewundern. Zum anderen wäre da noch: WordPress IP to Country Plugin - ja ja - Ihr werdet von mir richtig durchleuchtet Naja - Ziel ist es, so schöne bunte Fähnchen und Icons von Browser und OS unter den Kommentaren anzuzeigen - ich find es sieht ganz nett aus und peppt die Seite etwas auf. Problem ist nur, dass jeder Kommentar die gleiche IP hat und zwar eine 192.168.xxx.xxx. Das ist etwas das ich nicht versteh - und bis dato auch nichts im INet zu gefunden habe Wie steht’s denn bei Euch? Hat dort jeder Kommentar eine ‘echte’ IP?? Wisst Ihr Rat?? [...]
I already try the code that you provided but still unsuccesfull to used at my blog.. Pls elaborate more.
[...] Saya amat berminat dengan cara satu blog dari negara seberang (Indonesia) yang bernama Priyadi. Section comment dier boleh trace dari negara mana komen itu berasal. ader gak cari-cari jalan camner nak buek untuk blog saya nie tapi gagal. (Dasyat gak mamat dari indonesia nie)… Asyik tak menjadi ajer… Ader gak follow panduan yang diberikan tapi still cipan. Ntahlah naik pening paler. Malas nak fikir lagi dah.. biarlah perkara itu berlalu. last sekali hantar e-mail kat dier mintak tunjuk ajar. Whole night asyik configure script nie tapi tak menjadi.. apa masaalahnya erk….???? [...]
nice plug-in, going to use this one too on my blog
greetz,
)
Tom - Belgium (as you probably noticed already
testt for estonia
Hi, I really like the comment boxes on this site! Is the “Using” line part of the ip-to-country-plugin?
Also, being a PHP neo-newbie(like others) I can’t figure out how make the table ‘iptocountry’…
Thanks!
[...] IP to Country and Browser Detection. Of course it’s a lazy Sunday so I’m mucking around again. [...]
Nice Plugin! Hari ini saya coba pasang di website saya. Sempat beberapa jam utak-atik karena justru ip saya sendiri tidak ke-detect. Test sana sini menggunkana INET_ATON dan INET_NTOA di mysql baru ketemu kalau ip range saya tidak masuk database. Akhirnya saya insert manual dan sekarang sudah bisa muncul.
Di website Mas Priyadi ini, sudah ke-detect, berarti databasenya sudah up-to-date. Apa ada script khusus yang otomatis memasukkan data baru ke database? Kalau ada, bagi-bagi dong
Hmm? all that happens for me is a ? for the graphic, and the graphic location is pointing to http://www.userfriendly-devon.com/wordpress/flags/flag_.gif , See? it does not add the end bit after the underscore
Any help?
Hi,
Does anyone here know about a CSV parser (free) becasuse I can’t get the SQL dump working or the CVS… Server does not alow import… But any way thanks…
I think my IP Address is not in the database?
Hi, I was using the pluging v1.1 or something. Now with IP to Country version 2.0 and wordpress 2.0 also I get the following error:
Parse error: parse error, unexpected ‘/’ in comments.php on line 43
I follow the correct plugin installation procedure and I copy the following in my comments.php file.
YAY *tries out plug-in*
(I’m from the Philippines 
OMG hahaha!! it says I’m from Australia!!
maybe there is something wrong with the database or something. I installed this plugin. It’s great but my friend from Mauritius gets logged as being from China or Australia .
[...] Beberapa bulan lalu saya hanya bisa termenung-menung diam saja melihat tutorial yang diberikan Priyadi dalam postingan di blog-nya mengenai plugin Ip To Country hasil karyanya sendiri. Sebagai seorang absolute newbie, tutorial yang diberikan memang sangat membingungkan dan yang jelas agak basbang bagi yang sudah lama pasang di blog-nya. Apalagi hanya berbekal pengalaman sedikit utak-atik css dan php dengan berbekal logika sendiri dan ini pun baru dilakukan beberapa bulan lalu. Mungkin untuk tutorial memasang plugin semacam browser detection, cukup bisa ‘ditelan’ dalam jangka waktu beberapa hari. Namun untuk yang satu ini, yang memerlukan pembuatan table pada phpMyadmin dengan sql -atau apalah namanya- jelas-jelas membuat pusing tujuh keliling. [...]
Great plugin. Thanks!
0o 0o 0o this looks cool!
I can’t for the life of me get it working. It keeps saying:
I think it refers to:
<img alt="<?php wp_ip2c_getCountryName(1,$comment<b>-/></b>comment_author_IP); ?>" src="/flag/flag-< ?php wp_ip2c_getCountryCode2(1); ?>.gif"/> <?php wp_ip2c_getCountryName(1); ?>Any help would be appriciated.
#133: the example seems to be garbled, please try again with the new example above.
<img alt="<?php wp_ip2c_getCountryName(1,$comment-/>comment_author_IP); ?>" src="/flag/flag-< ?php wp_ip2c_getCountryCode2(1); ?>.gif"/> <?php wp_ip2c_getCountryName(1); ?>I had put a around what i thought was the problem, and that cluttered it.
Any Ideas since I cleaned up the code I quoted?
Greetings from Singapore
Kok di saya flagnya gak bisa keluar ya? di taruhnya di plugin kan yah folder flagnya itu? di sini malah muncul nya kayak gini:
… posted from Indonesia
Just thought I’d share this ZIP file. It’s the SQL version of the CSV parse results (CSV from January 23 2006, the latest at the time of this comment).
However, since phpMyAdmin times out in most cases when trying to process so many rows (over 67000), I’ve split it up into 10000 row parts. Simply upload each part, one at a time, and you should be good.
Er, make that 63726 rows.
Niki di testing saking Ngayogyokarto Hadiningrat
[...] IP 2 Country, menampilkan negara (dalam bentuk bendera negara) dari pembei komentar melalui IP-nya. [...]
You have a missing
?>tag at the end of this plugin BTW.#143: it is intentional. it is totally harmless and if I add
?>, it will generate unnecessary technical support load when people unintentionally add white space after itNice.
But it’s hard to install the plugin! 
test from Seoul
soooooo ~~coooool ^^
Hi!
Let’s see if it works on my blog too
BTW: Nice plugin 
Harry
[...] So, ini postingan pertama gw tuk domain baru, server baru (yg di jamin lebih kenceng dari pada yg lama), mysql baru, dan di taon baru ini maap gw masih jg tahap pembenahan, alias setting sana sini dulu. rencana nya mo pasang plugin gravatar, ip to country flag, yahoo and msn messenger icon, de el el. Nice to meet you back *thanks to mas priyadi yg dah banyak membantu lewat tutorial nya [...]
Wow, keren abis…

Saya newbie, nyoba jajal di website saya ah..
Om priyadi… saya punya kesulitan untuk masalah upload cvs itu,,,, jadi sampai sekarang saya masih pakai ip2country.. mohon petunjuk untuk newbie…
satu lagi om.. kalo bisa sih adapting plugin ip2country dengan user online. jadi semua visitor yang ada keliatan benderanya.. tolong dong om
hehe. cool plugin. checking sapporo, japan
oops. it shows united states. and am in japan hmmm
Hi,
I am using wordpress 2.0.2 (the one release on march 2006)
I downloaded WordPress IP to Country Plugin (from priyadi.net), uploaded it to my Server and actived it from the blog admin control panel.
I downloaded the SQL dump of IP to Country data (from Praveen website). From the Phpmyadmin I imported the sql file and the iptocountry was successully added as a table to my wordpress main database.
I try all the Php Available functions in the sidebar, comments or index file but the plugin doesn´t work.
Is there anything I didn´t do to make the Plugin work? Does the plugin work with the wordpress 2.0.2 version? If not, is there a way it can be customized or changed for wordpress 2.0.2.
Can somebody helps!
Thanks
JC
Nice scripts, i will use it for my site, thanks !
buat wp 2.0.2 belun dites ya?
i’m trying with my WP 2.0.2 but i’m lost too, is it work with!?
Jc is right IP to nation does not work with 2.0.2, even though it worked with 2.0.
now im here
Yes, it works with 2.0.2, I’ve installed it on my blog and my wife’s blog. Just follow the instructions above to install, no extra steps needed.
Great plugin! Thanks.
just wanted to say how great this plugin is! thanks.
hey wait! i’m in Canada…how come it’s showing that I’m in the States? Anyway of forcing it to show Canada on my blog?
#163: you should contact maintainer of IP to country database.
Oh,it’s great.
Test the IP address.
Awesome plugin!
Now this is a really cool plugin. I just wanna see if it get’s my country right.
Ok, so it does get my country but how come I don’t see no green, white, green. Priyadi, please hook a brother up with a decent Nigerian flag.
It’d be cool if you include it in the next version of the plugin
I’m using WP 2.0.3 and it worked!
problem .. no errors just “Posted from ” appear with no country name or flag
test from Denmark,
beautiful stuff. will use it soon. thanks.
Hey, I went to the site to download the flags, but the link doesn’t work
, where else can I get the flags, please email them to me, I would appreciate it Thanks! 
Great thanks a lot for this
I’m currently getting it integrated into my blog, but I’m getting problems with it… anyway, just testing here.
Testing aja, mau masang ditempatku
thanks Pri
test from denmark
I guess my flag is wrong
I am from switzerland
Nice plugin, testing now on my blog…
Está muy interesante voy a implementarlo en mi blog.
Saludos
I released Easy IP2Counry, a similar plugin that does not require any database changes to install.
Nice plugin!
ViperBond, your break up of the SQL was alot of help!! Testing BTW
…
[TUTORIAL] FULL COMMENTING PACKAGE with PRIYADI’s PLUGINS
YOOO.. Priyadi has made 4 great plugins for wordpress, and 3 of them are installed on this blog.
Thanks Pri, This Tutorial is dedicated for you
Do you wanna have a comment like this
or like this
if the answer is YES, then,
Get ready! we’ll l…
Test Im From Indonesia Jaya Selalu

Great Plugin … !
Test for UK…
Probando, hay actualizaciones para la versión 2.1 de Wordpress? a mi no me aparecen las banderas ultimamente U_U eso nunca me había pasado.
Test from Spain
Wah Priyadi jenius sekali kamu bisa bikin plugin kayak begini,
Om Pri ajarin dong bikin plugin wordpress, i Like this plugin so much… 
mas prie, banyak yang salah tuh IPnya.. he.. he.. kalo aku dari Indonesia benderanya bener gak nih?
wuis.. ternyata bener… sudah terbukti..!!
Excellent Plugin.
Thanks!
Ngetest juga ah… kenapa juga barusan sekarang minat kutak katik web.hiks
mas, pluginnya tak pake ya…
makasih
keren. gw noob lagi nyoba pasang boleh ya… btw itu kok bs ada nama kotanya sih?? ada yg perlu ditambah?
it’s a good plugins, thanks a lot
Ah, how can I add city or something like in this code?
eg: Hanoi, Taipei…
Thank you.
Check out the FREE ip2country PHP class I found. It’s easy to use and money-free! It’s amazing how scum charge for the exactly frees stuff you have access to yourself.
Cheers and KIF (Keep it free).
Very good plugin. Works perfect with Wordpress 2.2.1.
I have converted the latest ip-to-country csv-file to sql and I also have a php-script to add the csv-fil directly into the database.
Take a look at:
http://www.familjencarlstrom.se/WordPress/?p=186
Yours
Håkan
nice wordpress plugin pack , 10x
ntar ane coba degh, do’ain yaaach biar sukses
How can you display the city name?
dimanakah saya?
doesn’t work with WP 2.2??
Mas Pri..
salam kenal dulu …
saya mo nyoba juga tapi nggak ngerti No 5 Neh
akhirnya berhasil juga … hehehe
Mas, masih bingung pakenya. Ada terjemahan install guidenya ?
Probando!
/
Testing from the Prairies…
looks really good. Lets try…
http://www.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
ada link baru nih untuk GeoIP to country, belum sempat dicek tetapi tertanggal 01-Nov-2007 23:35 dengan size 1.3M
Just adding some information
ya its kool..
test from jogja, and i will use it on my website …
if you want to see city just add the following code into your comments.php file where you want (-;
I am testing to see what displays for my country.
english:
in just a little while, i will released a wordpress plugin to translate commenters’s ip address to their city and country. so, please always monitoring my blog @ http://aufklarung.org
indonesia:
tidak lama dari sekarang, saya akan merilis sebuah wordpress plugin untuk mendeteksi kota dan negara dari para komenter. tingkat akurasi deteksinya tidak terlalu mengecewakan. jadi silahkan panatu terus blog sayah di http://aufklarung.org
love
-stanch
saya dimana?
hmm.. its kinda correct but it says i’m from “flag Philippines”
wow, this works and this is the coolest i’ve ever seen in blogging!
hooray to you! added u to my rss feed
PLS. DELETE MY EARLIER COMMENT!
wow, this works and this is the coolest i’ve ever seen in blogging!
hooray to you! added u to my rss feed
Anyway, since i’m a newbie to WP, can you pls. spoonfed me the gruesome details of these:
Greetings from Lithuania
inunh cara pakainya…. hiks….
how to convert from CSV to MySQL dump?
Test From Indonesia
To Riri Audiya: Just Import the CSV file using PHPMyAdmin and it will be convert automatically
thanks Anggie.
How to show the cities names?
Just testing
Mohon pencerahnnya point 5 maksudnya gimana yach???
mohon bantuannya terima kasih..
wajib dicoba
/
download gambar2 benderanya dari mana yach???
i’m using WP 2.5.1..It seems to not work. i installed latest csv file to database+plus the tables of course.. followed every instruction to the letter.i see the plugin in my plugins too, activated it. but i don’t see it anywhere i’ve looked in settings WP admin page, manage,comments, etc, no such wp-ip2country dashboard. so i just added to the comment loop the above,php script, it still do not work..i only see the added php script in TEXT on my commenters..if you only made the setup clearer and the post updated, you could make tons of adsense revenue from this post alone. look at the number of commenters.pls. fix this or update plugin..we are counting on you.You could be the Pride of Indonesia if you just do what you do
How to show the cities name?
Testing my country & browser & OS please !!
I am only getting dots from the script output
klo detek kota, misal medan, jakarta bs gk ya mas?
Have to agree with #230 above. I’m trying to get this to work with the Amazon Machine Tags plugin, but nothing seems to work. I’m using WP 2.6. I can’t get the plugin to work on comments either, as I’m not sure where in the comments loop it should go.
I’ve added the latest CSV file to the database table and have activated the plugin. The installation of this was a real headache compared to other plugins (I’m not all that experienced with MySQL).
If you can simplify the installation and make it idiot-proof, with clear and concise documentation, you’d be on to a winner. I’m happy for the people that found it easy, though.
I like this! uhhh!!!
Hellow…
Buat memunculkan nama kotanya gimana yaah?
Mohon pencerahannya
Thanks 
Mas, minta ijin copas tulisan ini ke Blog saya ya, biar saya tidak lupa. Makassih
Test.. Menggunakan koneksi Indosat 3.5G Broadband Unlimited…