FridayNight Posted September 12, 2008 Share Posted September 12, 2008 Does anybody know how to display the big image on top right of the product_info.php with the dynamic mopic 3.0 installed? The sourcecode of the small image, including the popup link for the big one, is this: <tr> <td align="center" class="smallText"> <?php $image_lg = mopics_get_imagebase($product_info['products_image'], DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR); if ($lg_image_ext = mopics_file_exists(DIR_FS_CATALOG . $image_lg, DYNAMIC_MOPICS_BIG_IMAGE_TYPES)) { $image_size = @getimagesize(DIR_FS_CATALOG . $image_lg . '.' . $lg_image_ext); ?> <script language="javascript" type="text/javascript"><!-- document.write('<a href="java script:popupImage(\'<?php echo tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&type=' . $lg_image_ext); ?>\',\'<?php echo ((int)$image_size[1] + 30); ?>\',\'<?php echo ((int)$image_size[0] + 5); ?>\');"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="imgframe"'); ?><br><span class="smallText"><?php echo TEXT_CLICK_TO_ENLARGE; ?></span></a>'); //--></script> <noscript> <a href="<?php echo tep_href_link($image_lg . '.' . $lg_image_ext); ?>" target="_blank"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="imgframe"'); ?> <br> <span class="smallText"> <?php echo TEXT_CLICK_TO_ENLARGE; ?> </span></a> </noscript> <?php } else { echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="imgframe"'); } ?> </td> </tr> Please, any help appreciated! 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.