juliatrops Posted December 23, 2005 Share Posted December 23, 2005 Hi there! I have dl'd a contribution for extra images in the store... I have a whole set of images set up for my ebay store, and I would like to use the same directory. These are not in the same directory as what the script requests, so I would like to change the directory... I would like to change DIR_WS_IMAGES to DIR_WS_SCANS can it be done successfully? This is the only place I can find in the entire contribution that references the actual directory where an image would be. Do I need to change anything else in SQL? Here is the script: <?php //BOF - Custom hack for extra images //////////////////////////////////////// ?> <TR> <TD> <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0> <TR> <?php $rowcount_value=4; $rowcount=1; $products_extra_images_query = tep_db_query("SELECT products_extra_image, products_extra_images_id FROM " . TABLE_PRODUCTS_EXTRA_IMAGES . " WHERE products_id='" . $product_info['products_id'] . "'"); while ($extra_images = tep_db_fetch_array($products_extra_images_query)) { ?> <TD CLASS="main" WIDTH="<?php echo SMALL_IMAGE_WIDTH; ?>" VALIGN="top"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_EXTRA_IMAGES, 'peiID=' . $extra_images['products_extra_images_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $extra_images['products_extra_image'], addslashes($product_info['products_name']),SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></SCRIPT> <NOSCRIPT> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $extra_images['products_extra_image']) . '">' . tep_image(DIR_WS_IMAGES . $extra_images['products_extra_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </NOSCRIPT> </td> <?php if ($rowcount == $rowcount_value){echo '</tr><tr>'; $rowcount=1;} else {$rowcount=$rowcount+1;} } ?> </tr> </TABLE> </td> </tr> <?php //BOF - Custom hack for extra images //////////////////////////////////////// ?> It was written by Mikel Williams [email protected] [email protected] [email protected] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.