MyBB Community Forums

Full Version: Multiple custom fields with images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

I want to a add a multiple custom field with images, something like this:

http://www.marghoobsuleman.com/mywork/jc...index.html

This is the javascript working in the sample:

http://www.marghoobsuleman.com/jquery-image-dropdown


I try to add that code in usercp_profile_profilefields_multiselect, changing the default code:

<select name="profile_fields[$field][]" size="{$profilefield['length']}" multiple="multiple">
{$select}
</select>

For this:

<select name="profile_fields[$field][]" size="{$profilefield['length']}" multiple="multiple">
<option value="{$select}" data-image="images/juegos/{$select}.png">{$select}</option>
</select>

But don't work, any idea how to make it work?

Greetings.