2013-05-07, 08:44 PM
I want to change the browse button But have been unsuccessful I have tried lots of things. I got this code but do not know how to get it to work with mybb correctly.
<div id="FileUpload">
<input type="file" size="22" id="BrowserHidden" onchange="getElementById('FileField').value = getElementById('BrowserHidden').value;" />
<div id="BrowserVisible"><input type="text" id="FileField" /></div>
</div>
This code I have to get it working with post_attachments_new template<tr>
<td class="trow1" width="1"><img src="{$theme['imgdir']}/paperclip.png" alt="" /></td>
<td class="trow1" style="white-space: nowrap"><strong>{$lang->new_attachment}</strong> <input type="file" name="attachment" size="30" class="fileupload" /></td><td class="trow1" align="center">{$attach_update_options} <input type="submit" class="button" name="newattachment" value="{$lang->add_attachment}" tabindex="13" />
</td>
</tr>
I tried different ways of combining code but I can not get it function right Hoping someone can help with this.