Forums / Templates, Stylesheets, Page Layout / custom image popup script only work for main image, not for additional images

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

Locked

Views: 7,628

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Oct 2006, 10:05 PM
#1
gems14k avatar

gems14k

New Zenner

Join Date:
Jul 2005
Posts:
95
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.php?main_page=product_info&cPath=3_13&products_id=8

Thank you,

3 Oct 2006, 2:37 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

3 Oct 2006, 5:05 AM
#3
gems14k avatar

gems14k

New Zenner

Join Date:
Jul 2005
Posts:
95
Plugin Contributions:
0

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

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,

3 Oct 2006, 5:07 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

4 Oct 2006, 4:19 AM
#5
gems14k avatar

gems14k

New Zenner

Join Date:
Jul 2005
Posts:
95
Plugin Contributions:
0

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

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.