I'm currently editing user profiles and have enabled new fields for full name, country, homepage, etc. as used on drupal.org. I would like to add a multiple select list box for languages spoken, but all I can get is a single-select combo (drop down) box. I don't see the option to enable multiple selections. How can I do this?

Thanks!

Comments

lemmax’s picture

To view an example of exactly what I want, just click "my account" on drupal.org and then click "edit".

dougvann’s picture

The functionality to offer a drop down select where multiple options can be selected is already available to you.

Here's the recipe. [some of this you have already done, but these forums get indexed and people land here who don't know the context of this reply] ;-)

1. Install CCK
2. Enable all modules under the CCK category
3. Go to Content Management -> Content Types
4. Select the Manage Fields option next to the content type that needs the field added to it
5. At the bottom of the form, under New Field, Add the Label, Field Name, and select "check boxes/radio buttons" Hit SAVE
6. Fill out the form as requested and for "Number of Values" select something greater than 1 so that users can select more than one option.
7. Save the form and go edit an existing node OR add a new one to see that you were successful.

For more CCK fun, check out the Lullabot CCK videos

- DougVann
- www.dougvann.com
- www.twitter.com/dougvann

lemmax’s picture

I'm aware of CCK and have used it several times before, but user profiles are not a content type and therefore can't be modified with the CCK. Please correct me if I'm wrong.

dougvann’s picture

I didn't realize that you were using the core PROFILE module. That is not the best choice.
I assumed you were using content_profile module at http://drupal.org/project/content_profile

1] Download and enable that. http://drupal.org/project/content_profile
2] Create a new content type and before you save the form to create it notice near the bottom that there is a checkbox for "use this nodetype as a profile" [or some similar text] be sure to check that node. AND be sure that the users of your site can create this nodetype.
3] now you can use CCK to create all the fields you want in the nodetype that you are using for the profile.

Be sure to disable the profile module so that you dont have 2 systems going at once.

Sorry for the confusion...
- Doug Vann
- Want to be a Drupal Ninja! Sure you do! Get the Lullabot Videos at http://store.lullabot.com/aid/550 Very well done and you can rewind and replay until you absolutely understand the content!

julie.metivier’s picture

Hello,

I've got a similar problem... but I'm already using the profile core module with users registered in the database. Is it too late to install and use this module? Could I use the modules together?

Thank you,
Julie

westis’s picture

Julie, you can use the Profile Migrate module to migrate existing profile fields to content type fields.

julie.metivier’s picture

Thank you westis for your reply, I will have a look at this module,

Cheers,
Julie

solian’s picture

sorry irrelevant.

linuxeasy’s picture

Hi All,

This is a bit customization on http://drupal.org/project/profile_checkboxes

which makes multiple-select-box on profile page Working.

Sorry as i dont know about creating a patch, i have posted a complete module with customization which can be directly enabled/disabled.

This module if used is a fully working and tested one!

Usage is same as you would use profile_checkboxes module. It give you a fourth option of creating a multi-select list-boxe when you create a new profile file which is usually yoursite.com/admin/user/profile/add/selection (see at bottom of this page after module installation).

Please find this module customized at http://drupal.org/files/issues/profile_checkboxes.zip

Thanks!
Linuxeasy!

merilainen’s picture

CCK has its problems also. I stumbled upon this thread, because I'm trying to find a way to have a combo field, called "languages spoken" and of course it should have a selector next to it so that the user can say how well is that language handled. How to achieve this?

Example:
English - Expert
Finnish - Mother tongue
Spanish - Intermediate
etc.

Anonymous’s picture

subscribing.

the CCK field should be something like "free input text" + "radio buttons select" all-in-one, where "Number of values" would allow you to actually input more than one "text+radio buttons list" combo.

dougvann's solutions seems to be a simple checkbox selection. not good if you want to be able to input any language in this case.