Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2005
    Posts
    99
    Plugin Contributions
    0

    custom image popup script only work for main image, not for additional images

    Hi

    I put this popup javascript, called ibox, to this file /includes/modules/pages/product_info/jscript_main.php

    Only the main image work. The additional images do not. How any help please?

    This is my test page.
    http://www.nokoria.com/catalog/index...&products_id=8


    Thank you,
    Last edited by gems14k; 2 Oct 2006 at 11:09 PM.

  2. #2
    Join Date
    Aug 2005
    Posts
    26,037
    Plugin Contributions
    9

    Default Re: custom image popup script only work for main image, not for additional images

    Did this work before you made the edits to the JS?

    If so start with what you changed and debug from there.

    If not, then the iBox was not designed to do this
    Zen-Venom Get Bitten
    Get Your Business Found

  3. #3
    Join Date
    Jul 2005
    Posts
    99
    Plugin Contributions
    0

    Default Re: custom image popup script only work for main image, not for additional images

    Quote Originally Posted by kobra
    Did this work before you made the edits to the JS?

    If so start with what you changed and debug from there.

    If not, then the iBox was not designed to do this

    It didn't work even before I edited the JS.


    I also modofied this file:

    /includes/templates/nokoria/templates/tpl_modules_main_product_image.php

    to this code:

    <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>
    <div id="productMainImage" class="centeredContent back"><script language="javascript" type="text/javascript"></script>

    <?php
    echo '<a href="' . $products_image_large . '" rel="ibox" title="' . zen_output_string($products_name) . '">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
    ?>
    </div>


    Thank you,

  4. #4
    Join Date
    Aug 2005
    Posts
    26,037
    Plugin Contributions
    9

    Default Re: custom image popup script only work for main image, not for additional images

    Sorry,

    I am generally a css type & not a php type...you need a coder here...
    Zen-Venom Get Bitten
    Get Your Business Found

  5. #5
    Join Date
    Jul 2005
    Posts
    99
    Plugin Contributions
    0

    Default Re: custom image popup script only work for main image, not for additional images

    Quote Originally Posted by kobra
    Sorry,

    I am generally a css type & not a php type...you need a coder here...
    Thank you, kobra. I appreciate your help. I only use one image for each product. So I guess I dont need to fixed it yet. Thank you anyways.
    Last edited by gems14k; 4 Oct 2006 at 05:25 AM.

 

 

Similar Threads

  1. HOW-TO: Image Preparation
    By Ryk in forum Templates, Stylesheets, Page Layout
    Replies: 296
    Last Post: 3 Jul 2012, 10:10 AM

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
  •