Contributions
Additional Images Module
Additional Images (Version 1.0)
<b>Features:</b>
- A real image module
- 'Unlimited' additional images for each product
- Popup image for each additionals
- Add/Delete additional images from Admin panel
- 3 sizes image
Send your comment to forum:
Enjoy :)
Parikesit
Expand All / Collapse All
This is the total integration of Additional images (including lightbox) into the product content pages of Simple Template System (sts)
-------------------------------------------
What the addition does:
1) In integrates the Additional images contribution into sts product content pages. It creates special additional tags that you can use in your sts template. Default sts image tags are not affected
2) It enables you to use the lightbox effect for all additional images you have, keeping the original display options of Additional Images (ie pop up window, mouseover effect on product info page and all listing options)
2) It adds an option to your admin panel (into the additional images menu) to switch the lightbox effect on or off
-------------------------------------------
Prepositions:
1) You need to have Additional Images installed
2) You need to have sts installed
3) You need to have the Fancy lightbox popup installed (http://addons.oscommerce.com/info/5532)
---------------------------------------------
Tested on osc RC2A / Additional Images version 2.1.0 / STS version 4.5.8(23/1/2008)
-------------------------------------------
All credits to Todd Todd Holforty (surfalot) -Additional Images and Bill Kellum (bkellum) STS
-------------------------------------------
THIS IS NOT A FULL PACKAGE OF ADDITIONAL IMAGES
This is the total integration of lightbox into Additional images.
-------------------------------------------
What the addition does:
1) It enables you to use the lightbox effect for all additional images you have, keeping the original display options of Additional Images (ie pop up window, mouseover effect on product info page and all listing options)
2) It adds an option to your admin panel (into the additional images menu) to switch the lightbox effect on or off
-------------------------------------------
Prepositions
1) You need to have Additional Images installed
2) You need to have the Fancy lightbox popup installed (http://addons.oscommerce.com/info/5532)
---------------------------------------------
Tested on osc RC2A/Additional Images version 2.1.0
---------------------------------------------
All credits to surfalot and special thanks for his great support
-------------------------------------------
THIS IS NOT A FULL PACKAGE OF ADDITIONAL IMAGES
This is a little mod that allows you to have the lightbox effect combined with additional images.
It is based on steve_tester's post (#1019) and job's post (1036) in the AI support forum
1) You need to have Additional Images installed
2) You need to have the Fancy lightbox popup installed (http://addons.oscommerce.com/info/5532)
3) You need to do modifications in 2 files
NOT A FULL PACKAGE just a modification
This is a complete package. Screenshots included. See contribution package for complete abstract.
Upgrade instructions available for 2.1.0 users.
+ removed some code that wasn't used since previous versions.
+ Added fix for the RC1 & RC2 releases to handle the session ID
in the configurer and other files.
+ Changed how the existing image checking javascript is handling the
session id.
+ Added missing semi-colon on SQL file.
+ Changed popup link on Reviews Page to use AI popup.
+ Additional install directions included for to better control the usage
of thumbnail widths and heights that helps avoid unwanted stretching.
Support:
http://forums.oscommerce.com/index.php?showtopic=35801
This is a complete package. Screenshots included. See contribution package for complete abstract.
Upgrade instructions available for 2.0.0 users.
+ Added code to reduce the popup image to the size defined in the admin.
+ Added extra error checking to help in debugging.
+ fixed potential problem with image description not getting counted when
calcualting the height of the product image box. (affects: product_info.php)
+ fixed a problem where image description was shown beside the product image
instead of below it. (affects: product_info.php)
+ fixed issue with on-product-page group not following alignment setting.
(affects: product_info.php)
+ Fixed a problem where the auto-filled image path was in reverse order.
+ Fixed a problem where image tables would overlap due to new table alignment
handling practices for tables with right, left or center alignments.
+ Remove unnecessary enctype="multipart/form-data" in submit form of configurer that may have
been causing problems with the functionality on some systems
+ Fixed issue where using the height only in the Images settings caused images
to not be processed.
+ increased the length of the image fields in the database to compensate for
longer image paths+names built by this contribution. Add SQL to the Upgrade
information doc for those upgrading.
+ added a fix to /incldues/modules/products_listing.php to remove the fixed image
size when the AI configuration setting "Use image size restrictions" is set to false.
+ Fixed issue where images where missing from a single quote in the image description.
+ Fixed issue where new products using the same image name failed to generate
the sized images leaving something like "/tmp/phptRbYPs" in the thumb image field.
+ Included fix by tree365 (20 Sep 2007)
+ Extended tree365's fix so that all additional images are deleted when a product
is deleted from the shop.
+ Added manual script to insert database changes for the install.
Support:
http://forums.oscommerce.com/index.php?showtopic=35801
If you are using lightbox as popup image replacement of the default OSC popup script and you have applied Additional Images Module
contribution to your shop as well, use this package to apply the lightbox effect to the additional images as well.
Compatible with version 1.11, not tested on other versions but if you use the modification instructions I believe it'll work with other versions as well.
2007/09/21 - v2.0.1 - Tree365(tree365@hotmail.com)
+ Added codes for 2_files_to_compare/catalog/admin/includes/functions/general.php
For delete main product's medium image and pop image
Change the files in the 2_files_to_compare directory from the Additional Images v2.0.0 package with these files to make the Additional Images work with osc 2.2 RC1.
This is a complete package. Screenshots included. See contribution package for complete abstract.
Updates:
+ Added third image size for the product_info.php page so that now there
is a 3 image set to provide clear images without distortion. Image thumbnail
is displayed on product lists, medium size for Product Info page, and large
size for the popup. Each size is definable.
+ Added definable Image Description for Product images.
+ Added configuration options to allow several ways to display
the additional images including group with default image, display
images in a user defined number of rows and columns, and more.
+ Added the ability to automatically thumbnail images using php GD functions
when inserting and updating products.
+ Added image management that actively keeps track of images and
deletes them when products and images are removed from the database.
Yes, this includes all generated thumb images.
+ Added an image thumbnail menu on the popup that shows all images and the
option to not show this thumbnail menu. Similar to Amazon.com's image popup.
+ Added a sizing routine to size the popup to the size of the largest image
prior to dispaying it so when using the mouse-over display, the popup is
already sized to fit them all.
+ Added a utility to manage and regenerate thumbnails when you upload new images.
+ Added a database configuration manager for easy upgrades and settings resets.
+ Added thumbnail menu with mouse-over display for product page and popup.
Support:
http://forums.oscommerce.com/index.php?showtopic=35801
This is a complete package.
Updates:
+ fixed 1 more possible SQL injection
+ added regular osC popup image code to the module.
+ moved additional language to language file
+ added second image size. Original contrib description says it has 3 image
sizes. But when installing, found there was only 1 image size per
additional image defined. So I added a thumbnail, now there is really 2
image sizes per additional image.
+ fixed missing field in Product Edit query
+ added files based on the oscommerce 2.2 ms2 051113 release to compare with
WinDiff or Beyond Compare instead of using the step by step instructions.
Support:
http://forums.oscommerce.com/index.php?showtopic=35801
Fixed 3 possible SQL-Injection in alle PHP files of the package. Didn't test the package afterwards - do on own risk.
based on the version 1.12 Slight bug fix with medium images coulmn in database.
Updated the additional images sql file to fix it.
This probable stopped a lot of new users from enjoying such a great contribution.
This is a full package.
Here is the german translation.
Add Content to catalog/admin/includes/german/categories.php
Modified work whit "On the Fly Auto Thumbnailer using GD Library"-contribution.
Now small images are created automatically.
NOTE: You mast have 'On the Fly' Auto Thumbnailer using GD Library contribution
installed.
See:
http://www.oscommerce.com/community/contributions,2226
Small bugfix at popup_image.php
Whole pack included.
Based on December 28 2003 modification.
Added functionality to show original images, when no pop up defined.
Adapted for CVS MS3
I fix 2 bugs to delete the images uploaded when the product was deleted
and when an additional image was deleted too.
I make some changes to add a real main popup image and you can use the popup
funcionality for a main image.
So, if you have last version of Zaenal works installed on your OsC and want to
use "real main popup image" and "delete popup image", you only need modify
catalog/admin/categories.php
catalog/popup_image.php
catalog/product_info.php
in the section "REAL MAIN POPUP IMAGE", "DELETE POPUP IMAGE" and adding some languages define to admin/includes/languages/english/categories.php; Otherwise,
please disregards this update.
See: http://forums.oscommerce.com/viewtopic.php?t=56697
Base on Toby works, I make change to catalog/admin/categories.php
(also .../english/categories.php). This main change apply due to "upload class"
provided by MS2. It's also will check is "medium_images" field is empty or not.
So, if you have last version of Toby works installed on your OsC and want to
use "upload class", you only need modify catalog/admin/categories.php and adding
some languages define to admin/includes/languages/english/categories.php; Otherwise,
please disregards this update.
I also add "KEY products_id (products_id)" to table "additional_images"
This is the package you should download for MS2.
It includes cleaned up installation instructions which work perfectly on a fresh MS2 shop. My apologies for the duplicate instructions in the previous packages.
Enjoy!
D'oh! Forgot to include the .sql file in the last package. This is the full package with all the files included!
This is an update to the original contribution with the following changes:
- Install instructions re-written for MS2
- Update of code to work with MS2
- Added display of thumbnails in admin so you know what images you have added or are about to delete
- Various bits of tweaking and tidying
Discuss in the Contributions forum under the thread entitled "Additional Images for MS2"
This is a full package!
Added:
- Popup image handling for both old CVS and MS1
Cheers,
zaenal
This patch include patch 1 and patch 2 (all for one patch). So, you don't have to download it... I hope :)
Please report the bug to: http://forums.oscommerce.com/viewtopic.php?t=35801
PATCH:
//admin
ADMIN/INCLUDES/apllication_top.php
//catalog
CATALOG/INCLUDES/application_top.php
CATALOG/INCLUDES/MODULE/additional_images.php
CATALOG/INCLUDES/CLASSES/boxes.php
//database
add_images.sql
Enjoy :)
Parikesit
Adding SQL miss configuration:
add_images.sql
Zaenal
Patch 1 |
zaenal muttaqin |
27 Feb 2003 |
|
Add missing files and configuration. (Thank's to Lorene for the bug reports.)
#Admin
- admin/includes/application_top.php
#Catalog
- catalog/includes/application_top.php
- catalog/includes/classes/boxex.php
See the forum for further information:
http://forums.oscommerce.com/viewtopic.php?t=35801
Regards
Parikesit
Additional Images (Version 1.0)
<b>Features:</b>
- A real image module
- 'Unlimited' additional images for each product
- Popup image for each additionals
- Add/Delete additional images from Admin panel
- 3 sizes image
Send your comment to forum:
Enjoy :)
Parikesit
Note: Contributions are used at own risk.