Skip to main content
Topic: Registration Form (Read 1974 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Registration Form

Hello!

The Registration Form in my forum shows "Personal Text", "Location" and "Gender".

But when you write in this form, only the "Personal Text" is displayed in profile, not "Location" and "Gender".
Those two fields are empty, you have to edit your profile after registration and write or select it again.

Re: Registration Form

Reply #1

 emanuele smells bug

Actually: personal text works for me, but neither location nor gender are properly set during registration.
Bugs creator.
Features destroyer.
Template killer.

Re: Registration Form

Reply #2

Yep, a bug.

The fix is to add all the fields to the list (probably some where left during the transition from "fields" to "custom fields").
In other words, in Register.controller.php, find:
Code: [Select]
		$possible_strings = array(
'birthdate',
'time_format',
'buddy_list',
'pm_ignore_list',
'smiley_set',
'personal_text', 'avatar',
'lngfile',
);
$possible_ints = array(
'pm_email_notify',
'notify_types',
'id_theme',
);

and replace with:
Code: [Select]
		$possible_strings = array(
'birthdate',
'time_format',
'buddy_list',
'pm_ignore_list',
'smiley_set',
'personal_text', 'avatar',
'lngfile', 'location',
'secret_question', 'secret_answer',
'website_url', 'website_title',
);
$possible_ints = array(
'pm_email_notify',
'notify_types',
'id_theme',
'gender',
);
Bugs creator.
Features destroyer.
Template killer.

Re: Registration Form

Reply #3

Thank you, emanuele! :)

Re: Registration Form

Reply #4

I forgot to xref the bug report: https://github.com/elkarte/Elkarte/issues/1857
Bugs creator.
Features destroyer.
Template killer.