Click anywhere to close this dialog

Farewell

Great is the art of beginning, but greater is the art of ending
Henry Wadsworth Longfellow

I announce that I cease all development and activity in the programming universe indefinitely. My career has reached the turning point I was not expecting for at least another year, leaving me highly off guard and without laid-out plans for this hobby's continuity. I have begun a 5-year residency program in Neurosurgery which is clearly not compatible, time-wise, with programming.

I gave in all my passion for developing, and you gave me back your loyalty and trust, even when I did not deserve that much. Now it is the time for payback. I release all my present and past work as Open Source software, in the hope some talented developer will continue maintaining and expanding my vision of a modern, sleek forum software. The intrinsic flexibility of MyBB is the true hidden gem of an otherwise outdated codebase; I do hope the project can continue and be updated complying to the latest coding standards.

I hereby thank Euan, kawaii, andrewjs18, Ben, Matt, Omar G., effone, Eric J., Devilshakerz, Wildcard, JordanMussi and all the other team members I have had the opportunity to work with when I was a MyBB team member. I thank Tomm M, my mentor, who inspired me to pick up coding with his piece-of-art plugins. And finally, I thank all of you MyBBoost subscribers who have helped me getting through my toughest university years economically.

Yours sincerely, Filippo

MyDropzone 1.2

18 Oct 2016 Edited
#1
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

Features


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:

{$attachbox
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.

Customization


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.

Compatibility


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

Previews


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

Availability


MyDropzone is available for free. WARNING SIGN Support is discontinued due to my departure from programming. Read more why here.


This project is licensed under

MIT


A simple license with little to no use restrictions, except for author's crediting. Read the provided LICENSE file for more informations.

Permissions

Commercial use
Modification
Distribution
Private use
Limitations

Warranty
Liability
Conditions

License notice
Copyright notice
Filename Size Downloads
28.06 KB 186
Enes Palit, Tac, MichU And 2 others like this post
SZyMeX PL 29 Jul 2019 Edited
#51
Hi everyone,
I have the same problem as @Gangst3r

Uncaught Error: No URL provided.
    at new b (dropzone.js?v=1.1:1)
    at dropzone.js?v=1.1:2
    at Function.Dropzone.discover (dropzone.js?v=1.1:2)
    at Dropzone._autoDiscoverFunction (dropzone.js?v=1.1:2)
    at HTMLDocument.d (dropzone.js?v=1.1:2)
b @ dropzone.js?v=1.1:1
(anonymous) @ dropzone.js?v=1.1:2
Dropzone.discover @ dropzone.js?v=1.1:2
Dropzone._autoDiscoverFunction @ dropzone.js?v=1.1:2
d @ dropzone.js?v=1.1:2
jquery.js?ver=1813:formatted:1485 Uncaught Error: Dropzone already attached.
    at new b (dropzone.js?v=1.1:1)
    at Object.init (rules.js?v=1.1:116)
    at HTMLDocument.<anonymous> (newreply.php:642)
    at l (jquery.js?ver=1813:formatted:1403)
    at c (jquery.js?ver=1813:formatted:1414)
Has it been fixed? I have MyBB 1.8.21
Shade 29 Jul 2019
#52
Hi, this is not fixed yet. I have planned to do a major rework of MyDropzone after BankPipe beta 7 and Flyover 2.1 are out, in some weeks.
Shade 31 Jul 2019
#53

MyDropzone 1.1 has been repackaged


MyDropzone has been repackaged and it's now working on newer MyBB versions (up to the latest, 1.8.21). The previous release was reported to be faulty on MyBB 1.8.20+, thus why the plugin has been repackaged with an updated version which makes it compatible with jQuery 3.

The plugin's version has not been changed. A new version is planned in the near future which will add functionalities.

If you have MyDropzone 1.1 currently installed on your board:
KEYCAP 1 uninstall MyDropzone 1.1. If you have a custom style, save your templates beforehand
KEYCAP 2 delete jscripts/rules.js and jscripts/dropzone.js
KEYCAP 3 upload the new version
KEYCAP 4 install and activate from the Plugins panel.

If you do not have MyDropzone 1.1 installed, you can skip the first two steps.
MichU, Gangst3r, ShockPuppet like this post
Shade 23 Nov 2019 Edited
#54

PUBLIC ADDRESS LOUDSPEAKER MyDropzone 1.2 is out


MyDropzone 1.2 is now available. Changelog:

SQUARED NEW added an "Insert into post" button which makes it easy to include any attachment into the current post
SQUARED NEW the "remove" button has been moved to a handy cross icon in the top left corner of each attachment
SQUARED NEW uploaded attachments will show the thumbnail if available
BUG fixed an issue with the usage quota being messed up if switching from KB to MB

To upgrade:
KEYCAP 1 uninstall MyDropzone. If you have a custom style, save your templates and stylesheet beforehand
KEYCAP 2 upload the new version and replace the old files
KEYCAP 3 install and activate MyDropzone from the Plugins panel

Note that templates must be updated in order to let the new version work.
Seeker-Smith 4 Mar 2020 Edited
#55
How do I remove the "Insert into post" link?

I also don't see this?

Whoops and this should go "Images are uploaded to Imgur.com and automatically added to your message. " as we're not using that service.
Shade 5 Mar 2020
#56
MyDropzone is not demo'ed here, MyBBoost does not use it at the moment. Styling is up to your preference.

To remove the "insert into post" link, open mydropzone_attachment_add template and find:

<a href="javascript:void(0)" class="insert">{$lang->mydropzone_insert_into_post}</a>
Replace with:

<a href="javascript:void(0)" class="insert"></a>
I'd advise against getting rid of it completely, as it should pose some issues with JavaScript not being able to detect such button. By removing just the label you won't see it but the JS code will and won't cause any trouble.

To remove "Images are uploaded to Imgur", find and remove the following code in the same template as before:

<span class="dropzone_images_external">
            <img src="images/icons/photo.png" />
            {$lang->mydropzone_images_external}
        </span>
Note that everything that comes by MyDropzone is customizable either in templates or stylesheets in each of your themes.
Seeker-Smith 5 Mar 2020
#57
How do I get my uploader to look like yours with the graphic and "Attach photos, videos or documents by selecting them " and link?
Shade 5 Mar 2020
#58
MyBBoost features a unique theme powered by UIKit, a theming framework. It is not practical to include the whole CSS (500 kb) to replicate that part, but you can copy the relevant style by inspecting the element with your browser Console.
Seeker-Smith likes this post
Seeker-Smith 12 Mar 2020
#59
When I add {$attachbox} I get every attachment ever posted under the quick reply.
Shade 12 Mar 2020
#60
I'll have a look tomorrow.
Seeker-Smith likes this post