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)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Geolocation IP’ is closed to new replies.