I tried to make it a button directly in the editor but it doesn't put the attachment directly into the reply area straight away, so sorry but the best I have done is to turn it into a button outside of the codebuttons!
Not what you want but maybe it will move you nearer to doing it?
I tried it under the 'Smilies' and it looked like this:
[
attachment=46621]
But if you upload an image with a longer name then it pushes the editor around:
[
attachment=46622]
So went with bv64 idea and put it under the text area:
[
attachment=46619]
Which then works better with the file names:
[
attachment=46620]
As said, not what you want but maybe can help you
Just had a thought and another look .... so a bit closer to what you want.
Have split things up and now have the attachment upload 'button' under the 'Smilies' but the file links for insert stay under the main text area:
[
attachment=46624]
[
attachment=46623]
So now just a button (which you could make look however you wish) before uploads!
I forgot to say the changes made to do as the images show .... my silly daft old brain lol
It isn't a lot.
In your templates (this is on a 'default' theme, I know not what it would do on another theme)
post_attachments_new
I changed to:
<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="attachments[]" size="30" class="fileupload" multiple="multiple" /></td>
<td class="trow1" style="white-space: nowrap" align="center">{$attach_update_options} {$attach_add_options}</td>
</tr>
<tr style="display: none;">
<td class="trow1" colspan="3">
</td>
</tr>
post_attachments
I changed to:
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3" style="display: none;"><strong><center>{$lang->attachments}</center></strong></td>
</tr>
<tr>
<td class="tcat smalltext" colspan="3" style="display: none;">{$lang->attach_quota} {$lang->attach_usage} {$link_viewattachments}</td>
</tr>
{$newattach}
{$attachments}
</table>
newreply
In this template I moved the string attachbox as per bv64 but added some code which I took from the 'post_attachments_new' template .... so best way is to show the changes from string posticons down to below string multiquote_external
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong><br />{$smilieinserter}
<br />
<div id="upload_bar" style="background: #0066A2; height: 5px; width: 0%;"></div>
<div id="dropzone" class="button" style="background-color: #04AA6D; border-radius: 12px; max-width: 50%; margin-left: 25%; color: #fff; text-align: center; border: 2px solid #000000; font-weight: bold;">
<div style="pointer-events: none;"></div>
</div>
</td>
<td class="trow2">
<textarea id="message" name="message" rows="20" cols="70" tabindex="2" >{$message}</textarea>
{$codebuttons}
{$multiquote_external}
{$attachbox}
</td>
Don't know if that helps but lol
Oh also I changed the language file for the text "Click or drop some files here to upload..." to "Click to Upload" which was line 129 in
inc/languages/english/global.lang.php
Just thought .... if you do the above then you also need to change the newthread editor and the editpost editor (not sure if those are the correct names but you would need to change then as well to reflect the changes in newreply .... there are multiple editors (maybe also private message editor))