When you add a custom profile field to the user registration page, using the core profile module, the "user registration guidelines" text moves to below the default "Account information" fieldset, instead of above it.
Steps to reproduce:
- Install clean Drupal 6.4
- Make sure you're logged in as admin
- Enable profile module
- Go to admin/user/settings and enter some text for "User registration guidelines"
- Log out
- Go to user/register; notice that the text you entered for "User registration guidelines" is above the user name field, as it should
- Log in as admin
- Go to admin/user/profile and add an arbitrary custom profile field; make sure to check the "Visible in user registration form." check box
- Log out
- Go to user/register; notice that the text you entered for "User registration guidelines" is now below the account information fieldset, instead of above it.
Please note that just enabling the profile module has no effect; only when you actually add a custom profile field, the bug manifests itself.
OS: Windows + Linux
Web server: Apache 2.2
PHP: 5.2.5
Drupal path: both tested it on http://localhost/drupal/ and http://localhost:8080/ (with clean URLs enabled)
Please feel free to ask for more details if you need to.
Comments
Comment #1
svdoord commentedThe bug also applies to 6.5
Comment #2
ahmed.othman commentedThe problem was that User registration guidelines wasn't assigned a right weight.
Here is a patch to solve the problem in 6.6
Comment #3
ahmed.othman commentedComment #4
marcoBauli commentedit applies and fixes the problem.
Comment #5
gábor hojtsyI've fixed a whitespace issue and rewrote the comment in the patch. Also ensured that it does not apply to Drupal 7. The user registration help was migrated to a help block in Drupal 7, which makes it appear wherever the help region is (usually above the content). So this only applied to Drupal 6 and probably Drupal 5. Also, verified that profile module uses the default delta for the weight field, which makes it have -10 to 10 deltas, so a -20 should ensure that our item always appears before the profile fields.
Committed the attached patch to Drupal 6.
Marking needs backport for Drupal 5.
Comment #6
marcingy commentedMarking as won't fix as d5 is end of life.