Latitude and Longitude for registered users

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/21/2014 7:01:41 AM
Gravatar
Total Posts 22

Latitude and Longitude for registered users

Hi,

I need latitude and longitude values for the registered users. Mojoportal has a table mp_UserLocation, this table saves the latitude and longitude value as 0. Is there any settings to enable to get the latitude and longitude values entered to the table on user registration.

Thanks in advance,

Rajeswari.

2/21/2014 11:02:05 AM
Gravatar
Total Posts 18439

Re: Latitude and Longitude for registered users

Those fields are for possible future use, there is nothing yet in mojoPortal to determine the user location from ip address, but it is possible to do it. One way is using 3rd party data from various vendors, the one I've looked at is ipligence. They have free data that could be imported and used to associate a geographic location with an ip address, they also have more detailed data if you pay money. Google for "ip address geolocation" for more info. I created the mp_UserLocation table based on the idea of using the data from ipligence, but I never finished it.

There are other ways of doing it as well using various services including google, this blog post by Scott Hanselman has some info on that. 

At some point I may use one of these strategies to build it into mojoPortal so we can capture user locations and plot users on a map, but its not my top priority.

2/21/2014 11:07:10 AM
Gravatar
Total Posts 18439

Re: Latitude and Longitude for registered users

Technically one could also implement their own way to capture geo location on registration or in the user profile using a custom user profile definition. You could implement a custom UserControl.ascx that implements ISettingControl (examples of this interface can be found in the source code). So for example it is technically possible to implement a user control with google or bing map for the user to select their location but there is not something currently built in.

2/22/2014 12:10:53 AM
Gravatar
Total Posts 22

Re: Latitude and Longitude for registered users

Thanks for your reply Joe.

You must sign in to post in the forums. This thread is closed to new posts.