SMF Support > SMF 2.0.x Support
Custom Profile Fields Not Working
Arantor:
That's because it's not there. The whole point of PHP is that it is regenerating HTML dynamically to suit the situation.
The custom field's name is injected into the code given there as necessary. (How could it seriously have the base HTML for every possible name and type of every possible custom field?)
Change the 30 which dictates the size of the field.
designer2012:
It's not the 30 that I want to change though, this is the page:
http://tinyurl.com/cfd62dk
I only want to change the width of the 3 at the bottom
Arantor:
Change them how exactly?
designer2012:
The width of the input box/ text field is too wide on the Caravan Number and Full Name, I would like to reduce it.
Arantor:
Change the code I posted to:
--- 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="30" value="', $field['value'], '" tabindex="', $context['tabindex']++, '" ', $field['input_attr'], ' class="input_', $field['type'] == 'password' ? 'password' : 'text', '" />';
--- End code ---
That will set them to a size of 30 rather than 50.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version