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:

  1. Install clean Drupal 6.4
  2. Make sure you're logged in as admin
  3. Enable profile module
  4. Go to admin/user/settings and enter some text for "User registration guidelines"
  5. Log out
  6. Go to user/register; notice that the text you entered for "User registration guidelines" is above the user name field, as it should
  7. Log in as admin
  8. Go to admin/user/profile and add an arbitrary custom profile field; make sure to check the "Visible in user registration form." check box
  9. Log out
  10. 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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

svdoord’s picture

Version: 6.4 » 6.5

The bug also applies to 6.5

ahmed.othman’s picture

Version: 6.5 » 6.6
Assigned: Unassigned » ahmed.othman
Status: Active » Needs review
FileSize
863 bytes

The problem was that User registration guidelines wasn't assigned a right weight.
Here is a patch to solve the problem in 6.6

ahmed.othman’s picture

Assigned: ahmed.othman » Unassigned
marcoBauli’s picture

Status: Needs review » Reviewed & tested by the community

it applies and fixes the problem.

Gábor Hojtsy’s picture

Version: 6.6 » 5.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)
FileSize
860 bytes

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

marcingy’s picture

Status: Patch (to be ported) » Closed (won't fix)

Marking as won't fix as d5 is end of life.