Hello.
I have just tested the image manager 1.4 zip you emailed me. Works perfectly.. Thank you very much! Looking forward to installing on my live site.
Cheers
Michael
Printable View
Hello.
I have just tested the image manager 1.4 zip you emailed me. Works perfectly.. Thank you very much! Looking forward to installing on my live site.
Cheers
Michael
Hi all,
I just contributed version 1.4 of IM.
Changes in this version are:
- Added configuration options to position and size the watermark on the image
- Added message to display presence of watermark files
- Fixed wrong image URL calculated if zen-cart is in webroot subfolder
- Fixed default action should be two options: action and show attached/unattached
- Fixed missing comma in SQL installation script
- Added configurable upload folder
For those who upgrade from previous versions, an upgrade script is provided.
Enjoy!
Boudewijn
Hi,
Having a problem when running the install.sql.
I get this error:
Im using version 1.3.9f, php version 5.2.13 and mySQL version 5.0.90.Code:1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(NULL, 'Show \'Add additional image link\' link', 'IM_SHOW_ADD_IMAGE_LINK', 'no'' at line 1
in:
[INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Maximum large image width', 'IM_MAX_LARGE_WIDTH', 800, 'The maximum sizes of the small and medium size images can be set through the admin interface (Configuration->Images).
You can set the maximum width of the large files here.
', @configuration_group_id, 10, NOW(), NULL, NULL), (NULL, 'Maximum large image height', 'IM_MAX_LARGE_HEIGHT', 600, 'The maximum sizes of the small and medium size images can be set through the admin interface (Configuration->Images).
You can set the maximum height of the large files here.
', @configuration_group_id, 20, NOW(), NULL, NULL), (NULL, 'Maximum rows per page', 'IM_PAGE_LENGTH', 30, 'This is the number of rows per page that will be displayed in Image Manager.
', @configuration_group_id, 30, NOW(), NULL, NULL), (NULL, 'Enable/disable medium size images', 'IM_USE_MEDIUM_IMAGES', 'enable', 'If set to \'disable\', Image Manager will ignore medium size product images and treat them as unattached images.
Also all other functions, like generate or delete an image from a product, will only apply to small and large size images.
', @configuration_group_id, 40, NOW(), NULL, 'zen_cfg_select_option(array(\'enable\', \'disable\'),'), (NULL, 'Show popup image or link', 'IM_SHOW_POPUP_IMAGE', 'image', 'With this option set to \'image\', no separate links to images will be displayed anymore. Instead, hovering over the filename with the mouse causes the image to display underneath the filename.
With this option set to \'link\' an additional column will be displayed with a link to the image. Clicking this link will open a new window with the image.
', @configuration_group_id, 50, NOW(), NULL, 'zen_cfg_select_option(array(\'image\', \'link\'),'), (NULL, 'Folders to exclude from Image Manager', 'IM_EXCLUDE_FOLDERS_EXTRA', '', 'This option allows you to add folders which Image Manager will not display, specifically in the \'unattached\' list.
Image manager already excludes the following subfolders of the images folder:
attributes/
banners/
categories/
gift_certificates/
icons/
manufacturers/
samples/
testimonials/
uploads/
The additional folders must be entered with a trailing slash and comma separated.
', @configuration_group_id, 60, NOW(), NULL, NULL), (NULL, 'Files to include in Image Manager', 'IM_FILETYPES', 'all', 'This option allows you to choose what types of files Image Manager will handle.
If you select \'media\', only file types with media type extensions will be handled and visible in IM.
', @configuration_group_id, 70, NOW(), NULL, 'zen_cfg_select_option(array(\'media\', \'all\'),'), (NULL, 'Initial action at startup', 'IM_STARTUP_ACTION', 'show_menu', 'This option determines what Image Manager will do once started from the administrative interface. Either do nothing and just show the menu, display the unattached files, or display the attached files, the latter two according to the default options set in the Image Manager configuration.
', @configuration_group_id, 80, NOW(), NULL, 'zen_cfg_select_option(array(\'show_menu\', \'show_unattached\', \'show_attached\'),'), (NULL, 'Default value for \'Show Images\"', 'IM_IMAGE_DEFAULT', 'link', 'This option sets the default value for the \'Show Image\' option.
', @configuration_group_id, 90, NOW(), NULL, 'zen_cfg_select_option(array(\'link\', \'small_image\', \'all_images\'),'), (NULL, 'Default value for \'Product Status\'', 'IM_PRODUCT_STATUS_DEFAULT', 'on', 'This option sets the default for the \'Product Status\' option.
', @configuration_group_id, 100, NOW(), NULL, 'zen_cfg_select_option(array(\'on\', \'off\', \'all\'),'), (NULL, 'Default value for \'Show Files\'', 'IM_SHOW_FILES_DEFAULT', 'with_errors', 'This option sets the default for the \'Show Files\' option.
', @configuration_group_id, 110, NOW(), NULL, 'zen_cfg_select_option(array(\'with_errors\', \'without_errors\', \'all_files\'),'), (NULL, 'Default value for \'Sort order\'', 'IM_SORT_ORDER_DEFAULT', 'folder_filename', 'This option sets the default for the \'Sort order\' option.
', @configuration_group_id, 120, NOW(), NULL, 'zen_cfg_select_option(array(\'folder_filename\', \'product_id\', \'large_image_size\'),'), (NULL, 'Show \'Add watermark\' link', 'IM_SHOW_WATERMARK_LINK', 'no', 'When set to \'yes\', Image Manager will display a link to additionally add a watermark to images. This option will only show up in \'attached\' mode, if all image sizes have the right size, and a watermark is present in the appropriate folder.
This option has no impact on the automatic watermarking that takes place during the copying/shrinking of images.
', @configuration_group_id, 130, NOW(), NULL, 'zen_cfg_select_option(array(\'yes\', \'no\'),'), (NULL, 'Show \'Re-upload image\' link', 'IM_SHOW_REUPLOAD_LINK', 'no', 'When set to \'yes\', Image Manager will display a link to re-upload a small size image, replacing an already existing one. You can upload an image with any name; IM will store the image under the name already known. Only the image type must be the same: if the existing image is a jpg-file, the re-uploaded one must also be a jpg file.
This option will only show up in \'attached\' mode.
If the re-uploaded image is large enough, it can be used to also recreate the medium and large size images.
', @configuration_group_id, 140, NOW(), NULL, 'zen_cfg_select_option(array(\'yes\', \'no\'),') (NULL, 'Show \'Add additional image link\' link', 'IM_SHOW_ADD_IMAGE_LINK', 'no', 'When set to \'yes\', Image Manager will display a link to upload a new additional image for a product.
You can upload an image with any name; IM will store the image under the name already known, with the specified suffix added.
This option will only show up in \'attached\' mode, after first selecting a specific products-ID in the right upper box.
If the uploaded image is large enough, it can be used to also recreate the medium and large size images.
', @configuration_group_id, 150, NOW(), NULL, 'zen_cfg_select_option(array(\'yes\', \'no\'),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Can anyone help?
Alex,
What version of IM are you trying to install? From the SQL result I can see there is a comma missing in the SQL statement and that was a bug in IM 1.3.
Please try again with IM 1.4 and make sure you have the install.sql from that version. You might have to run uninstall.sql first to clean up before running the install.sql again.
Boudewijn
Thank you Boudewijn. I was using 1.3. Now upgraded to 1.4 and all is working so far.
Thanks
Hello,
Can anyone please help with this error in admin/image manager:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/MYSITE/public_html/images/3ds/mcsc.gif/) is not within the allowed path(s): (/home/MYSITE/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/MYSITE/public_html/admin/includes/functions/extra_functions/function_image_manager.php on line 635
The error is over and over again for every single image i have in products catalog.
I already tried setting permissions to 777 almost to any folder or file... no result.
I tried reinstall the image manager i had the same result.
I notice the error after rename admin folder to another name. I restore previous name and make all the neccesary changes back to configure.php.
I have no idea what to do next. I'm using zen cart v1.3.9f and the image manager version is 1.4
If anybody has some ideas, please share it...
Thanks!
Hi,
Have you checked the paths in your <admin>/includes/configure.php? They are affected by renaming the admin folder.
Boudewijn
I consider switching from IH to IM, do I need to reupload all files?
I don't use IH myself, so I can't check it on my installation.
But if the images, with their original names that are mentioned in the product details, are still present in the images/ folder or subordinate folders, and of sufficient size to use as large images, you don't have to re-upload them.
Boudewijn