Results 1 to 10 of 3727

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Quote Originally Posted by Woodymon View Post
    @Izon: Just a hunch but maybe some other JavaScript you are loading is conflicting? Maybe temporarily disable the other scripts to test.
    The other two loaded scripts:

    Code:
    <script type="text/javascript" src="js/kuzmenu.js"></script>
    <script type="text/javascript" src="js/rollovers.js"></script
    I'm not familiar with kuzmenu.

    See here:
    http://pdplay.com/pint-size_play_rsm-1.html

    You have a mouseover enabled on the additional image (the drawing thrumbnail) which maybe conflicting with Lightbox function. Disable the mouseover on that image to test for conflict. (easiest to test by temporarily disabling rollover script).

    Woody

  2. #2
    Join Date
    Apr 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Woody,

    Thanks for your efforts. I wish I could go back to the original developers but that's not an option. I'm not familiar with kuzmenu either and could not find anything online.

    I guess it could be a javascript conflict, but I would expect to see some sort of error message.

    The other reason I question this is that, when I look at the source code, for the image popup, I see

    Code:
      <a href="images/RSM-1-7501.jpg" target="_blank">(Larger image)</a>
    I would expect to see something similar to this

    Code:
    <!-- begin lightbox v1.1 aclarke 2006-09-06 -->
    <script language="javascript" type="text/javascript"><!--
    document.write('<a href="images/scl/novar-75mm.jpg?zenid=e12b280870a919e950bf31c29c2152e6" rel="lightbox[gallery]" title="Novar Anastigmat lens 3.5/7.5cm"><img src="images/scl/novar-75mm.jpg" alt="Novar Anastigmat lens 3.5/7.5cm" title=" Novar Anastigmat lens 3.5/7.5cm " width="133" height="120" /><br /><span class="imgLink">larger image</span></a>');
    //--></script>
    <!-- end lightbox v1.1 aclarke 2006-09-06 -->
    which is from the source of a working installation.

    If it were a javascript conflict, wouldn't the code still get output correctly to the browser, then probably throw an error?

    Given the above, I would think there is some problem with my install?

    Again, I really appreciate your time and effort.

  3. #3
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Quote Originally Posted by izonmedia View Post
    If it were a javascript conflict, wouldn't the code still get output correctly to the browser, then probably throw an error? Given the above, I would think there is some problem with my install?
    Just tossing out ideas:

    I would still temporarily disable the rollover and kazmenu one at a time to see if there is any conflict.

    And you sure you have:

    Correctly edited Zen Cart core files to include Lightbox code:
    includes/templates/classic/templates/tpl_modules_main_product_image.php
    and
    includes/modules/classic/additional_images.php

    And uploaded
    includes/modules/pages/product_info/jscript_lightbox.php
    includes/templates/template_default/jscript/lightbox_effects.js

    And uploaded the lightbox gifs to
    includes/templates/template_default/images/lightbox/

    To test maybe temporarily remove:
    includes/functions/extra_functions/zen_image_lightbox_IH2_url.php

    Is there a compatibility issue with SEO URL's? Since I have not employed SEO URL's I cannot help. Hopefully someone whom has both Lightbox and SEO URL's installed can post to confirm they work together. Or maybe some SEO URL mod hints in this thread?

    Good luck,
    Woody

  4. #4
    Join Date
    Apr 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by Woodymon View Post
    Just tossing out ideas:

    And you sure you have:

    Correctly edited Zen Cart core files to include Lightbox code:
    includes/templates/classic/templates/tpl_modules_main_product_image.php
    and
    includes/modules/classic/additional_images.php
    This sounds like the meat of the problem. I have not edited these files.

    When I downloaded the contribution and decompressed it, I found a readme.txt file with 3 simple instructions, none of which mentions editing these files. Did I miss other instructions in this download?

    I'll try looking back through this thread and see if I can find those instructions.

    Thanks again for your help.

  5. #5
    Join Date
    Apr 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Feeling like an idiot here:

    What core files need to be edited to include lightbox code?

  6. #6
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Quote Originally Posted by izonmedia View Post
    This sounds like the meat of the problem. I have not edited these files. When I downloaded the contribution and decompressed it, I found a readme.txt file with 3 simple instructions, none of which mentions editing these files. .
    You are correct. The readme is over simplified and does not include the code snippets which were merged into the core Zen Cart files provided in the mod package. (Unfortunately the developer assumes you will on your own compare the provided files with your installed versions. But many new to Zen Cart just blindly upload. This is why it is is best practice for developers to document such code snippets in the mod readme...but some mod developers are in just too much of a rush or just forget or just don't care).

    At any rate this mod works with Zen Cart 1.37 but it has NOT been updated for Zen cart 1.37. Compare with the ZC 1.37 core files and you will observe differences in ZC 1.37 version of /includes/modules/additional_images.php that do not show up in the mod version of the same file.

    Note the Lightbox 1.3 mod was last updated over six months ago, well before the release of ZC 1.37. Hopefully Alex will take this in consideration with next update.

    So I just compared the two core ZC files provided in the Zen Lightbox 1.3 mod distribution with the Zen Cart 1.37 version core files.

    My findings:

    (1) \includes\templates\YOUR-TEMPLATE-FOLDER\templates\tpl_modules_main_product_image.php
    in the mod package is still current with ZC 1.37
    Code:
     * @version $Id: tpl_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $
    (2) But I cannot say the same for:
    \includes\modules\YOUR-TEMPLATE-FOLDER\additional_images.php

    Latest Zen Cart 1.37 version:
    Code:
     * @version $Id: additional_images.php 5369 2006-12-23 10:55:52Z drbyte $
    Older IH2 version in Zen Lightbox:
    Code:
     * @version $Id: additional_images.php,v 1.3 2006/05/01 12:20:31 tim Exp $
    (keep in mind that cboylan integrated code from the last version of ImageHandler 2 into the Lightbox version of the file. Last version of IH2 was released in the early days of ZC 1.3x and the IH2 mod is no longer developed by the author).

    Comparing this file I noted one specific line is for Lightbox and all the other changes are for IH2.

    In the latest ZC 1.37 version of the file multiple instances of the ereg_replace() function has been replaced by str_replace() function.

    For example, the following:
    PHP Code:
      $products_image_base ereg_replace($products_image_extension '$'''$products_image); 
    Was changed in Zen Cart 1.37 to :
    PHP Code:
      $products_image_base str_replace($products_image_extension''$products_image); 
    If you want to understand why see:
    See http://us2.php.net/ereg_replace
    http://us2.php.net/str_replace

    So for this specific file if you don't use IH2 (and it appears you don't) it might be best to just open a copy of the default ZC 1.37 core version (if you have no other edits) and edit the one line difference yourself and then upload.

    For the future I think it best if the lightbox mod was released in two separate versions, one for base Zen Cart and another for IH2 (just include alternative files in the same package but in different option directories, and also document the different code snippets in readme).

    Also I am uncertain if non-IH2 users need to upload
    includes/functions/extra_functions/zen_image_lightbox_IH2_url.php
    It appears it is only needed for IH2 installs but I myself use IH2 so I have file uploaded.

    I suspect some of this stuff may have been previously documented further back in this thread. Search on cboylan for more info.

    As a reminder for all...

    I'm not saying that uploading those files is your current issue (and it is likely not) but any time you install a mod you should not overwrite core files or upload overrides, without first checking if those files provided in the mod match your Zen Cart version. That applies to Lightbox also.

    And before overwriting you should check to see if you will be overwriting files you have previously edited/customized.

    Install a compare/merge tool (e.g. WinMerge or BeyondCompare) to compare the mod files with the Zen Cart core versions and also compare with the back ups of your versions (before you uploaded the mod versions).

    Woody
    Last edited by Woodymon; 25 Apr 2007 at 09:11 PM.

  7. #7
    Join Date
    Feb 2007
    Location
    Los Angeles
    Posts
    359
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Hi

    can some one direct me to where i can find instruction on how to put more than one picture,
    i install the zen lightbox and it working perfect
    am also using zen 1.37

    i only know it can do it whan i saw one of my pic say on top next and 1/2 but i dontknow how it heppen , and i like to post more pics for same product

    Ty

  8. #8
    Join Date
    Feb 2007
    Location
    NNJ
    Posts
    212
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Motti,

    Find the Images folder where your product images are, and add images to it as follows:
    If your main product image is productA.jpg , then additional images can be
    productA_01.jpg
    productA_02.jpg
    etc...

    As a matter of fact, you put anything you want after the underscore.
    If you already have an underscore in the image name, then...., oh nooooo, it's kryptonite.

    Make sure you have additional images turned ON in admin.
    Last edited by Zinfandel; 28 Apr 2007 at 03:51 PM. Reason: left something out.
    Elliot

    The loves of my life are a good white zinfandel and my dog Homer.

  9. #9
    Join Date
    Apr 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by Woodymon View Post
    You are correct. The readme is over simplified and does not include the code snippets which were merged into the core Zen Cart files provided in the mod package.
    Woody,

    Sorry for the very late reply to your last assistance to my issues, I was pulled away from this project for several days and unable to look into it further.

    I really appreciate the time you invest in assisting others with a contribution that is not even yours. Says a lot about you.

    I have resolved my problem, though it took some head scratching. After following your instructions carefully, I still could not get it to work. Turns out that some of the customization done by an earlier development team on the core files was not allowing the replacement of the image tag. Had to do with the rollover image for schematics available on some products. I had to go in and make some modifications to correct this.

    All is well again in the land of playground equipment.

    http://www.pdplay.com

    Once again, many thanks for your assistance.

  10. #10
    Join Date
    Oct 2006
    Location
    Suffolk UK
    Posts
    55
    Plugin Contributions
    1

    Default Re: Zen Lightbox...

    help with z-index please :)

    I have flyout categories and they seem to be underneath the product images as here

    http://www.dinkydrinks.eu/sale-sale-...c-178_179.html

    Please help.

    regards & thanks in anticipation :)

 

 

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