MyBB Community Forums

Full Version: Minor Bug - Custom Profile Fields
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Custom profile fields of type "Select Box" have all of thier options displayed like a multi select. Example:
<select name="profile_fields[fid5]" size="20">

should really be;
<select name="profile_fields[fid5]">

As select boxes can only have one selected field anyway. There is no reason to display all of the elements.

This occurs on the AdminCP as well as the UserCP and is a relatively minor code change. Looks like a C&P oversight in the codebase.
I believe selects are already styled via css.
Tikitiki Wrote:I believe selects are already styled via css.

They may be but it's actually in the code that way.

An example is in /admin/users.php on line 211
Hi,

This is because you've got the "length" field set for the custom profile field.

In the case of selects and multiple selects, the length field sets the size of the select box.

So to get the size for your select boxes to the default, either set the length to 1 or remove the value from it.

Chris