18 Oct 2016 Edited #1

MyDropzone 1.2

MyDropzone replaces MyBB's default attachments behavior with a reliable drag and drop solution (Dropzone.js) which uses AJAX instead. Uploading an attachment becomes extremely easy and fast.

MyDropzone adds 1 stylesheet and 3 templates which overwrite the default ones during runtime. Existing templates are not edited nor deleted.

Minimum requirements

PHP 5.4
MyBB 1.8.0


MyDropzone does not come with many complicated features other than being a neat replacement for the attachments box, and that's pretty much it. MyDropzone inherits all the existing attachments features – except for approving/unapproving, which is not available in the current version. A special mention goes to Imgur.com support which lets your users upload images anonymously to Imgur.com and the generated URL will be added to their messages as soon as the upload finishes.

Quick reply attachments

MyDropzone adds support for posting attachments from quick reply. However, it does not edit any templates, so in order to use this functionality you need to alter templates by yourself. This decision was made because in the past, many lamented that a particular functionality in other plugins was not working while they were using a custom theme and the search and replace routine was not able to find the associated pattern.

If you want to enable your users to post attachments from quick reply, edit your showthread_quickreply template, and add the following variable wherever you want the box to appear:

This loads nothing but the post_attachments template as it does in New Reply, New Thread, Edit Post, etc.. Once you style the attachment box, quick reply automatically inherits the same styling.

Multiple attachments simultaneously

MyDropzone supports uploading multiple attachments at the same time. Just drag and drop how many attachments you want to upload, and it will handle all of them at once till the maximum limit (which inherits from the attachments system settings) is reached.

This feature is also available on stock MyBB 1.8.19 onwards.

Imgur.com support informations

How to get the Client ID

In order to upload images to Imgur, you need to enter a Client ID in MyDropzone settings, otherwise the plugin will fall back to default server uploading.

If you do not have an Imgur.com account, register for free and go to this page to create a new application. Fill the informations and select Anonymous usage without user authorization under Authorization type.

When you have finished, go to this page and copy the Client ID, add it to MyDropzone settings and enjoy.

Rate limits

Imgur.com limits their API usage to 1250 uploads per day. Although this should be ok with most of MyBB boards out there, if you are running a big board (100k+ users) you may want to switch to normal image handling. For more informations on limitations imposed by Imgur.com, visit this page.

Notice under the attachment box

Due to the fact that MyDropzone does not edit templates, I have added a notice to the mydropzone_attachments_new template informing users that their images are posted to Imgur. If you are not willing to use this feature, delete the corresponding HTML you can find in the template.


You can completely customize MyDropzone's appearance by tweaking with its templates (MyDropzone Templates Group) and its stylesheet (mydropzone.css). Support will be given when possible.


MyDropzone is compatible with MyBB 1.8.0+ and PHP 5.4+. Browser compatibility is listed on Dropzone.js documentation.


[Image: iRGMPtG.png]
[Image: UhyhyjY.gif]


A Basic, Advanced or Ultimate subscription is required to download MyDropzone (click here to subscribe). Alternatively, you can perform a single purchase by adding the item to your cart and checkout at a later date. You can purchase using PayPal or several cryptocurrencies. Every successful payment lasts forever and may be refunded within 30 days if you are not satisfied.

Before purchasing or subscribing, read the End-User License Agreement (EULA).
Filename Size Downloads
MyDropzone 1.2.zip
30.04 KB 41
Enes Palit, LIONHAERT, Tac like this post
Shade 13 Mar
Thank you for your report, I can confirm the issue. Will be fixed in the next update. If you want to apply the patch manually in 1.2, open inc/plugins/mydropzone.php, find around line 383:

$attachwhere "pid='$pid'";
$attachwhere "posthash='".$db->escape_string($posthash)."'";
Replace with:

$attachwhere "posthash='".$db->escape_string(md5($thread['tid'].$mybb->user['uid'].random_str()))."'"
Seeker-Smith 14 Mar Edited
So I'm removing the whole section or just the $attachwhere = "posthash='" line??

I've just changed the one line and it does appear to be working correctly
Shade 14 Mar
The whole section.
Seeker-Smith 14 Mar
I get the same issue when I change the whole section. All my attachments show.
Shade 14 Mar
Sorry, you also have to add:

to the global line above.

So, find on line 369:

global $mybb$forumpermissions$pid$db$templates$lang$attachbox$theme
Replace with:

global $mybb$forumpermissions$pid$db$templates$lang$attachbox$theme$thread
Seeker-Smith 14 Mar
That did the trick. Thanks!!
Seeker-Smith 18 Mar
Hi Shade
I hope are getting better for you over there. Canada where I am is in lock down (3 weeks late).

Anyway I don't know if you can help or offer a suggestion. I'm using MyBBlog as a plugin and I'd like to add the attachment {$attachbox} to the editor. Do you think it's possible?
Shade 20 Mar
Unfortunately, third party plugins are not supported.
Seeker-Smith 20 Mar
I understand.
My forum members like to upload images to the site. I mean, they like that the images are hosted on my server rather than on a different server. They want to copy the link of the image from another site and quickly upload it to my server.

I suggest you add this: Link address field when uploading images to attachments. The image on the external server should be automatically uploaded to my server. Like uploading images from a computer. The only difference is with the url.

Sorry for my bad english, i hope you understand.