Advertisement:

Author Topic: [Tip/Trick] Locate IP  (Read 2318 times)

gnoe

  • Full Member
  • ***
  • Posts: 237
[Tip/Trick] Locate IP
« on: February 10, 2014, 08:54:27 pm »
I've added the following code to locate user IP by clicking a link.
It uses IP Address Locator http://www.geobytes.com/IpLocator.htm

Open \oc-admin\themes\modern\items\frm.php

Find around 220 line
Code: [Select]
<input id="ipAddress" type="text" name="ipAddress" value="<?php echo osc_item_ip(); ?>" class="valid" readonly="readonly">

Add below
Code: [Select]
<a href="http://www.geobytes.com/IpLocator.htm?GetLocation&IpAddress=<?php echo osc_item_ip(); ?>" target="_blank">Locate IP</a>

Enjoy ;)

zoopla

  • Guest
Re: [Tip/Trick] Locate IP
« Reply #1 on: February 11, 2014, 05:37:45 pm »
That's a nice addon.
Thanks.

ibthemes.com

gnoe

  • Full Member
  • ***
  • Posts: 237
Re: [Tip/Trick] Locate IP
« Reply #2 on: May 02, 2015, 12:44:23 pm »
More ip locator services to use, the same way as above example.

ipinfo.io
Code: [Select]
<a href="http://ipinfo.io/<?php echo osc_item_ip(); ?>" target="_blank">Locate IP</a>
or

infosniper.net
Code: [Select]
<a href="http://www.infosniper.net/index.php?ip_address=<?php echo osc_item_ip(); ?>&map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank">Locate1 IP</a>
or

ip-tracker.org
Code: [Select]
<a href="http://www.ip-tracker.org/locator/ip-lookup.php?ip=<?php echo osc_item_ip(); ?>" target="_blank">Locate2 IP</a>
« Last Edit: May 02, 2015, 01:07:00 pm by gnoe »

Sunkal

  • Sr. Member
  • ****
  • Posts: 445
  • everybody can help?
Re: [Tip/Trick] Locate IP
« Reply #3 on: September 24, 2015, 04:25:29 pm »
I've added the following code to locate user IP by clicking a link.
It uses IP Address Locator http://www.geobytes.com/IpLocator.htm

Open \oc-admin\themes\modern\items\frm.php

Find around 220 line
Code: [Select]
<input id="ipAddress" type="text" name="ipAddress" value="<?php echo osc_item_ip(); ?>" class="valid" readonly="readonly">

Add below
Code: [Select]
<a href="http://www.geobytes.com/IpLocator.htm?GetLocation&IpAddress=<?php echo osc_item_ip(); ?>" target="_blank">Locate IP</a>

Enjoy ;)

OR

<div class="input-has-placeholder input-separate-top">
                                    <a href="http://ipinfo.io/<?php echo osc_item_ip(); ?>" target="_blank">Locate IP</a>
                                  </div>