Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
other
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
30 Jan 2007 at 05:49 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vm commentedSituation exists here at drupal.org as well.
Can be seen by logging out, then clicking on the new account link
Comment #2
Sam308 commentedFor more information, reference the following topic: http://drupal.org/node/114083
Comment #3
Sam308 commentedWhen a solution is found or a bug is fixed, is it possible to offer the completepatched module file(s) in addition to the patches ?
It would be nice if you can also offer in addition to the patches, the complete updated module files with the patches already applied. Some of us users are not PHP programmers and find it difficult to edit code. It is also confusing when multiple patches are offered, which ones to apply, 1, 2, or all of them.
I just want to introduce some simplicity to this process so that all users can benefit.
Thanks
Sam308
Comment #4
vm commentedPlease don't change the version and especially the title of the issue itself. A title about a desire for patched files wont get looked out. Patched files would be released in the 5.x-dev version when patches are rolled into HEAD.
Comment #5
vm commentedand please leave it as a bug report not a support request. There is no need to change anything I added when I submitted the issue. Thanks.
Comment #6
ohzbees commentedYes, this is VERY confusing to new users, because all my general instructions for what fields to fill in is presented AFTER the form fields themselves.
I tried adding different categories of profile fields, and _sometimes_ they will appear BELOW the account information fields, but there are always some that remain above it. Very strange behavior. I am trying to see a pattern....
--Neil
Comment #7
vm commentedI found no pattern while continually testing. I'd imagine another patch will be necessary. I may roll back to 5.0 and apply the security patch manually until this is sorted out.
Comment #8
adixon commentedI've just encountered this bug in the new security release of 4.7.6 as well. It's the profile module, which is now setting it's weight in the user registration/edit form. In 4.7.6, you'll see the line
$w = 0was added. I fixed mine by setting it to 1 instead. You could also fix it within your theme using the forms api, but I think I'd call this a bug siince this default behaviour is clearly not desirable.
Comment #9
adixon commentedAhd here's a patch.
Comment #10
adixon commentedChanged the version and status.
Comment #11
killes@www.drop.org commentedapplied to the 4.7 branch.
Comment #12
drummDoes not apply cleanly.
patching file profile.module
Hunk #1 FAILED at 619.
1 out of 1 hunk FAILED -- saving rejects to file profile.module.rej
Comment #13
Sam308 commentedI can verify the patch does work in drupal 4.7.6.
I did not patch the profile module using the patch method. I manually made the changes to the profile module file and then uploaded it to the web server.
Sam Raheb (sam308)
Comment #14
adixon commentedOkay, and here's the patch ported to 5.1 for your attention. It's the same one, the patch just applies to a different line because of some code refactoring between version 4.7 and 5.
If you want to fix it yourself, just edit line 626 and change w = 0 to w = 1.
Comment #15
drummCommitted to 5.
Comment #16
gábor hojtsyIt would be great to get some testing reports of this patch with Drupal 6. Does it still solve the problem. Although profile module was largely untouched, the user module, profile module and form API interaction could have changed. Please test against Drupal 6!
Comment #17
webchickConfirmed that the problem still exists in 6, and patch solves the issue. To reproduce, create profile field "Gender" or something and check the box to display on registration form. When you visit the registration form, the "Gender" selectbox will appear above username/password.
Comment #18
gábor hojtsyThanks for the testing and the updated patch. I also though it would be great to rename $w to $weight, to reflect what it means, so went ahead and done this. Committed!
Comment #19
(not verified) commentedComment #20
gauravporwal commentedDear all,
I am new to Drupal.
I want to design a customized user -registration form. In the front pages there are three images, based on the IMAGES a value is passed in /user/register?cat=category1. I want to display this category in the user/register form. I have written a custom module to included a fieldelement 'textfield' with default value %get[cat] but it is not displaying the value in the textfield.
$fields['user_info']['cat_type']=array(
'#type'=>'textfield',
'#description'=>t('Displays the category /Rold played by the user'),
'#default_value'=>'%get[cat_name]',
'#disabled'=>'true',
);
and also is there a way to change the order of elements in the user/register form ( including the username and email )