Record users lat/long when they join
|
Posted
|
|
|---|---|
|
Community saint |
I suspect Maxmind made some changes to their offerings which are not reflected in ocPortal. Bob |
|
Posted
|
|
|
Community saint |
Code
http://www.maxmind.com/app/locate_ip?ips=11.22.33.44
Code
http://www.maxmind.com/app/locate_demo_ip?ips=11.22.33.44
And you can fix that yourself in the meantime by updating LOOKUP_SCREEN.tpl. The geolocate_ip() function is country level only, so it is working as expected. The timezone problem is a known issue that should be fix in v7.1.1.
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
Hopefully, we can take advantage of GeoLite City which is also free. The US (and Canada and Australia and on and on) are mighty big countries and it would be good to see what part of the country people are from. Thanks, as always, for your help. Bob
Last edit: by BobS
|
|
Posted
|
|
|
Community saint |
Just noticed that the changed URL delivers city and metro code - everything except postal code which is understandable without a street address. Maybe your code can be modified to emulate the Geo_lookup code if the GeoLite City code is not workable. Bob |
|
Posted
|
|
|
Community saint |
It shouldn't be a problem getting GeoLite City to work. It looks straight forward.
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
Bob |
|
Posted
|
|
|
Community saint |
Weird. I decided to go back and make this change using the template editor in ocPortal but then it still is using the old URL. I've cleared cache and verified the contents of /templates/custom/LOOKUP_SCREEN.tpl. Wonder why it is still using the old URL. I am really hoping that all this geo-location stuff can be based on GeoLite City which would produce the best results and not have limitations on the number of uses per day. Bob |
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
Just looked at inforsniper.net and it looks like it provides only country-level information. Any chance for city-level information? I like the idea of GeoLite City since the data resides locally on your server which should mean faster lookups. People would just need to remember to download the updated binary once a month which could be out in the to-do list. Bob |
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
ocStaff (admin) |
We continue to invest in ocPortal, heavily, but we have to make pointed strategic decisions where to do it. That is either:
Through this, we make ocPortal a better product for large groups of people, and thus gain more users, grow the community, and very indirectly get ourselves more customers, thus justifying the investment. Other than these things, there are a lot of things that I agree could be improved (most suggestions people make!), but the realistic truth is that they are not improvements that will give us a measurable competitive advantage, and therefore as a business ocProducts can't pay for them. I'm very happy for someone else to put them into ocPortal – people can always ask for subversion-write access for example and become commiters, or simply post patches. I'm also very happy to do them if we get a wealthy donor. But I just can't develop them or authorise my staff to, if I don't see a commercial imperative. That's particularly the case at the moment, where we're in what could almost be called a global depression, we need to fight to bring in money just like any other business – and unlike many of our competitors, we're not just running off huge venture capital investments. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
I fully understand your position and dilemma and you are doing a great job of moving ocPortal forward. Perhaps temp1024 will consider becoming a committer to the svn - he already has generously shared a number of improvements to ocPortal. It would be nice (and better for all involved) if those changes became part of ocPortal. Bob |
|
Posted
|
|
|
Community saint |
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
Fair enough. Your efforts are already well-represented in the recent releases. Bob |
|
Posted
|
|
|
Community saint |
Before you can use it, you will need to create a /data_custom/GeoLiteCity/ directory and copy the following files from maxmind.com into it: Code
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
then unzip GeoLiteCity.dat.gz . PHP code
Note that as /data_custom/GeoLiteCity/ is a new directory is needs a bit of security. Add an empty index.html to stop people from seeing a directory listing. Add a .htaccess containing Code
order deny,allow
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
I can hardly wait to give this a try. I will work on it this afternoon. Does this just replace your prior code in /pages/modules_custom/join.php? Bob
Last edit: by BobS
|
|
Posted
|
|
|
Community saint |
Got this installed and I really appreciate your effort. Now, instead of being located outside Wichita, Kansas, I'm located within a few hundred yards of my home. I am quite impressed. Hopefully, Chris will incorporate this into the standard ocPortal or the ocUsermap add-on. Thanks again. Bob
Last edit: by BobS
|
|
Posted
|
|
|
Community saint |
Not bad, mine is within about 16,400 yards (15 km), which is more then accurate enough for a general location. The best part is that no one will know how accurate unless you tell them. I'd be very surprised if he included it for several reasons. In any case the most he could include would be my code and not the maxmind code or data due to licensing restrictions.
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
I just meant the changes in join.php which you said falls back to the existing code gracefully. Then it's 4 easy downloads and uploads. But even if not included, it's a really easy installation and the results are fantastic. I just had my sister sign up and she was about a mile and one-half off which surprised me because she is located in the hills some 5 miles from the town where she lives. Bob I'd be satisfied with accuracy to within 25 miles in rural areas. Of course, all of that is beyond your control and relies on the data Maxmind provides but you getting this working gets an A+ from me. |
1 guests and 0 members have just viewed this: None
Control functions:







Last edit: by 