Results 1 to 6 of 6

Click to Enlarge?

This is a discussion on Click to Enlarge? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; When i click on the link under the product photo that says "Click to Enlarge" it launches a new window ...

      
  1. #1
    Member sheikyerbouti's Avatar
    Join Date
    Oct 2002
    Posts
    45
    Rep Power
    0


    Default Click to Enlarge?

    When i click on the link under the product photo that says "Click to Enlarge" it launches a new window but shows the product in the same size as the original. I think i heard about a contribution which would make it possible to actually view enlarged images, but what i really want to do is just remove the "Click to Enlarge" link altogether. I don't recall seeing anything about this. Can someone help me with this simple (i hope) subtraction from the code?

    Thanks,
    pete

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default

    It is pretty easy:

    In the file product_info.php go to roughly line 102-104. See below:

    <tr>
    <td align="center" class="smallText">]<a href="javascriptopupImageWindow('<?php echo tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']); ?>')"><?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?><br> <?php echo TEXT_CLICK_TO_ENLARGE; ?></a></td>
    </tr>

    Delete the text that I have highlighted above.

  3. #3
    Member sheikyerbouti's Avatar
    Join Date
    Oct 2002
    Posts
    45
    Rep Power
    0


    Default

    Thank you very much for responding to ALL my questions. Have a great day. This site and the Guide both ROCK!!!

    -pete

  4. #4
    Member sheikyerbouti's Avatar
    Join Date
    Oct 2002
    Posts
    45
    Rep Power
    0


    Default

    Actually, my code is slightly different than what you show. Could you help me figure out which exact pieces i delete from the following?
    Thanks again.
    -pete


    <tr>
    <td align="center" class="smallText">
    <script language="javascript"><!--
    document.write('<?php echo '<a href="javascriptopupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['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 . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
    </noscript>
    </td>
    </tr>

  5. #5
    Anonymous
    Guest


    Default

    I dont have your actual code, but I think this will work. See the sections marked in bold and remove them. I havent actually tested this, so make sure to backup your original file. Good luck...



    <tr>
    <td align="center" class="smallText">
    <script language="javascript"><!--
    document.write('<?php echo '<a href="javascriptopupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['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 . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
    </noscript>
    </td>
    </tr>

  6. #6
    Member sheikyerbouti's Avatar
    Join Date
    Oct 2002
    Posts
    45
    Rep Power
    0


    Default

    well, that's close. i finally got it to work and here's the code. you were right on the first part, but you still need to remove the anchor code from the second section.

    -pete


    <tr>
    <td align="center" class="smallText">
    <script language="javascript"><!--
    document.write('<?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>');
    //--></script>
    <noscript>
    <?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>
    </noscript>
    </td>
    </tr>

Similar Threads

  1. 'Click to Enlarge' is missing?
    By danhosts in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 10-04-2006, 04:37 AM
  2. Click To Enlarge Image
    By heaven in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 02-07-2006, 12:42 PM
  3. click to enlarge
    By crujones in forum osCmax v1.7 Discussion
    Replies: 7
    Last Post: 04-25-2004, 03:37 PM
  4. Click to Enlarge
    By msmull in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 03-22-2004, 09:19 AM
  5. Why does it say click to enlarge when it doesn't?
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-22-2002, 06:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •