Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
profile.module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Mar 2005 at 04:06 UTC
Updated:
5 Nov 2010 at 09:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
matt westgate commentedWoops, full patch including database updates.
Comment #2
matt westgate commentedFixing an uninitialized array.
Comment #3
matt westgate commentedCleaned up and ready to go for HEAD.
Comment #4
nevets commentedIn the function profile_form_profile() for the case 'selection' need to initialize the array options.
It would look something like this
Without this if a catagory has more than one select list each list builds apoun the previous one.
Comment #5
Uwe Hermann commentedPatch doesn't apply anymore.
Comment #6
anarcat commentedHere's an updated patch that should apply cleanly on a 4.6.3 tree.
Note that we had to do this request to have the thing work at all:
ALTER TABLE `profile_fields` ADD `multiple` INT( 2 ) DEFAULT '0';
Comment #7
anarcat commentedOups! Sorry I messed with the title. :)
Comment #8
moshe weitzman commentedpatches should be against head or else CVS team will not review.
Comment #9
anarcat commentedTrying again, this time against HEAD. Note: I haven't tested the patch, but it should work provided the API changes in form functions didn't change associated functionality and I didn't get confused by the new stuff. :)
I'm sorry I don't have time to test this right now, but at least we have something to work with...
Comment #10
cb921 commentedThis line in the patch seemed to be causing a crash on my 4.7 setup:
+ $form['fields']['multiple'] = array('#type' => 'checkbox', '#title' => t('Multiple select'), '#default_value' => $edit['multiple'], t('Allows users to select more than one item in this field.'));
I added '#Description' =>
+ $form['fields']['multiple'] = array('#type' => 'checkbox', '#title' => t('Multiple select'), '#default_value' => $edit['multiple'], '#Description' => t('Allows users to select more than one item in this field.'));
and the crashing ended, and it works fine and dandy.
What I am trying to do is much the same as what you have done here, but I want the multiple select's interface to the user, to be a set of checkboxes in two columns. I'm going to keep trying on my profile.module to do this, and if I actually succeed, I'll upload the patch file. If not, which at my level of cluelessness seems likely, then consider this a loser feature request from a dude who is not contributing yet.
Comment #11
cb921 commentedAs checkboxes, already exists.
http://drupal.org/node/33044
Comment #12
moshe weitzman commenteddoesn't apply cleanly
Comment #13
__Tango commentedFixed patch so it applies cleanly to today's version of profile.module in CVS (version 1.132).
Comment #14
moshe weitzman commentedsigh - setting to drupal6. someone please resubmit this :)
Comment #15
moshe weitzman commentedlets close this and continue at http://drupal.org/node/33044 since that has a working patch for 4.7
Comment #16
migas commentedIs it possible to deliver a patched version of profile.module? Plenty of frustrated hours for those who have to install "patch" and fail several times would not be necessary. Thank you, mike
Comment #17
Junesun commentedI absolutely need multiselect in my profiles, and for a very legitimate reason: users are supposed to select the languages they speak, the music styles they like, the interests they have from a pre-defined list (to keep it translateable) and I'm not going to create hundreds upon hundreds of checkboxes for that. So my heartfelt thanks to those who have worked on a solution here!
One more issue: with the patch I applied, i18n_profile can't translate the items from a multiselect selectbox anymore. I need to retain that functionality. Is anybody up to patching i18n_profile for this functionality? I can offer a small compensation, contact me.
Comment #18
jsaints commentedFYI, I for those following here... I just posted a related patch that uses a "checkbox group" instead of a multiple select field. The patch offers similar functionality to those offered here.
If the checkbox group works, we could easily modify the patch for multiselect boxes as well.
http://drupal.org/node/33044#comment-1134877
Thanks
Comment #19
Equ commentedI also need multiselect functionality in profile module. Any updates?
Comment #20
stephenrobinson commentedsubscribe
Comment #21
stephenrobinson commentedI have resorted to looking at http://drupal.org/project/profile_checkboxes