BP xProfile Location

Descrizione

This plugin works with both BuddyPress and the BuddyBoss Platform. It creates an xProfile Location field type that will use the Google Places API to populate and validate address fields on member profiles.

The result will be uniform and searchable addresses with a single input field.

In BuddyPress, you can create multiple Location fields via wp-admin > Users > Profile Fields > Add New Field

In BuddyBoss Platform, you can create multiple Location fields via wp-admin > BuddyBoss > Profiles > Profile Fields > Add New Field

The xprofile field for each member will be populated as a searchable string.

A latitude / longitude ‘geocode’ will be saved as a separate field, if that option was selected when the field was created.

You can then use the geocode in your preferred Member Map solution.

Or you may be interested in this Member Map solution: BP Maps for Members

For Group Maps, please see: BP Maps for Groups

Per maggiori informazioni su questo plugin, visita BP xProfile Location

Screenshot

  • The Edit screen on a member profile with Address Auto-Complete
  • Creating a Profile Field of Type > Location
  • Opzione GeoCode durante la creazione di un Campo Profilo

Installazione

  1. If you have not entered a Google Maps API Key for one of your other PhiloPress plugins – see the FAQ

  2. Upload the zip on the Plugins > Add screen in wp-admin

  3. Attiva il plugin attraverso il menu ‘Plugin’ di WordPress

  4. If you are using BuddyPress:

    • Go to wp-admin > Settings > BuddyPress > Options. Under ‘Profile Settings’, find ‘Google Maps API key’, enter your key and Save
    • Go to wp-admin > Users > Profile Fields > Add New Field and Create a profile field of Type = Location
  5. Or if you use BuddyBoss Platform:

    • Go to wp-admin > BuddyBoss > Integrations > BuddyPress Plugins. Under ‘Profile Settings’, find ‘Google Maps API key’, enter your key and Save
    • Go to wp-admin > > BuddyBoss > Profiles > Profile Fields > Add New Field and Create a profile field of Type = Location.

FAQ

Ho bisogno di una Chiave API Google Maps?

Sì. Se hai bisogno di aiuto, leggi questa guida: chiavi API di Google Maps API

Possiedo una Chiave API Google Maps. Dove dovrei indicarla?

If you use BuddyPress: Go to wp-admin > Settings > BuddyPress > Options. Under ‘Profile Settings’, find ‘Google Maps API key’, enter your key and Save.

Or if you use BuddyBoss Platform: Go to wp-admin > BuddyBoss > Integrations > PhiloPress. Find ‘Google Maps API key’, enter your key and Save.

Why are geocodes sometimes not created?

If you selected the “Save Geocode” option when creating the profile field and a geocode is not being saved when a member edits that field, then most likely they are not clicking on one of the address options that Google returns as they type. They have to click on one of the addresses or Goggle will not return the geocode. There is no practical method of forcing them to make that selection. We suggest that the “Description” text of the profile field contain an instruction like: “Please make a selection from the dropdown or you will not appear on the Members Map”.

Altre domande

Recensioni

25 Giugno 2020
This plugin is a vital functionality to your BuddyPress website. Also, their support team is great. I had an issue and they solved it and released it in the next update which was quick and awesome. Thanks a ton !!!
11 Giugno 2019
Hello Thank you for your plugin. It will be great, if you can add support of autocomlete of your plugin to BP Profile Search https://wordpress.org/support/topic/is-it-compatible-with-location-autocomplete-for-buddypress-by-buddyboss/#post-11623697
23 Gennaio 2017
Great plugin! Works quite well. However on pages that aren't using a google map, they are slowed down. The script is qued on ALL pages, but if I don't have a mymap div on that page, it throws a JS error - and it seems to be really bad on mobile. message : "myMap is not a function" name : "InvalidValueError" stack : "Error↵ at new Eb (https://maps.googleapis.com/maps/api/js?key=AIzaSyCEbNrty2LK5O2DbsjKx1cJd4OsPqIVXjE&libraries=places&callback=myMap:41:365)↵ at Object._.Fb (https://maps.googleapis.com/maps/api/js?key=AIzaSyCEbNrty2LK5O2DbsjKx1cJd4OsPqIVXjE&libraries=places&callback=myMap:41:475)↵ at Og (https://maps.googleapis.com/maps/api/js?key=AIzaSyCEbNrty2LK5O2DbsjKx1cJd4OsPqIVXjE&libraries=places&callback=myMap:96:420)↵ at https://maps.googleapis.com/maps/api/js?key=AIzaSyCEbNrty2LK5O2DbsjKx1cJd4OsPqIVXjE&libraries=places&callback=myMap:131:58↵ at Object.google.maps.Load (https://maps.googleapis.com/maps/api/js?key=AIzaSyCEbNrty2LK5O2DbsjKx1cJd4OsPqIVXjE&libraries=places&callback=myMap:21:5)↵ at https://maps.googleapis.com/maps/api/js?key=AIzaSyCEbNrty2LK5O2DbsjKx1cJd4OsPqIVXjE&libraries=places&callback=myMap:130:20↵ at https://maps.googleapis.com/maps/api/js?key=AIzaSyCEbNrty2LK5O2DbsjKx1cJd4OsPqIVXjE&libraries=places&callback=myMap:131:73" __proto__ : Error
Leggi tutte le recensioni di 8

Contributi e sviluppo

“BP xProfile Location” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Traduci “BP xProfile Location” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

4.5

  • removes js comments to prevent errors when white space is trimmed.

4.4

  • removes the check for an active xprofiles component. This is an important update, especially for BuddyBoss users.

4.3

  • fixes a bug re the use of ‘legend’ instead of ‘label’ for the field name formatting

4.2

  • fixes a bug re use of Profile Search in BuddyBoss when the “Search Mode” for a Location field is not set to ‘distance’

4.1

  • Adds support for distance search when used with the BP Profile Search plugin or BuddyBoss Platform > Profile Search

4.0

  • Improved performance of calls to the Google Maps APIs – important!

3.1

  • Tested with 5.4
  • Improve support for the BuddyBoss Platform – an alternative to BuddyPress
  • Improve cleanup on deletion of a field of type Location

3.0

  • Tested with 5.2.2
  • Add support for the BuddyBoss Platform – an alternative to BuddyPress

2.0

  • Tested with 5.1.1
  • Add support for distance searches via the BP Profile Search plugin IF you have the premium BP Maps for Members plugin from PhiloPress

1.8

  • Tested with 5.0.2
  • Improve multisite support

1.7

  • Add settings field for the ‘Google Maps API key to BuddyPress settings

1.6

  • Add ‘Description’ field output in class-pp-field-type-location.php

1.5

  • Prevent saving of field data and geocode if the value is an empty serialized array, a:0:{}

1.4

  • Changed the method for supporting the BP Profile Search plugin.

1.3

  • Added check for enabled BuddyPress Extended Profiles component
  • Tested with WP 4.7 and BP 2.7.2

1.2

  • Added requirement for Google Maps API Key.

1.1

  • Fix autolink issue

1.0

  • Initial release.