PDA

View Full Version : Miscellaneous Hacks - Display Visitor's IP Location on Forum Pages.


carmichael1973
07-19-2008, 10:00 PM
Display Visitor's IP Location
First, I did not write this code and it is available from My-I-P.com (http://my-i-p.com/#location-widgets). I use this in many different areas of my board. IP tracking and security is very important to us. Not only are the interactive maps an awesome feature, it helps promote the fact that we are tracking wesite activity.

Display your website visitor's ip location via a free visitor-country-flag or visitor-location-map widget.
Just paste the widget's html code into your webpage's html and the visitor's ip location flag or map will display.

################################################## #######


http://my-i-p.com/visitor-country-flag.gif (http://my-i-p.com/)

Welcome your website visitors with their country's flag based upon the visitor's ip address.

<a target="_blank" href="http://my-i-p.com"><img title="Welcome" alt="Welcome" src="http://my-i-p.com/visitor-country-flag.gif" border=0></a>

################################################## #



Display* your website visitor's location** with a static map based upon the visitor's ip address.

<iframe src="http://my-i-p.com/visitor-location-map.html" width=120 height=120 scrolling=no marginwidth=0 marginheight=0 frameborder=0></iframe>


################################################## #######




Display* your website visitor's ip address and location** with a dynamic map based upon the visitor's ip address.


<iframe src="http://my-i-p.com/dynamic-visitor-location-map.html" width=120 height=120 scrolling=no marginwidth=0 marginheight=0 frameborder=0></iframe>



################################################## #######





Display* your website visitor's ip address, country code and map link** in text with an ip-textbox style "wb"


<iframe src="http://my-i-p.com/ip-textbox-wb.html" width=200 height=20 scrolling=no marginwidth=0 marginheight=0 frameborder=0></iframe>


################################################## #######




Display* your website visitor's ip address, country code and map link** in text with an ip-textbox style "bw"


<iframe src="http://my-i-p.com/ip-textbox-bw.html" width=200 height=20 scrolling=no marginwidth=0 marginheight=0 frameborder=0></iframe>



################################################## #######






Display* your website visitor's ip address and location** with a large interactive map.


<iframe src="http://my-i-p.com/interactive-visitor-location-map.html" width=350 height=350 scrolling=no marginwidth=0 marginheight=0 frameborder=0></iframe>



################################################## #######


*This function uses an iframe (http://en.wikipedia.org/wiki/IFrame) which may not be compatible with all browsers. Dynamic map uses JavaScript (http://en.wikipedia.org/wiki/JavaScript) which may be disabled in some browsers.
**Location displayed is NOT the location of the ip address user but only the approximate location of the ISP (http://en.wikipedia.org/wiki/ISP) from which the ip address originated.


Click here for a live demo! (http://my-i-p.com/#ip-images)

Madlike
07-20-2008, 08:39 PM
this is a template modification, isn't it ?

carmichael1973
07-20-2008, 08:42 PM
this is a template modification, isn't it ?

Yes, sorry thought I was posting in template mods. Can someone place this where it needs to go?

Madlike
07-20-2008, 08:45 PM
*Marked as instaLLed :p

Q-v-n-s-Q
07-21-2008, 12:21 AM
by using iframe isn't great for seo. but thanks

MadK
07-21-2008, 10:17 AM
Do you think it's possible to make something like this (https://vborg.vbsupport.ru/showthread.php?p=1580193#post1580193)?

chris1979
09-07-2008, 10:45 AM
I'm in London, UK and my-i-p.com thinks I'm in San Francisco. Is it accurate generally?

carmichael1973
09-07-2008, 11:04 AM
I'm in London, UK and my-i-p.com thinks I'm in San Francisco. Is it accurate generally?

Generally it is correct... it's usually fairly accurate atleast to the city. I've noticed that when I'm using a mobile broadband connection, the location is not even close.

The downside to this type of service is that it only locates back to the location the IP was issued from...(i.e. your ISP location). In most cases this is within the same city you live, but some ISP's distribute IP's from one central location.

Fynnon
10-20-2008, 09:46 AM
where in the templates should i put this code, in which file?
thank you

Atlantean
11-07-2008, 06:47 PM
Where will this appear on the forum?

noppid
11-07-2008, 06:51 PM
by using iframe isn't great for seo. but thanks

You don't want those links on the forum page. It's actually good for SEO since the outbound links are useless.