MyBB Community Forums

Full Version: Add multiple attachments automatically or with one click
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to Add multiple attachments automatically or with one click??  What I am asking let say you upload 25 images to the forum how can you add them automatically or with a one click button so you do not have to click on each image to add them to a post??

I have tried this suggestion https://community.mybb.com/thread-233717...pid1371586 it does not work I have the same problem as the user in the last post of the thread clicking on the button does nothing.  I am not using any advanced posting plugin and I am using a advanced quick reply plugin which should not be messing with this new button.  I do have the MyDropzone plugin installed with this plugin the default uploader on my forum is broken

Any ideas how to get this button working I am using the newest version of Mybb??
If you use the last version of MyBB, the attachments use a drag&drop zone allowing multiple files in one time
If you only have a button and not the zone, check your templates which are probably too old
Check post_attachment_new template, it must be:
<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">
		<div id="upload_bar" style="background: #0066A2; height: 5px; width: 0%;"></div>
		<div id="dropzone" style="padding: 50px 0; margin: 5px 10px 10px; cursor: pointer; border: 2px dashed #CCC; text-align: center;">
			<div style="pointer-events: none;"></div>
		</div>
	</td>
</tr>
I added the code in previous post to the theme and the button code from the other thread button still does nothing when you click on it
does it work in the MyBB standard style?

Using such an outdated style definitely makes no sense!
Unless you have a lot of time and knowledge to bring it up to date.

My tip: throw it away
(2024-02-06, 12:26 PM)bv64 Wrote: [ -> ]does it work in the MyBB standard style?

Using such an outdated style definitely makes no sense!
Unless you have a lot of time and knowledge to bring it up to date.

My tip: throw it away

There not much of a selection of themes that have been updated in the last year I would rather use a much better looking theme even if it has not had any updates in a few years

The default skin the uploader works just fine and the instert all button does not work on either the default or 1Point8 themes
(2024-02-06, 12:41 PM)Beavisguy Wrote: [ -> ]I would rather use a much better looking theme even if it has not had any updates in a few years
If appearance takes precedence over functionality, you have to do without innovations in MyBB
or ask the theme-designer to make the necessary updates