Jump to content


  • Content count

  • Joined

  • Last visited

  1. chimera15

    [Contribution] Dynamic MoPics

    I've installed everything it looks like properly, but something's still really confusing me that reading through these posts I don't think I found the explanation for entirely. The dynamic regcognition of thumnails occurs during upload, or you have to ftp the files into the folders right, each product has to have it's own directory then within that thumb and bigpicture directories right. But then how from the add new product page do you get it to reconize the images? There's only an upload area it seems from that page, am I missing something there? Should there be a way to link images from that page by a directory call inside oscommerce?
  2. chimera15

    Multi images extra contribution

    Alright, now I'm getting this problem. Parse error: parse error, unexpected T_ELSEIF in /home/chimera/www/storefront/catalog/admin/categories.php on line 712 The code I have right now on that line is this: <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_date_added', (tep_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </tr> </table></form> <?php elseif ($action == 'new_product_preview'){ if {(tep_not_null($HTTP_POST_VARS)) $pInfo = new objectInfo($HTTP_POST_VARS); $products_name = $HTTP_POST_VARS['products_name']; $products_description = $HTTP_POST_VARS['products_description']; $products_url = $HTTP_POST_VARS['products_url']; }} else { $product_query = tep_db_query("SELECT p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, pi.products_image1, pi.products_image2, pi.products_image3, pi.products_image4, pi.products_image5, pi.products_image6, pi.products_image7, pi.products_image8, pi.products_image9, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id FROM (".TABLE_PRODUCTS." p LEFT JOIN ".TABLE_PRODUCTS_IMAGES." pi ON p.products_id = pi.products_id) INNER JOIN ".TABLE_PRODUCTS_DESCRIPTION." pd ON p.products_id = pd.products_id WHERE p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'"); $product = tep_db_fetch_array($product_query); $pInfo = new objectInfo($product); $products_image_name = $pInfo->products_image; $products_image1_name = $pInfo->products_image1; $products_image2_name = $pInfo->products_image2; $products_image3_name = $pInfo->products_image3; $products_image4_name = $pInfo->products_image4; $products_image5_name = $pInfo->products_image5; $products_image6_name = $pInfo->products_image6; $products_image7_name = $pInfo->products_image7; $products_image8_name = $pInfo->products_image8; $products_image9_name = $pInfo->products_image9; } $form_action = (isset($HTTP_GET_VARS['pID'])) ? 'update_product' : 'insert_product'; echo tep_draw_form($form_action, FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '') . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"'); $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { if (isset($HTTP_GET_VARS['read']) && ($HTTP_GET_VARS['read'] == 'only')) { $pInfo->products_name = tep_get_products_name($pInfo->products_id, $languages[$i]['id']); $pInfo->products_description = tep_get_products_description($pInfo->products_id, $languages[$i]['id']); $pInfo->products_url = tep_get_products_url($pInfo->products_id, $languages[$i]['id']); } else { $pInfo->products_name = tep_db_prepare_input($products_name[$languages[$i]['id']]); $pInfo->products_description = tep_db_prepare_input($products_description[$languages[$i]['id']]); $pInfo->products_url = tep_db_prepare_input($products_url[$languages[$i]['id']]); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cell Any help? Thanks Anyone have a working catagories.php file they could just upload to the contribution by chance? 12+ changes is pretty bad.
  3. chimera15

    Multi images extra contribution

    Alright, I think I got it, the language confused me a little, it should read "insert these two queries into your database using the sql database query tool on your server" I think? Anyway, thanks :)
  4. chimera15

    Multi images extra contribution

    Do I need to add these registers using my server somehow or do I need to edit a file in oscommerce? I'm a bit lost. this part : 2) Run this 2 query on your db(please note that the original table 菟roducts・is not affected): CREATE TABLE `products_images` ( `products_id` int(11) NOT NULL auto_increment, `products_image1` varchar(64) default NULL, `products_image2` varchar(64) NOT NULL default '', `products_image3` varchar(64) NOT NULL default '', `products_image4` varchar(64) NOT NULL default '', `products_image5` varchar(64) NOT NULL default '', `products_image6` varchar(64) NOT NULL default '', `products_image7` varchar(64) NOT NULL default '', `products_image8` varchar(64) NOT NULL default '', `products_image9` varchar(64) NOT NULL default '', PRIMARY KEY (`products_id`) ); INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` ) VALUES ( '', 'Number of extra images', 'NB_IMAGE_EXTRA', '4', 'Number of extra images (0 to 9)', '4', '9', NULL , '2006-04-17 14:10:42', NULL , NULL ); 2 query? huh?
  5. chimera15

    Multi images extra contribution

    I think I need some help or more info about adding the database registers too, or at least could someone point me to info about how to go about it? Thanks for any help!