If a custom profile field which is set to show on the user registration form is created it comes above the "User registration guidelines".

I think the 4.7 behaviour was to put the custom profile fields at the bottom, but I think it's right UI wise to have them above the username and password. The "User registration guidelines" should always come first though.

Screenshot attached.

CommentFileSizeAuthor
drupal_registration.png12.28 KBanders.fajerson

Comments

anders.fajerson’s picture

Version: 5.0-beta1 » 5.x-dev
senpai’s picture

Subscribing. Also bumping the issue again to make sure it stays on our conscience.

timtyler’s picture

Version: 5.x-dev » 5.1
Component: user.module » profile.module

Core hack of profile.module in Drupal 5.1 fixes this problem.

Change:

From:

function profile_form_profile($edit, $user, $category, $register = FALSE) {
  $result = _profile_get_fields($category, $register);
  $w = 0;

To:

function profile_form_profile($edit, $user, $category, $register = FALSE) {
  $result = _profile_get_fields($category, $register);
  $w = 1;

--
__________
|im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.

senpai’s picture

Status: Active » Fixed

Thanks for the core hack. Apparently, someone's turned this hack into a proper core patch, and it got committed against D5.2. I'm marking this issue as fixed, since on one of my test sites, D5.2 correctly weights these User Registration fields.

manishrustagi’s picture

Hi fajerstarter,

Can you help me to how to add new field on top in user profle like attached PNG.

Please help me reagrd this.

Thanks

Anonymous’s picture

Status: Fixed » Closed (fixed)
LIQUID VISUAL’s picture

This may be a side issue, but we also want to be able to translate the user registration guidelines so that new users can read them in only their chosen language before they register.

People are charging ahead with 6.x and now 7.x while the basic idea of being multilingual is not sorted out on any previous versions. This is looking s lot like Microsoft!

alienzed’s picture

Version: 5.1 » 6.13

function hook_form_alter(&$form, $form_state, $form_id) {
switch($form_id) {
case 'user_register':
$regGuide = t($form['user_registration_help']['#value']);
$form['user_registration_help']['#weight'] = -11;
$form['user_registration_help']['#value'] = $regGuide;
}
}

you'll need to put that in a module