My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
that's me too it is a "let's try this and hope I don't kill it type of thing" but I am learning...lol
now this may seem silly but, did you make very sure that all the files are in their right spots..sometimes a left out one (i do that too often) or one that got corrupted on the way up will do things to the mods.
Well I meant that I don't write PHP code.. I actually do have a web design certificate (I am proficient with HTML/CSS), and because I do work as Senior Business Systems Analyst, my role in development projects is typically not that of a programmer/developer or DBA.. However, I have worked in the world of web based software development for long enough that I have figured a LOT out on my own.. However I am still a LONG way from calling myself a programmer..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Ok, here's what I have so far. I may be way off base here, so I do not recommend anyone make these changes. Right now the goal is just to look at the code and explore options. Unfortunately, I just don't know enough about programming to understand if what I'm doing will work or cause a major fail.
I started with comparing the code in includes/templates/YOUR_CUSTOM_TEMPLATE/templates/tpl_modules_main_product_image in both ZLB and FSB, I'm guessing the below might be a good place start or at least the right direction to look in?
in the ZLB version of the above file, lines 23 - 25, find:Replace with this from FSB version of the above file, lines 53 -61:Code:<script language="javascript" type="text/javascript"><!-- document.write('<?php echo '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" title="' . addslashes($products_name) . '">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>'); //--></script>and then change it to this:Code:$fualSlimboxContent .= $fual_slimbox_a . $fual_slimbox_image . '</a>'; // Putting the text link together with the image is nasty! $fualSlimboxContent .= '<br class="clearBoth" />'; $fualSlimboxContent .= $fual_slimbox_a . '<span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; $fualSlimboxContent .= '</div>'; ?> <script language="javascript" type="text/javascript"><!-- document.write('<?php echo $fualSlimboxContent; ?>' ); //--></script>There may be other code in the FSB version of the file that is equally pertinent....perhaps lines 24 - 28? I'm not sure. I'm actually not sure about any of it...but I figured it's as good a starting place as any.Code:$IH2Content .= $IH2_a . $not_sure_what_to_do_here_perhaps_define_this_in_a_way_to_pull_from_bmz_cache . '</a>'; // Putting the text link together with the image is nasty! $IH2Content .= '<br class="clearBoth" />'; $IH2Content .= $IH2_a . '<span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; $IH2Content .= '</div>'; ?> <script language="javascript" type="text/javascript"><!-- document.write('<?php echo $IH2Content; ?>' ); //--></script>
Diva, I look forward to hearing what your test results yield later on this evening.
Last edited by ScriptJunkie; 1 Mar 2011 at 12:42 AM. Reason: made correction
@ ScriptJunkie (and others)
OK, I did some digging, and I dont think the problem has anything to do with the additional_images file.
I made a scratch installation of ZC1.3.9 and IH2. out of the box (w/o ZLB) I was seeing the exact same behavior you described (the main product image was being called from /images and NOT bmz_cache)
I started digging thru the files and I found that after 2 tries of merging the includes directory, [includes/modules/(theme)/main_product_image.php] was not getting updated to the IH2 version.
after manually installing this 1 file, I stared seeing expected behavior of the main product image.
after this, I installed ZLB 1.6.2 I was seeing the proper behavior still. (the lightbox image was pulled from bmz_cache and NOT /images)
So check your server and see if that file was updated to the IH2 version.
Daniel
@DivaVocals,
I was reading the IH2 forum and saw the posts about updating the readme for ZLB to address IH2, and I think thats a great idea.
If you want to PM me what you are including in the IH2 update I can paste that into the ZLB readme too.
cheers,
daniel
i went and checked mine although I usuallly don't have that problem of them not overwritten since prior to uploading a new file that is already present -- I place a ~ or write old at the end of the name after the .php ... this nulls the one that is one the server (in some cases it doesn't work and I still have to manually remove them
Will do!!
I agree.. BUT those who are using ZLB should overwrite the one from the IH2 fileset with the one from ZLB or ZLB will not work correctly..
This file is not ncluded with the IH2 fileset.. Can you let me know which version you installed.. I want everything to be apples to apples in my testing (which I am starting as we speak). I'm backing up my test store so I can rollback if needed, and will be installing ZLB on top of IH2.. Standby for my results..![]()
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.