Visual map of users

Yes, I think that will be able to be done with using Discourse as an SSO provider for WordPress. The only difficulty I can see in using a location that is supplied as a user custom field on Discourse would be if there was some ambiguity in the location. For example, ‘Paris, United States’ returns 10 possible geolocations (supplied by the Mapzen Search API.) I currently have things setup so that the top result is selected. It looks like this can be quite accurate if ‘city’, ‘state/province’, and ‘country’ fields are all supplied.

If the location was entered on the WordPress site instead of on Discourse, it would be easier to add some validation to ensure that the correct location was being selected. This could be done with a dropdown menu populated with the results returned by a geolocation service.

In terms of user experience, if Discourse is used as the SSO provider for the WordPress site, the user should be able to click on a link on the Discourse site (‘Add me to the map’) that will take them to a WordPress page (for example, a simplified WordPress profile page) where they can add their location and then return back to the forum.

4 إعجابات