User map [Deleted]

or do they say /index.php?somethingorother?
Yes, the URL looks like this.

Code:
domain/index.php?threads/lattepanda-puts-windows-10-on-a-single-board-computer.3860/

I do not use "searchmachine friendly URLs", the checkbox in ACP is not ckecked. I do not use this feature because of moving my forum from vBulletin to XenForo, the RewriteRules for old URLs to new URLs were very tricky even with index.php? URL. For me it´s very complex :) Is there a possibility to change link parts, so that it works with /index.php? URLs?
 
Last edited:
ah ok, I had the same problem moving from one to the other.

Ok, it's obviously not working with that setup and it should. I'll take a look at it and see why it's doing that and how to fix it. Will get back to you in a day or so.
 
I have a few questions using a single user as a test case.
  1. I have a user whose stated location is "Northern Ohio, USA". He could not find himself on the Member Map. I found his pin near Walton Kentucky. If I go to the Google Maps website, "Northern Ohio, USA" resolves at the correct location, but on the member map it does not. Ideas?
  2. This same users stated location did not copy from his "location" to "map location" when I did the mass update. I think I processed all users because I did it until the numbers started cycling back to the beginning 1, 2, 3, etc.
  3. For this user, I also changed his location to "Toledo, Ohio" and it did not change his pin location on the map. Could there be a caching issue?
 
I have a user whose stated location is "Northern Ohio, USA". He could not find himself on the Member Map. I found his pin near Walton Kentucky.
This is all to do with how Google works out where you are. This is what google shows me when I use their API to find Northern Ohio, USA: https://maps.googleapis.com/maps/api/geocode/json?sensor=true&address=Northern Ohio, USA
It resolves it to Ohio River.

If I go to the Google Maps website, "Northern Ohio, USA" resolves at the correct location, but on the member map it does not. Ideas?
However, if I put the same into Google maps front-end, it does not actually know what to do an offers alternatives.
upload_2016-9-12_7-56-39.webp

He needs to enter something a bit more specific if the general term is not working.

This is also a good show of why I have the Map Location separate from the normal Location field. You might want to put in Northern Ohio into the Location and have the other member's thing you are there and you can refine the pin location a bit better.

If I go to the Google Maps website, "Northern Ohio, USA" resolves at the correct location, but on the member map it does not. Ideas?
As above - when I do it from the office it comes up with a generic location for me. However, I noticed last night that it resolves to the Ducati store in Ohio. Maybe google knows I like bikes...

  • This same users stated location did not copy from his "location" to "map location" when I did the mass update. I think I processed all users because I did it until the numbers started cycling back to the beginning 1, 2, 3, etc.
It does not copy per se but rather uses it instead of.
When you save a profile or do the mass-update, it tries to use the Map Location first. If that is blank then it will use the normal Location field. It does not copy one to the other.

For this user, I also changed his location to "Toledo, Ohio" and it did not change his pin location on the map. Could there be a caching issue?
Nope, no caching with that side of things.
Try changing it to something drastic like London, UK and see if it updates. If not, see if there are any errors logged in the server log.


HTH


Crispin
 
Hi Crispin,

Thank you for the detailed response. It helps me understand further how this all actually works.

I changed the location for the user to "San Francisco, CA" and no change occurred to his location pin. I then changed my own location to Cleveland, OH, and no change to my location pin occurred. There were no map-related server errors in the server log.

Any other ideas? It seems that location pins are just not updating.

M
 
Hold that thought -
When saving a user profile it does not actually use the location if Map Location is blank. :( Sorry about the wild goose chase.

The only time it tries both is the mass-update.
If you try that again you should see it work.


So, to recap -
When saving profile - only the Map Location is used.
When doing a mass-update - the Location is used if the Map Location is blank.

I'll clean this up a bit to make it either an option or just be the same.
 
Hold that thought -
When saving a user profile it does not actually use the location if Map Location is blank. :( Sorry about the wild goose chase.

The only time it tries both is the mass-update.
If you try that again you should see it work.


So, to recap -
When saving profile - only the Map Location is used.
When doing a mass-update - the Location is used if the Map Location is blank.

I'll clean this up a bit to make it either an option or just be the same.
My ACP currently looks like this (see attached image) and it still shows me in Dublin, CA.

2016-09-13_1312.webp
 
My ACP currently looks like this (see attached image) and it still shows me in Dublin, CA.

ok, what happens when you go here: https://maps.googleapis.com/maps/api/geocode/json?sensor=true&address=cleaveland, OH
Look down the page for "location". It should be somethign like thing
Code:
 "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : 41.5992572,
                  "lng" : -81.53274399999999
               },
               "southwest" : {
                  "lat" : 41.390628,
                  "lng" : -81.8789761
               }
            },
            "location" : {
               "lat" : 41.49932,
               "lng" : -81.6943605
            },
         },

If I take the lat and lng that it gives me, it drops me smack-bang in the middle. Do you get the same numbers?

Here's where I land: https://www.google.com/maps/place/4...m5!3m4!1s0x0:0x0!8m2!3d41.49932!4d-81.6943605

Do you see anything else?


One thing I am wondering is if I may have messed it up by setting different permissions for different user groups? Only "Members" have access to the map. Would that affect it?
Naa, that just stops the group seeing the map or not.
 
ok, what happens when you go here: https://maps.googleapis.com/maps/api/geocode/json?sensor=true&address=cleaveland, OH
Look down the page for "location". It should be somethign like thing
Code:
 "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : 41.5992572,
                  "lng" : -81.53274399999999
               },
               "southwest" : {
                  "lat" : 41.390628,
                  "lng" : -81.8789761
               }
            },
            "location" : {
               "lat" : 41.49932,
               "lng" : -81.6943605
            },
         },

If I take the lat and lng that it gives me, it drops me smack-bang in the middle. Do you get the same numbers?

Here's where I land: https://www.google.com/maps/place/41°29'57.5"N+81°41'39.7"W/@40.6490064,-81.5785398,7.75z/data=!4m5!3m4!1s0x0:0x0!8m2!3d41.49932!4d-81.6943605

Do you see anything else?



Naa, that just stops the group seeing the map or not.

I get this:

2016-09-13_1342.webp

but I'm not sure why I am still in Dublin, CA?
 
ok cool. So that is working ok.

Now, in mysql manager, run the following code:
Code:
select x(cum_map_location), y(cum_map_location) From xf_user_profile where user_id = 1

Change the 1 at the end to be your userid.

Remember to select your forum database to run that against.


Let me know what that spits out.
 
Michael Murguia said:
In case it is relevant, I do have these server errors, but they don't seem map related. Is it possible the error stops other scripts from executing? Just not sure:

Unlikely. Do they happen when you save? If so, then yes, it could interfere. Try disabling that plugin and see
 
ok cool. So that is working ok.

Now, in mysql manager, run the following code:
Code:
select x(cum_map_location), y(cum_map_location) From xf_user_profile where user_id = 1

Change the 1 at the end to be your userid.

Remember to select your forum database to run that against.


Let me know what that spits out.
2016-09-13_1352.webp
 
Back
Top Bottom