Account Informtion has always been the first form fields to fill out during registration.

When creating a new profile field, which will be held in a new category, The new category is listed above Account Information. This is true of 4.7.6 as well.

Comments

vm’s picture

Situation exists here at drupal.org as well.

Can be seen by logging out, then clicking on the new account link

Sam308’s picture

For more information, reference the following topic: http://drupal.org/node/114083

Sam308’s picture

Title: Order of Registration fields changed. » It is possible to offer the patched module file(s) in addition to the patches ?
Version: 5.1 » 4.7.6
Category: bug » support

When 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

vm’s picture

Title: It is possible to offer the patched module file(s) in addition to the patches ? » New profile fields added to registration form show above Account Information.
Version: 4.7.6 » 5.1

Please 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.

vm’s picture

Category: support » bug

and 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.

ohzbees’s picture

Yes, 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

vm’s picture

I 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.

adixon’s picture

I'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 = 0

was 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.

adixon’s picture

StatusFileSize
new414 bytes

Ahd here's a patch.

adixon’s picture

Version: 5.1 » 4.7.6
Status: Active » Needs review

Changed the version and status.

killes@www.drop.org’s picture

Version: 4.7.6 » 5.1
Status: Needs review » Reviewed & tested by the community

applied to the 4.7 branch.

drumm’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Does 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

Sam308’s picture

I 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)

adixon’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
StatusFileSize
new413 bytes

Okay, 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.

drumm’s picture

Version: 5.1 » 6.x-dev

Committed to 5.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Needs review

It 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!

webchick’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new950 bytes

Confirmed 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.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks 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!

Anonymous’s picture

Status: Fixed » Closed (fixed)
gauravporwal’s picture

Component: profile.module » other
Assigned: Unassigned » gauravporwal
Category: bug » support
Status: Closed (fixed) » Active
Issue tags: +user-registration

Dear 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 )

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.