You are not logged in.
Hi Textpattern Fans
Edit: March, 28. 2013: After reorganising my site, download locations has changed a bit. Most pages are now also available in English.
Today, I have published a new plugin: abl_droploader.
Download locations for the Plugin and Textpacks:
The plugin is now also available as a zip-file that contains the source-code of the plugin and external resources like javascripts and css.
This plugin is the result of an inspiring mail discussion with Stef and an idea from Jakob posted in this thread.
What does it do?
DropLoader allows you to upload multiple images at once, simply by dragging files from the desktop onto the browser window. The user interface of DropLoader is a transparent area, shown above Textpatterns own UI. A special feature of DropLoder is the fact, that it hides the standard upload-form, but uses it in the background for sending the data to server. The form-data will therefore be processed by Textpatterns regular image upload-script, txp_image.php.
DropLoader can be used in the images-tab, where it replaces the standard upload-form, but also in the write-tab. This makes it possible to upload images right from an open Article, without a need to switch between the write- and image-tabs. Uploaded images will be automatically assigned to the current article (field article image), if DropLoader is opened directly from the write-tab.
It is also possible to automatically assign a category to the uploaded images. Simply select a category, before files are dropped or selected.
Both, “Drag & Drop” and the upload functionality are based on the jQuery plugin jquery.filedrop.js by Weixi Yen. Thanks!
Requirements
Textpattern 4.4.1+.
Important: To be able to edit preferences, the plugin soo_plugin_pref is required. Hard coded default preferences apply, if soo_plugin_pref is not installed.
The jQuery-plugin filedrop requires the “File Reader API” and the “Drag & Drop API”. DropLoader disables itself, if these API’s are not supported.
Recent versions of Firefox and Google Chrome supports all features and work perfectly. However, Internet Explorer (incl. IE9), Opera and Safari currently do not support all of the required API’s, so DropLoader will not be available with these browsers.
Features
Installation
This plugin can be installed and activated as usual on the plugins-tab.
DropLoader requires some additional resources (jQuery plugins, stylesheet), which are installed when the plugin is activated.
Notes:
The following files will be installed on plugin activation:
Localisation
DropLoader uses textpacks for localisation. The distribution package already contains textpacks in english (en-gb) and german (de-de). These and other Textpacks for abl_droploader are available as separate downloads (see top of this post).
The name of all language strings begins with ‘abl_droploader_’.
Note: Starting with Version 0.13, the english textpack will also be installed under the language-key for the current site language, if this is not en-gb or de-de. These strings can then be translated to the desired language, for example using the snippet editor of the MLP (Multi-Language Pack).
Thanks to Stef Dawson for this tip!
Changelog
Version 0.20 (2013-03-27)
Version 0.19 (2013-02-21)
Version 0.18 (2013-02-19)
Version 0.17 (2013-01-26)
Version 0.16 (2013-01-16)
Version 0.15 (2013-01-07)
Version 0.14 (2013-01-02)
Version 0.13 (2012-05-25)
Version 0.12 (2012-05-22)
Version 0.11 (2012-05-21)
Version 0.1 (2012-05-18)
Last edited by developr (2013-03-28 20:29:09)
Offline
Oh my, and I thought my week was over! Have to say this looks very enticing and it’s arrival is timely. I’ll report back once I’ve tried it out !! Danke Andreas!
TXP Builders – finely-crafted code, design and txp
Offline
Gern geschehen, Jakob! Aber geniesse das Wochenende trotzdem.
Hope it works. Originally, I made it for my gallery plugins (which are still in work), but then I have realised that it may be useful having this also in the write-tab.
I am also working on another plugin, an image sorter and editor for the write-tab. But this is in an early stage now. The goal of it is, that article-related images could be managed while editing an article, but without the need to switch to the images-tab.
Offline
Wow, nice idea! I have installed it on my site… but there is some problem with it: can’t see anythink on write and images pages, 100% clear white (no menu, nothing) when the plugin is activated.
I will check for updates to try next versions. Fell free to ask for site diagnosis or any data of my textpattern installation/site hosting to find problems. Diagnosis sais everything is ok and the plugin /res/ files where created ok on activation.
<txp:rocks/>
Offline
milosevic schrieb:
Wow, nice idea! I have installed it on my site… but there is some problem with it: can’t see anythink on write and images pages, 100% clear white (no menu, nothing) when the plugin is activated.
Same here. First I thought my backend theme is the reason for that – but it isn’t.
Anyway: Thanks for the idea behind it and dankeschön :)
Offline
Ahh, I have forgotten something important: DropLoader requires an additrional plugin: soo_plugin_pref. I have also changed the original post above.
The symptom is indeed a white screen if soo_plugin_pref is not installed. Sorry for this inconvenience.
I try o change that behavior, so that it fails with an error message instead of a white screen.
Thank you for the feedback, Jorge & Stephan!
Hope it works now as intended.
Offline
It’s working like a charm for me (FF 11). Thanks!
Just some “GUI ideas”:
I’ve noticed that the plugin is playing nice with multiple article images and is compatible with bot_image_upload! Great work, thank you!
Z-
Offline
Hi Zanza,
You are right, the trigger isn’t really intuitive. I have already tried to open the GUI automatically when files are dragged onto the browser window. I am failed with this so far, but i think it should be possible somehow. Your idea with the grey box may also be a solution.
The second point is also in my mind, because pictures which are uploaded together are mostly of the same thematic, so appending them the same alt/caption could make sense. Possibly I will add this feature.
But i am also working on another plugin, an image-editor for the write tab. Caption and alt-texts will be directly editable from the write tab with this.
I had a quick look at your cool site. Sadly, my italian knowledge is limited, but the cartoons are really funny. Very good drawings. Is that your work? Great! I like!
Offline
Andreas, thank you very much for this excellent plugin!
That’s a huge step forward in ease of use! I was smiling like a moron when the first numbers appeared in the article image field =D)
(Renamed the topic, beginning it with the plugin’s name, so it’s easier to be found.)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Hello Uli,
Thanks for renaming the topic! And for the flowers… :-)
I had a smile also today, because I found bot_image_upload and tried it immediately, because the description sounds like what I have planned with the article-image-edit. It’s a bit special to install, but it was well worth doing so.
The smile came on my face as I clicked on the “Choose Image”, because the DropLoader is also accessible from the selection screen. Without doing anything… :-))
Just the list refresh is missing, but I have an Idea how to resolve this. It will be in the next release.
And the edit features of bot_image_upload are also very cool, exactly what I had in mind. So I probably stop working on the article-image-edit, because it would really be a duplication of redbots work.
Offline