#2089 closed enhancement (wontfix)
Location Profile Field
Reported by: | nickbwatson | Owned by: | |
---|---|---|---|
Milestone: | 1.2.3 | Priority: | major |
Severity: | Version: | ||
Component: | Keywords: | pre-made, location, field, profile | |
Cc: |
Description
It would be great to have a few pre made profile fields, but Location is something that I think EVERYBODY would want.
Basically I would want this profile field/fields to use chain selection so that if I select a country it would display a the provinces/states of the country, and then depending on the province/state, it would display the cities.
I know others want this, and I am aware that buddypress used to have something like this, so please bring this back.
Change History (3)
#2
@
15 years ago
@cnorris23
It was actually a core item back in the BP 1.0 days, but was removed due to shoddy code. It might make its way back in BP 1.3.
#3
in reply to:
↑ 1
@
15 years ago
Replying to cnorris23:
You can create as many profile fields as you wish already. If you want a "Location" profile field, just create it and populate it with you lists of countries/states/provinces. In regards to "chain selection," this is an area for a plugin.
One issue with the current implementation (besides having to manually spend a long time to enter the country names) is that it's impossible to allow the value and name of the dropdown item to be different. This prevents you from using the 2 digit country ISO codes to store country information (which is the standard method used across the web). E.g. if you want to have the option to store "The Netherlands" as "NL". The current implementation requires the name and value of the selectable options to be identical.
You can create as many profile fields as you wish already. If you want a "Location" profile field, just create it and populate it with you lists of countries/states/provinces. In regards to "chain selection," this is an area for a plugin.
If this was in fact in core (I haven't seen it, but that doesn't mean it's not so), then it was removed for a reason, and it's likely to stay that way. As it stands, you can do all this in a plugin or the functions.php file of your theme.