Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2089 closed enhancement (wontfix)

Location Profile Field

Reported by: nickbwatson's profile 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)

#1 follow-up: @cnorris23
15 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

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.

#2 @r-a-y
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 @Xspringe
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.

Note: See TracTickets for help on using tickets.