This plugin was adapted and modification from iptocountry made by Priyadi and iptonation made by OZH.

Many blogger not know how to implementation and install in they blog. Not familiar with PhpMyAdmin, and how to dump the data. So i just wanna help people who’s cant install.

In my First Plugin, i just added editor to create table ( wp_iptocountry ) and query editor, but i suggest you to query1000 data once query. If over, it’s not work to query, just little or a half data success insert.

How to Install, first download Asalmu

1. Extract and copy to /wp-content/plugins/

2. Wrap this code on you Comment Loop


<? erw_print_country("Posted From ");?>

This is example Comment Loop


<?php if ($comments) : ?>
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> <!--to <?php the_title('&amp;amp;amp;amp;#8220;','&amp;amp;amp;amp;#8221;'); ?>--></h3>

<ol id="commentlist">

<?php foreach ($comments as $comment) : ?> // here THe Loop //

<li id="comment-<?php comment_ID() ?>">

<p class="LUsr"><strong><?php comment_author_link() ?></strong><br />

// here you put the code
<br><?php erw_print_country("Posted from ");?>

<a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('d M, Y') ?> at <?php comment_time() ?></a> <?php
edit_comment_link('edit','&amp;amp;amp;amp;nbsp;&amp;amp;amp;amp;nbsp;',''); ?></p>

<small class="LGrav"><?php if (function_exists('gravatar')) { ?>

<img src="<?php gravatar('PX', '40', get_bloginfo('template_url')."/images/AvatarReplace.png"); ?>" alt="<?php
//_e('Gravatar'); ?>" />

<?php } ?></small>

<div class="LCon">

<?php comment_text() ?> // here The Comment

</div>

<small style="color:#FF0000;"><?php if ($comment->comment_approved == '0') : ?>Your comment is awaiting moderation.<?php
endif; ?></small>

</li>
<?php $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : ''; ?>

<?php endforeach; /* end for each comment */ ?> // here end of The Loop

</ol>

Now, in your Admin Area choose Option menu -> Asalmu, read the information if table not exist just click add button. In query editor, copy paste from wp_iptocountry.sql file. Remember, just 1000 data once query. Then click go button

You can puts the code in the footer your sidebar. Happy try blogger, if you find bug please post your bugs