Title: Geolocation IP
Last modified: September 3, 2016

---

# Geolocation IP

 *  [GalliumDev](https://wordpress.org/support/users/galliumdev/)
 * (@galliumdev)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/geolocation-ip/)
 * Hi,
 * Register Ips is a small plugin, that is very useful.
    I suggest you to add a 
   geolocation link on the IP.
 * Maybe with an editable field 😉
 * Regards,
    GalliumDev
 * * * *
 * _For example, my modification in register-ip.php – Register Ips Version: 1.6.1_
 *     ```
       .......
   
       // Formatting for how it looks on the profile page.
       function helfripms_show_ip_on_profile() {
               $user_id = $_GET['user_id'];
       ?>
               <h3><?php _e('Signup IP Address', 'signup_ip'); ?></h3>
       	<p style="text-indent:15px;"><?php
               $ip_address = get_user_meta($user_id, 'signup_ip', true);
               /* # ORIGINAL echo $ip_address; # */
               ?>
       	<! # GD - GeoIP Site - 2015-03-06 # -->
       	<a href="http://fr.geoipview.com/?q=<? echo $ip_address; ?>&x=0&y=0/"><? echo $ip_address; ?></a>
       	</p>
   
       ........
   
       // Formatting output
       function helfripms_columns($value, $column_name, $user_id) {
               if ( $column_name == 'signup_ip' ) {
                       $ip = get_user_meta($user_id, 'signup_ip', true);
                       if ($ip != ""){
                               /* # ORIGINAL # $ret = '<em>'.__($ip, 'signup_ip').'</em>'; # */
       			/* # GD - GeoIP Site - 2015-03-06 # */
                               $ret = '<em><a href="http://fr.geoipview.com/?q='.__($ip, 'signup_ip').'&x=0&y=0/">'.__($ip, 'signup_ip').'</a></em>'; 
   
       			return $ret;
   
                       } else {
                               $ret = '<em>'.__('None Recorded', 'signup_ip').'</em>';
                               return $ret;
                       }
               }
               return $value;
       }
   
       ........
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [sintro](https://wordpress.org/support/users/sintro/)
 * (@sintro)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/geolocation-ip/#post-7964048)
 * Thanks! This works great!
 *  Plugin Author [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [10 years, 10 months ago](https://wordpress.org/support/topic/geolocation-ip/#post-7964049)
 * For the record, I can’t put that in the code because of remote calls to systems
   and the gpl being a bit of a mess.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Geolocation IP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/register-ip-multisite_292929.svg)
 * [Register IPs](https://wordpress.org/plugins/register-ip-multisite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/register-ip-multisite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/register-ip-multisite/)
 * [Active Topics](https://wordpress.org/support/plugin/register-ip-multisite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/register-ip-multisite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/register-ip-multisite/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/geolocation-ip/#post-7964049)