This feature request stemmed from this forum post: http://drupal.org/node/49680#comment-166007
With the standard profile settings options, I can choose from:
* single-line textfield
* multi-line textfield
* checkbox
* list selection
* freeform list
* URL
* date
However, I'd like to have the option to create radio buttons in the user profile.
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | profile_radios_6_17.patch | 3.4 KB | kiyose |
| #16 | profile_radio.patch | 4.78 KB | jpitassi |
| #14 | profile.patch | 3.52 KB | berenddeboer |
| #5 | profile.radios.patch | 7.19 KB | bdragon |
| #1 | profile.patch_2.txt | 6.3 KB | adixon |
Comments
Comment #1
adixon commentedHere's a quick and only slightly soiled patch that adds both radio-style options as well as multi-checkbox options. Not thoroughly test yet, I just happenned to have the same requirement on a current project.
Comment #2
adixon commentedSo far, so good, changing status to get some feedback.
Comment #3
killes@www.drop.org commentednew features go into devel version.
Comment #4
webchickFile to patch: modules/profile/profile.module
patching file modules/profile/profile.module
Hunk #1 succeeded at 38 (offset 12 lines).
Hunk #2 succeeded at 280 (offset 45 lines).
Hunk #3 succeeded at 298 (offset 45 lines).
Hunk #4 succeeded at 485 (offset 54 lines).
Hunk #5 FAILED at 512.
Hunk #6 succeeded at 555 (offset 54 lines).
Hunk #7 succeeded at 563 with fuzz 2 (offset 48 lines).
Hunk #8 succeeded at 583 (offset 48 lines).
Hunk #9 succeeded at 605 with fuzz 1 (offset 48 lines).
Hunk #10 succeeded at 715 (offset 50 lines).
Hunk #11 succeeded at 838 (offset 53 lines).
Hunk #12 succeeded at 847 with fuzz 2 (offset 53 lines).
1 out of 12 hunks FAILED -- saving rejects to file modules/profile/profile.module.rej
Comment #5
bdragon commentedFree reroll, courtesy Patch Bingo
Comment #6
bdragon commentedComment #7
birdmanx35 commentedFeature request -> 7.x-dev.
Comment #8
drdrup commentedTries on Drupal 6.0, but it didn't work right:
Comment #9
webchickComment #10
Freso commentedAdding to tracker. Will hopefully be able to give it a glance when I get home. :)
Comment #11
gausarts commentedAny workaround for drupal 6? Thanks
Comment #12
mjunaiddar commentedHi,
m usein drupal 5.x; I tried to use the patch but its giving me the following:
File to patch: profile.module
patching file profile.module
Hunk #2 succeeded at 254 with fuzz 1 (offset -33 lines).
Hunk #3 succeeded at 272 (offset -33 lines).
Hunk #4 succeeded at 464 (offset -42 lines).
Hunk #5 succeeded at 491 with fuzz 1 (offset -43 lines).
Hunk #6 succeeded at 534 (offset -42 lines).
Hunk #7 succeeded at 542 (offset -42 lines).
Hunk #8 succeeded at 562 (offset -42 lines).
Hunk #9 succeeded at 584 (offset -42 lines).
Hunk #10 FAILED at 694.
Hunk #11 succeeded at 813 (offset -77 lines).
Hunk #12 succeeded at 822 (offset -77 lines).
1 out of 12 hunks FAILED -- saving rejects to file profile.module.rej
any help please ???
Thanks
Junaid
Comment #13
gomez_in_the_south commentedA method to implement radio buttons on the profile page was posted in the thread referenced at the beginning of this post.
See: http://drupal.org/node/49680#comment-633585
Comment #14
berenddeboer commentedHere a patch that works against Drupal 6.13. Limited testing so far, but appears OK.
Comment #15
agogo commentedIts insane this isnt core already.
Comment #16
jpitassi commentedI found an error in your patch. It was not clearing the $options array so all previous options were showing up in the radio button options. I added a fix for it so you can have multiple radio buttons on the profile. I have not extensively tested, but seems to working fairly well.
-Jacob Pitassi
http://www.stauffer.com
Comment #17
bfbishop commentedI applied and am using your patch. It works great. Thanks for the code.
Comment #18
julie.metivier commentedThank you for your code
Comment #19
beauz commentedThanks, I am using this patch and can confirm it is working well. Can we get this commited?
Comment #20
beauz commentedComment #22
mcrittenden commentedSub.
Comment #23
kiyose commentedI've updated the patch against 6.17.
Comment #25
damien tournoud commented6.x is not open to feature request. For Drupal 7 onward, the profile module is obsolete. Won't fix.
Comment #26
younker commentedhere is the solution
http://drupal.org/project/profile_checkboxes
Comment #27
sivarani commentedreally "profile.radios.patch" good its works fine for radio button but some error is showing for 'multiple checkbox'.
warning: Invalid argument supplied for foreach() in C:\wamp\www\projects\DRUPAL1\v1.0\includes\form.inc on line 1211.
i need another help, for register page. I need to integrate my own design in registration page how could i . pls i need help.
Comment #28
saraswathy commentedComment #29
saraswathy commentedComment #30
westwesterson commentedInstall the profile checkboxes module instead of patching core... You can still use css to style things, and you can rearrange checkboxes as if you had used the patch.
Comment #31
saraswathy commentedVocabularies is not listing in select box it prints an 'Array ' instead of this . this issue is only in my theme
its working fine in drupal other theme . please find the attachment
Comment #32
westwesterson commentedshijianil, I admire you're dedication to solving your problem, but this is not the place to address your concern.
please create a new issue... this problem is entirely different than the one listed in the rest of this thread.
The problem you are having is with your theme, and most likely not drupal core, you should try posting that question in the theme's project issue queue, or try irc
If you are developing a custom theme you can also try posting in the forums.
Posting to this thread you will not receive the help you want for this particular issue.