Zen Cart Logo
Forums / All Other Contributions/Addons / Zen Lightbox addon [Support Thread]

Zen Lightbox addon [Support Thread]

Views: 953,192

Results 2,421 to 2,440 of 3,722
28 Feb 2011, 10:54 PM
#2421
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

DarkAngel:

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.

Yep! Not silly at all...it's one of the first things I look for because I know all too well how easy it is to do <grin>

28 Feb 2011, 10:54 PM
#2422
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

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..

28 Feb 2011, 11:39 PM
#2423
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

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: ```

<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>

Replace with this from FSB version of the above file, lines 53 -61:
$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>
and then change it to this:
$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.
1 Mar 2011, 1:50 AM
#2424
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

@ 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

1 Mar 2011, 1:53 AM
#2425
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

@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

1 Mar 2011, 2:24 AM
#2426
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

@ 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

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

1 Mar 2011, 2:38 AM
#2427
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Lightbox addon [Support Thread]

niestudio:

@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,
danielWill do!!:smile:

niestudio:

@ 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 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..

niestudio:

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.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..:smile:

1 Mar 2011, 2:50 AM
#2428
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

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..:smile:

I downloaded IH2 Version: 2.0 Rev 8d from the addons page today.
this is a screenshot of the file structure with the file in question highlighted. is this not correct?

1 Mar 2011, 3:05 AM
#2429
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

I downloaded IH2 Version: 2.0 Rev 8d from the addons page today.
this is a screenshot of the file structure with the file in question highlighted. is this not correct?

Yeah, I don't have that file either (main_product_image.php) in my IH2 version (v2.0 Rev 8d) That's why I thought the ZLB version of the file needed to be modified to create the desired behavior...

Will wait for Diva's testing to be concluded before I go seek out the IH2 version of that file and attempt to merge it with the ZLB version.

1 Mar 2011, 3:12 AM
#2430
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Very interesting. I just re-downloaded IH2.0 Rev 8.d and the main product image file is in the package. I don't know how that's possible (that it wasn't there before but is now when it's the same version), but as long as I have it now, I'm happy :)

Will hold off merging the two until after hearing back from Diva.

1 Mar 2011, 3:13 AM
#2431
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

ScriptJunkie:

Very interesting. I just re-downloaded IH2.0 Rev 8.d and the main product image file is in the package. I don't know how that's possible (that it wasn't there before but is now when it's the same version), but as long as I have it now, I'm happy :)

Will hold off merging the two until after hearing back from Diva.

I'm totally baffled then, I just downloaded the last 4 versions of IH2 and all of them had that file.

1 Mar 2011, 3:31 AM
#2432
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

I'm totally baffled then, I just downloaded the last 4 versions of IH2 and all of them had that file.

I am as well. Ultimately, did you:

Install IH2 (including uploading this one file individually) and then install ZLB (overriding that file with the ZLB version)

or

Did you install both IH2 and ZLB and then upload this file individually after merging the two versions?

1 Mar 2011, 3:41 AM
#2433
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

ScriptJunkie:

I am as well. Ultimately, did you:

Install IH2 (including uploading this one file individually) and then install ZLB (overriding that file with the ZLB version)

or

Did you install both IH2 and ZLB and then upload this file individually after merging the two versions?

Installed IH2, uploaded that file, and then installed ZLB, but that file is not part of the ZLB architecture, so you should only have the 1 file to work with. (as far as I know)

1 Mar 2011, 3:49 AM
#2434
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Lightbox addon [Support Thread]

My bad.. I was reading FAR too fast.. YOU are correct..
Okay.. Still testing..

niestudio:

I downloaded IH2 Version: 2.0 Rev 8d from the addons page today.
this is a screenshot of the file structure with the file in question highlighted. is this not correct?

1 Mar 2011, 4:16 AM
#2435
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

Installed IH2, uploaded that file, and then installed ZLB, but that file is not part of the ZLB architecture, so you should only have the 1 file to work with. (as far as I know)

Ok...clearly I'm insane. I DO have it. I was confusing the includes/modules/YOUR_CUSTOM_TEMPLATE/main_product_image.php file in IH2 with the includes/templates/YOUR_CUSTOM_TEMPLATE/templates/tpl_modules_main_product_image.php file in ZLB.

I'm going to try re-uploading includes/modules/custom/main_product_image.php from IH2 and see what happens while Diva continues her testing.

Sorry for the confusion folks!

1 Mar 2011, 4:42 AM
#2436
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

ScriptJunkie:

...I'm going to try re-uploading includes/modules/custom/main_product_image.php from IH2 and see what happens...

Still didn't solve it for me. Even tried deleting both the original and custom file, clearing the cache, reloading the empty page to "bump" my server, then re-uploaded both the original and custom files, then reloaded the web page.

Same result.

1 Mar 2011, 4:43 AM
#2437
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Lightbox addon [Support Thread]

Alright folks I'm tapped out.. My results are only partially satisfactory.. The LARGE additional images are NOT being pulled from the bmz_cache folder, and I haven't a CLUE as to why.. I need to eat, take a shower and come at this tomorrow.. I could use a set of eyeballs to help me figure out why.. Not sure if the issue is my test store, and I'm far too pooped to set this thing back to a vanilla state to start over..

1 Mar 2011, 4:53 AM
#2438
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

ScriptJunkie:

Still didn't solve it for me. Even tried deleting both the original and custom file, clearing the cache, reloading the empty page to "bump" my server, then re-uploaded both the original and custom files, then reloaded the web page.

Same result.

Very strange! It worked instantly for me as soon as I loaded that one file. Btw, I am testing all of this on a totally clean install of ZC that is still using the classic template. I uploaded a few additional products on top of the default ones and loaded rediculosly large images for IH2 to scale down.

[thinking out loud]
Are you sure that your main image is in fact larger than what you have IH2 set to scale down a large image too? I would guess that if your image is 400px and IH2 is set to only scale down to 500px then it would just do nothing and possibly just load the original from /images.
[/thinking out loud]

Daniel

1 Mar 2011, 5:04 AM
#2439
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

Alright folks I'm tapped out.. My results are only partially satisfactory.. The LARGE additional images are NOT being pulled from the bmz_cache folder, and I haven't a CLUE as to why.. I need to eat, take a shower and come at this tomorrow.. I could use a set of eyeballs to help me figure out why.. Not sure if the issue is my test store, and I'm far too pooped to set this thing back to a vanilla state to start over..

Thanks for all your hard work so far! Rest well :)

1 Mar 2011, 5:14 AM
#2440
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

[thinking out loud]
Are you sure that your main image is in fact larger than what you have IH2 set to scale down a large image too? I would guess that if your image is 400px and IH2 is set to only scale down to 500px then it would just do nothing and possibly just load the original from /images.
[/thinking out loud]

Daniel

Just checked the settings. The main product images are large images 600px wide. Mediums are set to scale down to 199 and small down to 80. There's no setting to scale down to large, as the largest image is what's used by ZLB's "zoom". There's a max large file size, and I have that set to 599px wide.

In the admin for IH2, the image sizes are set using Config/Images.