Project Description
The DotNetNuke Razor User Locator module demonstrates how Razor can be used to author DNN modules. This module shows where recent users to a web site came from based on their IP address.

This module uses the DotNetNuke API to get a collection of recent visitor IP addresses from the SiteLog table. It also uses the new
ASP.NET Razor syntax for the view control. With this data, it makes a web call to
http://freegeoip.appspot.com to get the geolocation data for an IP address. This data is returned to the user’s browser through the JSON format and rendered on top of a Google map,
like the example below:

A live demo can be seen at
http://www.dnndemo.personifydesign.com/UserLocator.aspx.
There are a couple of requirements in order to use this module:
- The DotNetNuke instance must have the RazorHost module installed. It can be downloaded at
http://www.dotnetnuke.com/Portals/25/Hackathon/Razor/DNNCorp.RazorHost_01.00.00_Install.zip.
- The DotNetNuke instance must have the SiteLog enabled in order to provide data (and of course some recent visitors!)
- The DotNetNuke instance can make WebClient calls to a remote server to query for the geolocation data.