You are not logged in.
Hi Guys,
for my first plugin I tried to alter Dirk Steins fpx_image_import to use it for Batch Uploading.
I know there already is a plugin for Batch Uploading, but I was not willing to pay for it, although it would guarantee me a high quality plugin.
So, here it is. As I don´t have time to maintain the plugin for a month or two, I thought I would first post it here.
jbx_multiple_image_upload v0.4 (Zip)
Req. Textpattern 4.0.7+
What do you think? I know I´m not an Expert. So please feel free to help me.
Greetings,
Jonasp.
Last edited by uli (2012-03-09 00:48:43)
Offline
Hi Jonas,
very interested in this – thanks for the work so far.
I’ve installed and activated it, but can’t see it under my Extensions tab.
Are there any Txp/php version restrictions on its use?
Added: I am using fpx_image_import successfully incidentally, but deactivating it doesn’t help.
Last edited by keith (2009-04-17 18:45:35)
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
I tried installing this plugin but get the following error after activating
Fatal error: Cannot redeclare fpx_prepare_prefs() (previously declared in/path/to/public_html/site.com/textpattern/lib/txplib_misc.php(580) : eval()'d code:321) in /path/to/public_html/site.com/textpattern/lib/txplib_misc.php(580) : eval()'d code on line 472
Looks like some code from fpx_image_import is still in the plugin.
Offline
Okay, I´m currently cleaning the plugin of fpx_ tags.
And I don´t know why, but by now it just works with Textpattern 4.08
Be patient, please.
Offline
Hi again,
Matt, I got that message too just now after I’d left the site then went back in – I’ve had to deactivate that plugin to get my site back.
Jonas, don’t feel under any pressure – take your time and just do what you can when you can.
Last edited by keith (2009-04-17 20:23:24)
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
Okay, I hope that the plugin is now compatible with:
Would you try it, please? As I said, I´m no professional. ;)
I want to add that if you are in instant need of a plugin with more sophisticated features, see Eric´s EBL Upload.
I just want to provide this simple mod of fpx_image_import.
Greetings,
Jonas
Last edited by grundgesetz (2009-04-17 23:37:56)
Offline
I got confused thinking it was for files and not images. Maybe change the description in the future.
Looks pretty sweet so far. Uploaded a couple images with no issues. Tried uploading a non-image file and an error displayed quickly then the page refreshed.
Edit: Just noticed that the upload form still shows up in the image_edit step.
Last edited by MattD (2009-04-17 22:49:27)
Offline
ah okay thanks for reporting that! I also renamed the plugin
Offline
A few comments:
if (txpinterface …)@: @ is unnecessary (and a little slower). Use the identical operator when possible, since it’s faster. You can throw your init code in jbx_image_main, so it’s a little cleaner too.mkdir fails (it does for me)?Other than that, nice work!
Offline
jm wrote:
A few comments:
- Why not use jQuery instead of Mootools? If you’re stuck with Mootools, consider including the JS in the source code, so the plugin will work for offline users.
- That’s a whole lot of global variables and other code outside a function. Since most only need to be used by your own code, you could use a class or two.
if (txpinterface …)@:@ is unnecessary (and a little slower). Use the identical operator when possible, since it’s faster. You can throw your init code in jbx_image_main, so it’s a little cleaner too.- Can you display an error message if
mkdirfails (it does for me)?
Other than that, nice work!
By now, most of the “import”-code is still fpx. Will revise all as soon as I´ve got more time.
Offline