Page 244 of 373 FirstFirst ... 144194234242243244245246254294344 ... LastLast
Results 2,431 to 2,440 of 3726
  1. #2431

    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

  2. #2432
    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

  3. #2433
    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

  4. #2434
    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

  5. #2435
    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.

  6. #2436
    Join Date
    Nov 2009
    Posts
    285
    Plugin Contributions
    5

    Default Re: Zen Lightbox...

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


  7. #2437

    Default Re: Zen Lightbox...

    Quote Originally Posted by niestudio View Post
    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.
    Last edited by ScriptJunkie; 1 Mar 2011 at 04:09 AM.
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  8. #2438

    Default Re: Zen Lightbox...

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

    Empowerment Sanctuary

  9. #2439
    Join Date
    Nov 2009
    Posts
    285
    Plugin Contributions
    5

    Default Re: Zen Lightbox...

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

  10. #2440

    Default Re: Zen Lightbox...

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

    Empowerment Sanctuary

 

 

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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR