Jump to content


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
  • Gender
  1. thinks you don't care about his status

  2. No, osCSS is a modified (tableless, xhtml and css valid) OsCommerce fork. I adapted (with no modifications) the addon to osCSS - but maybe the dbase calls were moved on the original categories.php in osCSS, so I had to move your addon update too.
  3. In fact I kept this part placed below <head></head> : $products_image_array = array(); for ($i = 1; $i <= (int)$HTTP_POST_VARS['image_array_limit']; ++$i) { $products_images = new upload('products_image_' . $i); $products_images->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_images->parse() && $products_images->save()) { $products_image_array[] = $products_images->filename; } else { if(isset($HTTP_POST_VARS['products_previous_image_' .$i])) $products_image_array[] = $HTTP_POST_VARS['products_previous_image_' .$i]; } } That's why it works. Not optimal but a good transition before I optimize (I am in a hurry right now) Despite these few mistakes, I find this contribution is the best one for multiple images ! Congratulations again spooks :) Note : could post my whole file but it is an OSCSS version, some minor changes could appear, if it's not a problem to you, OK for me ;)
  4. --> If I Comment the very beginning of the file (this section) : if ($action == 'new_product_preview') { // copy image only if modified $products_image = new upload('products_image'); $products_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image->parse() && $products_image->save()) { $products_image_name = $products_image->filename; } else { $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : ''); } // Simple multi image addon $products_image_array = array(); for ($i = 1; $i <= (int)$HTTP_POST_VARS['image_array_limit']; ++$i) { $products_images = new upload('products_image_' . $i); $products_images->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_images->parse() && $products_images->save()) { $products_image_array[] = $products_images->filename; } else { if(isset($HTTP_POST_VARS['products_previous_image_' .$i])) $products_image_array[] = $HTTP_POST_VARS['products_previous_image_' .$i]; } } // Simple multi image addon if ($HTTP_POST_VARS['instant_update'] == 'on') { $HTTP_POST_VARS['products_image'] = stripslashes($products_image_name); $i=1; reset($products_image_array); while (list($key, $value) = each($products_image_array)) { $HTTP_POST_VARS['products_image_' . $i] = stripslashes($value); ++$i; } $action = (isset($HTTP_GET_VARS['pID']) ? 'update_product' : 'insert_product'); } } ... my image update still works
  5. np++ has a file compare plugin, allowing manual changes, not automatic like Beyond Compare but safer to me.
  6. Thanks for your reply. First version of the plugin was ok, then I applied the update allowing multiple insertion in one edit. Then things went wrong ;) I can't try the supplied file (other plugins installed) File compare with NOTEPAD++ shows nothing My host uses PHP4 so I checked every $_POST and $_GET... no success !
  7. Hello, same here. I have the Success: File upload saved successfully message for my multiple images, AND the Warning: No file uploaded message for my 1st image !!!??? My new images (your addon) are taken into account but not the 1st image (oscommerce function). Help more than welcome. I can't find what your addon modified for the 1st product image :(
  8. Hi, thanks a lot for this addon ! I have to let you know, you forgot a portion of code in the very first lines of admin/categories.php : Copyright © 2003 osCommerce$stock_query = tep_db_query("select options_quantity from " . TABLE_PRODUCTS ." p,".TABLE_PRODUCTS_ATTRIBUTES. " pa where p.products_id = '" . (int)$products_id . "'"." AND p.products_id=pa.products_id AND pa.products_attributes_id='".(int)$products_attributes_id."'"); Not a bug, but I think Copyright © 2003 osCommerce is enough :)