Hi,
i'm using content profile with some fields.
The module works in registration form with Logintoboggan and Captcha module.

The problem is that the group of content profile fields are displayed ABOVE the UserName, E-mail and password (logintoboggan) fields.

I tried to change weight values in system table with many values combinations, without success.

How can i display this before the content profile fields? What values can I set for weight?

Thanks!

P.S.: sorry for my bad english!

Comments

merto87’s picture

Category: support » bug
Priority: Normal » Critical

I've resolved with a little patch.

The weight module is IGNORED because the array $form[$key] is overwrited.

The code is:

@line 34 in cp/module/content_profile_registration.module:
$form[$key] = $node_form[$key];

in

$form[$key][] = $node_form[$key];

The weight system value is now respected.

Is it a bug?

merilainen’s picture

I changed my value from
$form[$key] = $node_form[$key];
to
$form[$key][] = $node_form[$key];
and it seems to be working.

Are there any other problems which might occur from this change in the code?

fago’s picture

Status: Active » Closed (fixed)

Closing old issue, please reopen if the problem persists.