WordPress.org

Ready to get started?Download WordPress

Forums

BP User Profile Map
Using two extended profile fields to generate the map (5 posts)

  1. evo252
    Member
    Posted 1 year ago #

    Hi,

    Is there a way to make the plugin use two (or more) extended profile fields (City + Country at least) to localize the member? I'd like the map localise someone in Paris if he typed "Paris" in city field and "France" in country field.

    Don't want to only use the "city" field for BP User Profile Map because some cities have the same name but are not in the same country.

    Thank you.

    http://wordpress.org/extend/plugins/bp-user-profile-map/

  2. Hugo
    Member
    Plugin Author

    Posted 1 year ago #

    No way unless the plugin was modified, at the moment it uses one field to pass through to Google geolocate changing this is more work than it appears.

  3. OC2PS
    Member
    Posted 1 year ago #

    some cities have the same name but are not in the same country

    Fair point.

  4. Hugo
    Member
    Plugin Author

    Posted 1 year ago #

    it is a fair point but as always , not something I hadn't considered but something that requires more thought and testing than one imagines, as soon as you move away from one field you have a minor nightmare testing and working out where to grab address strings from as people will all want something different, so one ends up with extended options just to ask user to tell the plugin what fields hold what then grabbing that and having to build a string from different fields, and hoping that the string from each field makes sense when concatenated together; chances of providing strings Google can't locate increase greatly.

  5. OC2PS
    Member
    Posted 1 year ago #

    as soon as you move away from one field you have a minor nightmare testing and working out where to grab address strings from

    True.

    Again, the part I quoted from @evo252's post was simply that many cities in various countries have same names...so only city perhaps isn't sufficient to show the correct address. I can empathize with the problem.

    I'm not necessarily advocating the proposed solution. Perhaps there is a much better way to deal with this...

    P.S. BGMP http://wordpress.org/plugins/basic-google-maps-placemarks/ has it pat down. I'd check how they've implemented their stuff.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.