Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Location based on IP - Is the User IP address stored anywhere in 5.x?Location based on IP - Is the User IP address stored anywhere in 5.x?
Previous
 
Next
New Post
11/3/2009 1:23 AM
 

I am writing a scheduled task to go through user's periodically without Country/City etc. filled in and populate them using an IP look up against a GEO file (the free one frohttp://www.maxmind.com/app/geolitecity)

The problem is that I don't use the Sitelog and I can't find the user's last known IP address in DNN 4.x - is this stored in 5.x?

If not I can only do it whenever that user logs in again ;(

ps - I'm sure DNN used to do this at some point? What happened to it?


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
11/3/2009 3:53 AM
 

AFAIR last IP used is stored as well in ASPNET tables.

IP lookup is used in Countrylist control, unforunately this is not used any longer since extensible user profile has been introduced and code hasn't been moved to country profile property type control.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/3/2009 3:57 AM
 

I think the sitelog is the only place that logs this in dnn unless there is a login error and then it's recorded in the event log. 

I used ListX - now named Open Web Studio - to create an auto-login module that also recorded the login with the ip address of the computer being logged in (a client wanted autologin based on ip adress and computer name referrer data in addition to the normal username login).  So, you can definitely write your own code to log a person's ip address and associated username or userid if they are logged in, have it recorded in a custom table added to the dnn database, and be able to run queries that would join that table to the appropriate user table for filling in the country data from your geo file.  Open Web Studio, btw, is free to use, very robust, good help on their user forum, paid priority support available, etc.  It does have a bit of a learning curve, but you can do just about anything with it including math, especially when there aren't any third party modules available that can perform the exact functions you need.  It basically sets up the platform for a non-programmer to write their own programs.  Definitely worth checking into it for your need.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
11/3/2009 5:12 AM
 

Sebastian Leupold wrote

AFAIR last IP used is stored as well in ASPNET tables.

IP lookup is used in Countrylist control, unforunately this is not used any longer since extensible user profile has been introduced and code hasn't been moved to country profile property type control.

Hmm - I checked them all with no joy Sebastian - aspnet_Profile seems the most likely, but it's not there, although there is a field called "Geolookup" which sounds interesting!  (not in aspnet_Users).

Is that for any DNN version or just 5? (I am on 4 still)

Pity, that was such a nice little usability touch for the user!


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
11/3/2009 5:36 AM
 

rick katzenlieber wrote

I think the sitelog is the only place that logs this in dnn unless there is a login error and then it's recorded in the event log. 

I used ListX - now named Open Web Studio - to create an auto-login module that also recorded the login with the ip address of the computer being logged in (a client wanted autologin based on ip adress and computer name referrer data in addition to the normal username login).  So, you can definitely write your own code to log a person's ip address and associated username or userid if they are logged in, have it recorded in a custom table added to the dnn database, and be able to run queries that would join that table to the appropriate user table for filling in the country data from your geo file.  Open Web Studio, btw, is free to use, very robust, good help on their user forum, paid priority support available, etc.  It does have a bit of a learning curve, but you can do just about anything with it including math, especially when there aren't any third party modules available that can perform the exact functions you need.  It basically sets up the platform for a non-programmer to write their own programs.  Definitely worth checking into it for your need.

I disable my sitelog for performance reasons.

It means I can only do the check when a user logs on (or joins) - which is working well. I wanted to run a scheduler but it looks like I won't have that IP address... 

I REALLY need to check out OWS!! ;)


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Location based on IP - Is the User IP address stored anywhere in 5.x?Location based on IP - Is the User IP address stored anywhere in 5.x?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out