Monday, December 19, 2011

My answer to "Geo location"

This is my answer to a Question on Support site for LampCMS project


There is not special code to install. It's all automatic. If the user location can be determined from ip address, it is stored in USERS collection and then it's automatically shown on profile page.

Also when adding new question or answer the location, if it can be resolved from the ip address is stored in the collection with the QUESTION or ANSWER and than data base be shown or question/answer page. But that location (in Question or Answer) is not automatically displayed. I will update the templates to show the country flag of the locations in Question and Answer templates and will upload to github by end of the year.

Keep in mind that location is stored only if it is successfully resolved from the ip address, which means it will not work when you developing your site on localhost because your ip is local ip then.

No comments:

Post a Comment