Results 1 to 10 of 3727

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    285
    Plugin Contributions
    5

    Default Re: Zen Lightbox...

    Quote Originally Posted by DivaVocals View Post
    and see what SHE finds

    apologies, female programmers rock!

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Zen Lightbox...

    Quote Originally Posted by niestudio View Post

    apologies, female programmers rock!
    No worries!!!

    I wouldn't call me a programmer exactly.. I'm more of a hunt, peck, and "let's try this" kinda girl..
    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.

  3. #3
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by DivaVocals View Post
    No worries!!!

    I wouldn't call me a programmer exactly.. I'm more of a hunt, peck, and "let's try this" kinda girl..
    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.

  4. #4

    Default Re: Zen Lightbox...

    Quote Originally Posted by DarkAngel View Post
    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>
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Zen Lightbox...

    Quote Originally Posted by DarkAngel View Post
    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.

  6. #6

    Default Re: Zen Lightbox...

    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:
    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>
    Replace with this from FSB version of the above file, lines 53 -61:
    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>
    and then change it to this:
    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>
    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.

    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
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  7. #7
    Join Date
    Nov 2009
    Posts
    285
    Plugin Contributions
    5

    Default Re: Zen Lightbox...

    @ 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

  8. #8
    Join Date
    Nov 2009
    Posts
    285
    Plugin Contributions
    5

    Default Re: Zen Lightbox...

    @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

  9. #9
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by niestudio View Post
    @ 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

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Zen Lightbox...

    Quote Originally Posted by niestudio View Post
    @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
    Will do!!

    Quote Originally Posted by niestudio View Post
    @ 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..

    Quote Originally Posted by niestudio View Post
    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..
    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.

 

 

Similar Threads

  1. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  2. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  3. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  4. File Upload Required addon [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 10 Dec 2011, 03:00 AM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 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