asasson Posted April 24, 2006 Share Posted April 24, 2006 I have a new store and i need to create both medium sized images and thumbnails. can anybody recommend me a contrib to look for? would this be the right contrib? right now there are hundreds of products already created on the site so i need a contrib that makes the other two images for existing products, not just when I create the SKU. any ideas would be helpfull... Quote Link to comment Share on other sites More sharing options...
khng Posted May 10, 2006 Share Posted May 10, 2006 could any one please post the sample photo of this contribution outcome, os commerce is great but some contribution don't include the sample image (so which is not for other to justify does it fit his need) Quote Link to comment Share on other sites More sharing options...
Guest Posted July 13, 2006 Share Posted July 13, 2006 I have this working on my test server XAMPP but after I uploaded it I get: *the click to enlarge part but no image in my product pages. **I can only add 1 image any others give me this error: 1062 - Duplicate entry '0' for key 1 insert into additional_images (products_id, images_description, popup_images) values ('30', '', 'Blk-Char-tip.jpg') *** When I try to delete an image, It will delete but I get this error then need to hit the back button to go back to admin console: Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /MY PATHl/catalog/admin/includes/functions/database.php on line 134 Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /MY PATH/catalog/admin/includes/functions/database.php on line 134 Warning: Cannot modify header information - headers already sent by (output started at /MY PATH/catalog/admin/includes/functions/database.php:134) in /MY PATH/catalog/admin/includes/functions/general.php on line 22 Any help will be appreciated, this is my only speedbump before going live. Dave V Quote Link to comment Share on other sites More sharing options...
Fredrik.r Posted August 14, 2006 Share Posted August 14, 2006 Since my hosting upgraded to PHP 5 I get this error. I can't add images any longer. I would be thankful for some help how t o modify the code to work with PHP 5. Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/httpd/ws2890/blush.se/shop2/admin/categories.php on line 444 Warning: reset() [function.reset]: Passed variable is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 55 Warning: Variable passed to each() is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 58 Warning: reset() [function.reset]: Passed variable is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 62 Warning: Variable passed to each() is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 63 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 ') values)' at line 1 insert into additional_images) values) [TEP STOP] Quote Link to comment Share on other sites More sharing options...
Fredrik.r Posted August 20, 2006 Share Posted August 20, 2006 Please, anyone that may help me with the issue above? Quote Link to comment Share on other sites More sharing options...
Fredrik.r Posted August 21, 2006 Share Posted August 21, 2006 No one running Additional Images together with PHP 5? Sorry for bumping, but I need it to work. Quote Link to comment Share on other sites More sharing options...
lhjava Posted August 22, 2006 Share Posted August 22, 2006 No one running Additional Images together with PHP 5? Sorry for bumping, but I need it to work. comment or delete this line, it will work. $sql_data_array = array_merge($sql_data_array, $add_data_array); Quote Link to comment Share on other sites More sharing options...
Fredrik.r Posted August 22, 2006 Share Posted August 22, 2006 (edited) Thanks Nicolas! The error when adding an image is gone. I get another one when deleting an image, even if the image avtually is deleted; Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 134 Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 134 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php:134) in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/general.php on line 197 Line 134 in database.php is the second below; if (function_exists('mysql_real_escape_string')) { return mysql_real_escape_string($string, $$link); } elseif (function_exists('mysql_escape_string')) { return mysql_escape_string($string); } Edited August 22, 2006 by Fredrik.r Quote Link to comment Share on other sites More sharing options...
Fredrik.r Posted August 22, 2006 Share Posted August 22, 2006 Found it. Changed $additional_images_id[] = tep_db_prepare_input($HTTP_POST_VARS['additional_images_id']); to $additional_images_id = tep_db_prepare_input($HTTP_POST_VARS['additional_images_id']); in admin/categories.php Quote Link to comment Share on other sites More sharing options...
Kjolebutikken Posted September 24, 2006 Share Posted September 24, 2006 I just installed the new version 1.1.5, and I get this error in the popup window when i click on "click to enlarge" on product_info page: osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Code Modification: March 2004 Andrey A. Skleznev "IT-Commerce" ltd. Mailto: info@i4u.ru Released under the GNU General Public License */ require('includes/application_top.php'); $navigation->remove_current_page(); // BOF: Additional Images: Added: , p.products_image_pop $products_query = tep_db_query("select pd.products_name, p.products_image, p.products_image_pop from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'"); // EOF: Additional Images $products = tep_db_fetch_array($products_query); ?> Fatal error: Call to undefined function tep_image() in /customers/kjolebutikken.com/kjolebutikken.com/httpd.www/oscdemo1/popup_image.php on line 45 Anyone know what can be wrong? Thanks:-) Quote Best regards Kjolebutikken Link to comment Share on other sites More sharing options...
Kjolebutikken Posted September 24, 2006 Share Posted September 24, 2006 I just installed the new version 1.1.5, and I get this error in the popup window when i click on "click to enlarge" on product_info page: osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Code Modification: March 2004 Andrey A. Skleznev "IT-Commerce" ltd. Mailto: info@i4u.ru Released under the GNU General Public License */ require('includes/application_top.php'); $navigation->remove_current_page(); // BOF: Additional Images: Added: , p.products_image_pop $products_query = tep_db_query("select pd.products_name, p.products_image, p.products_image_pop from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'"); // EOF: Additional Images $products = tep_db_fetch_array($products_query); ?> Fatal error: Call to undefined function tep_image() in /customers/kjolebutikken.com/kjolebutikken.com/httpd.www/oscdemo1/popup_image.php on line 45 Anyone know what can be wrong? Thanks:-) Never mind, I found ut. Had done something wrong during installation. Thanks:-) Quote Best regards Kjolebutikken Link to comment Share on other sites More sharing options...
Dman1012 Posted September 27, 2006 Share Posted September 27, 2006 I love this addon, works great with my modified oscommerce installation. osCommerce 2.2 Milestone 2 Update 051113 Quote Link to comment Share on other sites More sharing options...
newuser100 Posted October 1, 2006 Share Posted October 1, 2006 Hello: First off all Thank you for posting version 1.1.5.. I have a new store & am a newbie to oscommerce and was having problems with the previous version off the contibution. With the new package it was easy to integrate the contribution, so thank you. I just have one question, the pop-up images are all being displayed in different sizes? Is the a reason why and how to make them all consistently show the same sizes. Ie. Image 1, 2, 3 default product sizes are the same. But pop-up of Image 1 is different then Image 2 which is different than Image 3. Also is there a way to change the layout off how the images are displayed.. (ie. in a column on right hand side or left hand side).. This is not a necessaisity just nice option to have. Overall excellent contribution, and thank you. Quote Link to comment Share on other sites More sharing options...
surfalot Posted October 2, 2006 Share Posted October 2, 2006 (edited) did you run the file: extra_width_images.sql from the package on your database tool? If you do not insert those configurations in your database, then that would happen. Afterwards you will find 4 more settings in your admin -> configuration -> images. Edited October 2, 2006 by surfalot Quote Link to comment Share on other sites More sharing options...
surfalot Posted October 2, 2006 Share Posted October 2, 2006 Also is there a way to change the layout off how the images are displayed.. (ie. in a column on right hand side or left hand side).. This is not a necessaisity just nice option to have. look for a future version. I wanted to do more with it, but ran out of time. I wrote a nice routine for More Pics 6, it just needs to be adopted here. Quote Link to comment Share on other sites More sharing options...
newuser100 Posted October 2, 2006 Share Posted October 2, 2006 did you run the file: extra_width_images.sql from the package on your database tool? If you do not insert those configurations in your database, then that would happen. Afterwards you will find 4 more settings in your admin -> configuration -> images. Thankyou. I had executed the sql, but had not put in the size for pop-up images.. Thanks for the quick answer. Quote Link to comment Share on other sites More sharing options...
xix17 Posted October 2, 2006 Share Posted October 2, 2006 is this way of displaying extra images without the image popup.. can it be done.. can anyway please help me.. Quote Link to comment Share on other sites More sharing options...
elkarlos Posted October 2, 2006 Share Posted October 2, 2006 Hi, I've just installed this contribution and I want the additional images to be smaller. can anyone tell me how to do this please? Quote Link to comment Share on other sites More sharing options...
surfalot Posted October 2, 2006 Share Posted October 2, 2006 did you see a couple post ago: you will find 4 more settings in your admin -> configuration -> images. Quote Link to comment Share on other sites More sharing options...
elkarlos Posted October 2, 2006 Share Posted October 2, 2006 did you see a couple post ago:you will find 4 more settings in your admin -> configuration -> images. I did, but I want to have just one big image (ie 150x120) and other 3 additional images smaller. Quote Link to comment Share on other sites More sharing options...
surfalot Posted October 3, 2006 Share Posted October 3, 2006 where do you want those smaller images? I don't completely understand what you're looking for. Quote Link to comment Share on other sites More sharing options...
elkarlos Posted October 3, 2006 Share Posted October 3, 2006 it should be something like this: Quote Link to comment Share on other sites More sharing options...
elkarlos Posted October 4, 2006 Share Posted October 4, 2006 ... the big one is the default image, and the smaller are the extra images Quote Link to comment Share on other sites More sharing options...
surfalot Posted October 4, 2006 Share Posted October 4, 2006 In hindsight, I think this would be a better way of doing it. find in product_info.php: (!empty($product_info['products_image'])?DISPLAY_IMAGE_WIDTH:SMALL_IMAGE_WIDTH) replace with SMALL_IMAGE_WIDTH find in product_info.php: (!empty($product_info['products_image'])?DISPLAY_IMAGE_HEIGHT:SMALL_IMAGE_HEIGHT) replace with: SMALL_IMAGE_HEIGHT that will set the default image to the size of the "Small Image Width" and "Small Image Height" as defined in the configuration -> images area. This is different forom the settings for the additional images you already saw. if you want to hardcode a specific size here because you want this different from the Small Image Width" and "Small Image Height" settings, just change it to a specific number instead of the constants. Quote Link to comment Share on other sites More sharing options...
surfalot Posted October 4, 2006 Share Posted October 4, 2006 is this way of displaying extra images without the image popup.. can it be done.. can anyway please help me.. Yes there is, it would be a javascript. I have not done that myself. Search around the contribs, I know someone has uploaded code for that. checkout post #393 of the more pics 6 contrib. there is an example of a different type of popup you might like. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.