SMF Support > SMF 2.0.x Support

Custom Profile Fields Not Working

(1/3) > >>

designer2012:
Hi

I searched the forum and followed the instructions for adding additional custom fields to the registration for:

Under Core Features I have enabled Advance Profile Fields, then under Features and Options>Profile Fields I have added additional fields (i.e full name,  property number) and selected to have them show on registration (yes and require entry)

But when I logout as admin and get to the registration page they aren't there, nor are they anywhere under the Profile tab.

Am I missing something or doing something wrong?

Thanks in advance

designer2012:
Sorted that part, I forgot to check the Active box.

Now I need to change the width on the input fields I looked in the default theme>Register.php but can't see it, anyone?

designer2012:
I know the code I need to change but can't seem to find which file it's in, anyone know which file this line is in

<input type="text" class="input_text" value="" size="50" maxlength="255" name="customfield[cust_fullna]">

Thanks

Arantor:
Textboxes on the registration page are set up with:


--- Code: --- // Maybe it's a text box - very likely!
elseif (in_array($field['type'], array('int', 'float', 'text', 'password')))
echo '
<input type="', $field['type'] == 'password' ? 'password' : 'text', '" name="', $key, '" id="', $key, '" size="', empty($field['size']) ? 30 : $field['size'], '" value="', $field['value'], '" tabindex="', $context['tabindex']++, '" ', $field['input_attr'], ' class="input_', $field['type'] == 'password' ? 'password' : 'text', '" />';

--- End code ---

in Register.template.php.

designer2012:
Sorry but I still can't see this line <input type="text" class="input_text" value="" size="50" maxlength="255" name="customfield[cust_fullna]"> in Register.template.php

I can see others for password, username but not the one above, I'm not a PHP guru so is it code I'm suppose to add in there somewhere rather than it already being there?

Navigation

[0] Message Index

[#] Next page

Go to full version