Feature #1199
Add Option for Open Text Field to BP Profile Checkbox Fields
| Status: | Assigned | Start date: | 09/25/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | BuddyPress | |||
| Target version: | 1.4 |
Description
On our profile fields, we now ask members to indicate whether they are faculty, administrators, staff, grad students, or "Other." We had hoped to have an open text field in place of that "Other," but that doesn't seem possible right now -- one either has to choose textboxes or checklists or buttons, etc., when setting up profiles.
Related issues
History
Updated by Boone Gorges 8 months ago
This is a pretty big job, as it will involve doing some gutting of the way profile fields work. Proposing we boot until 1.4.
Updated by Boone Gorges 6 months ago
- Target version changed from 1.3 to 1.4
Opened a BP ticket: http://buddypress.trac.wordpress.org/ticket/3775
Updated by Boone Gorges about 1 month ago
Ray, I'm leaving this assigned to me, though you're welcome to it if it sounds fun to you.
Updated by Boone Gorges about 1 month ago
Here's the status of this ticket.
I spent some time this afternoon exploring the possibility of a BP patch. I ran into a couple problems. First, I was pretty unsure about how to make the admin UI make sense. Second, and more importantly, BP's xprofile code is really convoluted, and making this kind of change would require extensive rewrites to the core code, to ensure proper scalability.
So I went a different route and wrote it as a plugin, which is pretty rough around the edges, but works. When you are editing a profile field in the Network Admin, you'll see an option to enable an "Other Field". When set to 'Yes', users editing their profile will have an option at the end of their list:
[ ] Other [textbox]
Note that, at the moment, this only works for checkboxes. I can add radio button support in the future if you need it.
The changes are on cdev, where I have also gone ahead and modified the Role field appropriately. Please have a look and let me know whether you think this is workable for now. Thanks.