Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Aug 2006
    Posts
    126
    Plugin Contributions
    0

    Default Make additional images NOT clickable

    I have image handler installed so my additional images pop up into full size on mouseover.

    So I would like to stop them from being a clickable link.

    I am reasonably sure that I need to remove some of the bits of the code below, from additional_images.php,

    // Link Preparation:
    $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? 'javascriptopupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '' : $thumb_slashes) . '\');' . "\n" . '//--></script>';

    $noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' : $thumb_regular ) . '</noscript>';
    I have had go but can't get it right. Any help would be appreciated.

    As ever with Zencart I wonder if there is a simpler way, if there is please point it out.

    Many thanks.

  2. #2
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    Just below that you have

    $alternate_link = '<a href="' . $products_image_large . '" title="' . $products_name . '" rel="lightbox">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';

    Change it to

    $alternate_link = $thumb_regular;

  3. #3
    Join Date
    Aug 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    Hi, thanks for your reply.

    I tried what you said but it didn't help, I wonder if you've missed my intention.

    I want the image to enlarge on mouseover, as it does now, but I don't want ti ti be clickable.

    Cheers,
    Rick

  4. #4
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    Well it does exactly that on a standard store, I don't know how this affects your mouse over part.

  5. #5
    Join Date
    Aug 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    Here is what I have for link preparation in it's entirety,

    // Link Preparation:
    $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascriptopupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';

    $noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' : $thumb_regular ) . '</noscript>';

    // $alternate_link = '<a href="' . $products_image_large . '" onclick="javascriptopupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';

    $link = $script_link . "\n " . $noscript_link;
    // $link = $alternate_link;
    I presume then that I need to do something with the other two lines at the bottom?

    Cheers,
    Rick

  6. #6
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    // $alternate_link = '<a href="' . $products_image_large . '" onclick="javascriptopupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';

    Replace <a href= with just <a= and see if that works.

  7. #7
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    Personally, you have to think if this is worthwhile.

    Remember any one on a mobile phone or tablet, doesnt have 'image hover' - they only have clickable links. So by doing this none of those people will be able to see a large version of your pic, and let alone the hover large version.

  8. #8
    Join Date
    Aug 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    Quote Originally Posted by dgent View Post
    // $alternate_link = '<a href="' . $products_image_large . '" onclick="javascriptopupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';

    Replace <a href= with just <a= and see if that works.
    That works a treat, thanks.

    Your other points are noted, my actual problem is that when clicking on the additional images the wrong picture loads into the new window, I am after a quick fix while I look into that.

    Thanks for your help,
    Rick

  9. #9
    Join Date
    Jan 2006
    Posts
    1,542
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    By wrong picture, you mean another photo for that product? Sometimes this happens to me when I change the main photo for an additional photo. It sticks in IH's bmz cache. Is that the problem?

    A link or text address to site may help.
    Steve
    prommart.com

  10. #10
    Join Date
    Aug 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: Make additional images NOT clickable

    When clicking on any of the additional images, the main product image loads in the popup window.

    I'm sure it's probably to do with the way the images have been named.

    The site is at onestopglasses co uk, but the images are currently unclickable.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Make SubCategory images clickable links...
    By Primo Pipez in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Mar 2013, 05:04 AM
  2. How to make additional images look more presentable in product info page?
    By keemeng in forum Customization from the Admin
    Replies: 6
    Last Post: 6 Jun 2011, 02:31 AM
  3. Make header clickable
    By iwantone in forum General Questions
    Replies: 0
    Last Post: 25 Feb 2010, 06:57 PM
  4. how to make clickable buttons?
    By kab_death in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 17 Feb 2010, 09:14 PM
  5. How can I make my titles not clickable?
    By M_Keller in forum General Questions
    Replies: 0
    Last Post: 30 Nov 2008, 02:57 PM

Posting Permissions

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