Finally found some free time and made it available for the latest 1.5.1 version that was released yesterday.
Please note I have only tested it with 1.5.1 and not 1.5.0.x.
You may download here: http://www.opencart.com/index.php?route ... on_id=2640
...for FREE.
Enjoy!
I found already.robra wrote:This is a great Module and very usefull too.
I would like to know how I can change the language of the text "remove all" above the trash icon.
Thanks.
In the file admin/view/javascript/jquery/agile-uploader-3.0.js, on the line:
Code: Select all
removeAllText: 'remove all'
gsk wrote:Hi,
I will probably make it a vqmod, so you could apply it to all 1.5.x revisions.
Probably next week, if I manage to get some free time.
Can't wait for the vQMod version.
What files would have to be to edited in case i go the route of Files Script edit??
I had only a couple of hours to spend when started updating for 1.5.1 and first tried with the VQmod, but it was little pain with the .tpl files modifications, so I decided to do the "old fashioned" way.
Maybe later I'll give it a try again, and publish a vqmod version.
Great job alexmbra. It was very, very good.alexmbra wrote:Well, finally I manage to make it work. The problem was the scope of variable. I was forgetting to use the global inside the function resize.
Now, the only think missing is to get the directories inside the Data folder and put it on a list, to allow the destination of uploading, replacing $productDir.
Here is the "agile_uploader.php" file:
Code: Select all
<?php $productDir = 'products/'; $uploads_dir = '../../../image/data/' . $productDir; $myFiles = array(); if(count($_FILES["Filedata"]["error"]) < 2) { // Single file $tmp_name = $_FILES["Filedata"]["tmp_name"]; $name = $_FILES["Filedata"]["name"]; $ext = substr(strrchr($name, '.'), 1); switch(strtolower($ext)) { case 'jpg': case 'jpeg': case 'png': case 'gif': case 'png': case 'doc': case 'txt': move_uploaded_file($tmp_name, "$uploads_dir/$name"); break; default: exit(); break; } array_push($myFiles, resize($uploads_dir.$name, 100, 100)); } else { // Multiple files foreach ($_FILES["Filedata"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK) { $tmp_name = $_FILES["Filedata"]["tmp_name"][$key]; $name = $_FILES["Filedata"]["name"][$key]; $ext = substr(strrchr($name, '.'), 1); switch(strtolower($ext)) { case 'jpg': case 'jpeg': case 'png': case 'gif': case 'png': case 'doc': case 'txt': move_uploaded_file($tmp_name, "$uploads_dir/$name"); break; default: exit(); break; } array_push($myFiles, resize($uploads_dir.$name, 100, 100)); } } } //echo 'RETURN DATA!'; echo implode(';', $myFiles); function resize($filename, $width, $height) { require_once('../../../system/library/image.php'); global $productDir; $image_dir = '../../../image/data/' . $productDir; $cache_dir = '../../../image/cache/data/' . $productDir; $info = pathinfo($filename); $extension = $info['extension']; $new_image = substr($info['filename'], 0, strrpos($filename, '.')) . '-' . $width . 'x' . $height . '.' . $extension; if(!file_exists($cache_dir)) { mkdir($cache_dir ); } if (file_exists($image_dir . $info['basename'])) { $myimage = new Image($image_dir . $info['basename']); $myimage->resize($width, $height); $myimage->save($cache_dir . $new_image); } $tempPathName = $productDir . $info['basename']; return $tempPathName; } ?>
Congratulation !!!
Did you find a way to add an option to choose the destination folder for the uploaded images ?
Thanks.
Thank you for this Module. It has been very useful to me because I upload many images once to server.
You are the guy....
Well, I changed some settings to upload many images, like:
1- In agile-uploader-3.0.js file:
max_post_size: (50000 * 1024),
2- In product_form.tpl:
file_limit: 100,
max_post_size: (50000 * 1024),
When I select 50 images, all are displayed on the Add Image(s) fields but when I click on upload to server button only 25 five images are upload.
I don't know what the setting I can change to get upload the 50 images at once.
Thank you.
The step by step to install this Mod editing the files: http://www.opencartbrasil.com.br/forum/ ... =15&t=1519Hashishim wrote:please help me to show me which lines i should modify on the product.php, category.php, product_form.tpl and category_form.tpl, as I am not running the base files:/
Please tell where exactly do i adjust it.
But it is in portuguese.
[ ]s.
In the admin choose
catalog -> products ->insert
general - data - liks - attribute -
i mean in (data)
because I am tired of it, afther upload the picture search for a long to found it.
let me know if you can fix it pls
thnx
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
I'm working personally to a vqmod version for 1.4.9.6 release. I've encountered some issues but it seems things are going quite well now. As soon as I finish testing I will provide it to the community.
One question. In product, it seems the previous "add image" button and function (with image manager) remain. Does it make sense?
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
Rapid Image Uploader:
http://app.alisverisbook.com/image/cach ... 00x600.jpg
Orginal picture:
http://app.alisverisbook.com/image/cach ... 00x600.jpg
Why it is have bad quality ?
My opencart version: 1.5.1.1
i like it but it is loading bad quality images...
How can i take good quality ?
Thanks...
Sent from my Desire HD using Tapatalk
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
Users browsing this forum: No registered users and 4 guests