The add-on implements a new custom field type - Location, allowing to collect location information from your users. It provides the list of countries/areas/cities based on World Cities Database - https://simplemaps.com/data/world-cities and allows admins to custom the list, add, edit and delete any record.
The following custom field holders will support location custom field: User custom fields Thread custom fields Resource manager custom fields Media gallery custom fields XenAddons Showcase item fields and review fields by @Bob
Location options will be available when creating a new custom field:
Location options - 1Location options - 2
Based on this configuration, users will be a form to set their location:
Location field
And based on the format specified in the settings the location will be shown for the item (user's profile, on top of the thread etc.)
Location field - output
The list of countries, their areas and cities can be configured in the Admin Panel:
The key should be entered in product's Options page in XenForo Admin Panel. Once entered and saved you will see full details about your current license status. The key can be used only on one board and one server, so if you move the board you need to Reissue the license in My Services page.
The product does not include any callbacks, that execute on page load time on front-end or via cron jobs. License check is done only when you edit/save product's options or upgrade the product to the next version.
We require valid XenForo license to purchase the product. You will be asked for XenForo License validation information during the purchase.
**Bug-fix: keep ZIP code-only form value on save**
Form-based location fields no longer lose the saved ZIP / postal code when the address lookup returns no postal code. This also fixes the false "Zip code field is required" error when a location is rebuilt.
RMS: the scheduled website-link check no longer re-processes an item's location when it only updates the check result.
**Bug-fix: keep ZIP code-only form value on save**
Form-based location fields no longer lose the saved ZIP / postal code when the address lookup returns no postal code. This also fixes the false "Zip code field is required" error when a location is rebuilt.
RMS: the scheduled website-link check no longer re-processes an item's location when it only updates the check result.
2.3.1
Fixed a "Undefined array key 0" error when saving some Google Places locations. Some valid Google Places results, such as business or venue names, include address parts that Google doesn't label with a type. Saving one of these locations caused a PHP warning. Those parts are now skipped, and the location saves correctly.
Typed addresses are no longer replaced by the first autocomplete suggestion. Pressing Enter in the location input while suggestions were showing used to overwrite the typed address with the first suggestion. Now the typed address stays unless you've highlighted a suggestion.
Selected places now save their full address. When you pick a suggestion, the field stores the place's full address instead of the shortened text shown in the suggestion list.
Building-level addresses are no longer cut down to the street. If Google only partly recognises an address (for example "1 Porter House, Seawall Court, Dock Rd, Barking IG11 7GQ" becoming "Dock Road, England, United Kingdom"), the address is now saved and shown as you typed it. This only applies to display formats that include the street line, so city-only formats never show the full typed address.
The RMS location column no longer shows HTML-escaped characters. Addresses containing special characters now appear correctly in Resource Manager listings.
- Fixed a "Undefined array key 0" error when saving some Google Places locations
- Typed addresses are no longer replaced by the first autocomplete suggestion
- Selected places now save their full address
- Building-level addresses are no longer cut down to the street
2.3.0
2.2.0
1.6.3
This release fixes a PHP error related to update in the [AL] Core package:
> Error: Call to protected AddonsLab\Core\Xf2\Admin\EntityConfig::__construct() from scope AL\LocationField\App src/addons/AL/LocationField/App.php:20
* Bug-fix: Call to protected AddonsLab\Core\Xf2\Admin\EntityConfig::__construct()
Reviews
No reviews yet.
Your review
Sign in — reviews are written by customers who bought this product.