Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2013-01-25 17:41:41

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: abl_droploader: A native drag & drop multiple image uploader

Yesss !
Smd_thumbnail must be loaded before your plugin .
I set “4” and all seems fine !

Offline

#77 2013-01-25 17:47:31

developr
Plugin Author
From: Basel
Registered: 2011-09-24
Posts: 65
Website

Re: abl_droploader: A native drag & drop multiple image uploader

Thanks for the reply!

I think, I change the default load order for the DropLoader to 9 in the next release, to minimize the possibility that other plugins are affected by this exit statement.

Offline

#78 2013-01-25 17:52:55

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: abl_droploader: A native drag & drop multiple image uploader

Ok, thanks !
droploader set to 9 and smd thumbnail to 5 and all is ok.

Offline

#79 2013-01-25 17:57:33

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: abl_droploader: A native drag & drop multiple image uploader

BTW, a question …

how many images your plugin is able to load in one shot ?

  • Problem with the PHP execution time limit or not ?
  • If I set the number to 100 : danger ?

It was a problem of the previous plugin multiple image upload …

Offline

#80 2013-01-25 18:20:08

developr
Plugin Author
From: Basel
Registered: 2011-09-24
Posts: 65
Website

Re: abl_droploader: A native drag & drop multiple image uploader

I think PHP execution time is not be a problem, because the javascript sends files one by one. The PHP execution timer should be reset on each uploaded image.

I have tested with 50 images on my localhost, and that has worked. But I don’t know if this is also the case with 100 images in one go.

Offline

#81 2013-01-25 18:31:04

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: abl_droploader: A native drag & drop multiple image uploader

I try one hour ago to upload 98 images : no problem.

But if after that I try to generate the smd thumbnails in one go, impossible. I must do it in 3 time.

Now I’m able to generate the thumbnails at the same time I upload, it sould be ok to upload and generate about 100 images/thumnails, il the javascript send files one by one … and generate thumbnails image by image ???

Offline

#82 2013-01-26 12:43:39

developr
Plugin Author
From: Basel
Registered: 2011-09-24
Posts: 65
Website

Re: abl_droploader: A native drag & drop multiple image uploader

jpdupont wrote:

and generate thumbnails image by image ???

Yes, exactly. There is one HTTP request per image.

Offline

#83 2013-01-26 13:08:53

developr
Plugin Author
From: Basel
Registered: 2011-09-24
Posts: 65
Website

Re: abl_droploader: A native drag & drop multiple image uploader

There is a new version 0.17 available. This release fixes some bugs and adds a new option requested by feragnoli. It is now possible to specify multiple target fields for the uploaded images in the write panel.

New options should now be inserted correctly, which was wrong in the previous version. The new options added in release 0.16 are now in effect.

I have also changed the plugin load order from 5 to 9 (lowest priority). This should ensure, that the _image_uploaded_-event is processed by other plugins before DropLoader is called. This is important, when using it together with smd_thumbnail or other plugins that use this callback.

Important:
When updating a previous DropLoader installation, you must manually change the load order to 9 in the plugins panel! This is not automatically done when updating an already installed plugin.

Please see the initial post for details.

Offline

#84 2013-02-17 00:56:17

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: abl_droploader: A native drag & drop multiple image uploader

Can’t get this to work on the write tab with svn 4.6ish

Offline

#85 2013-02-18 14:37:28

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: abl_droploader: A native drag & drop multiple image uploader

When I clik on the Upload image link I get this error in the Chrome Javascript console :

Uncaught TypeError: Object [object Object] has no method 'live' abl.droploader-app.js:192
ablDropLoaderSetup abl.droploader-app.js:192
(anonymous function) abl.droploader-app.js:174
c jquery.js:3
p.fireWith jquery.js:3
k jquery.js:5
r

Impossible to Upload …

New 4.5.4 install, last 0.17 plugin version.

Offline

#86 2013-02-18 14:53:45

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: abl_droploader: A native drag & drop multiple image uploader

Answer to myself : I upgraded the jquery.js to the last 1.9.1 version.
Downgrade to the 1.7.2 avoid the error.

Offline

#87 2013-02-18 20:06:39

developr
Plugin Author
From: Basel
Registered: 2011-09-24
Posts: 65
Website

Re: abl_droploader: A native drag & drop multiple image uploader

Hi mrdale and jpdupont

I have just seen your issues with svn txp 4.6 and jquery 1.9.1.

Txp 4.6 uses jquery 1.9.1, so this is the same problem in both cases. There is a change in the jQuery-API which affects plugin version 0.17: The live-event has been removed in jQuery 1.9. It’s replaced by the newer on-event.

This means, abl_droploader 0.17 is not compatible with jQuery 1.9.x. But I try to update the plugin within the next days, possibly tomorrow. Please stay tuned… Version 0.18 is not far away.

Offline

#88 2013-02-19 10:12:50

developr
Plugin Author
From: Basel
Registered: 2011-09-24
Posts: 65
Website

Re: abl_droploader: A native drag & drop multiple image uploader

abl_droploader Version 0.18 is now available for download.

This Version resolves the issue with jQuery 1.9.1, reported by mrdale and jpdupont. I changed the method used for the event-handler attachment from ‘live’ to ‘delegate’. The delegate-method was introduced in jQuery Version 1.4.2, and the live-method has been removed in jQuery 1.9.

jQuery Version 1.9.1 is used in Txp 4.6 (SVN-Version).

I have also updated the original post

Offline

#89 2013-02-19 10:22:20

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: abl_droploader: A native drag & drop multiple image uploader

Andreas, Thanks !

Explain me how made a textpack for french, please ?

Offline

#90 2013-02-20 06:11:20

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: abl_droploader: A native drag & drop multiple image uploader

Cool. I can get this working from the images page but not from the write page.

Offline

Board footer

Powered by FluxBB