This wiki shows how to get the geolocation info of the client using another server API
It could be write also as extension but there are a lots of APIs that change the below code
So, I wrote the below code that works for one of them (using www.geoplugin.net)
Awhile ago I was trying to find a database driven CMenu system to add to my web applications. This always seemed to me that it would be a lot easier to manage if it where in a database. So the following is the results of that effort:
Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.