Results 1 to 10 of 258

Hybrid View

  1. #1

    Default Re: Jquery Lightbox [Support thread]

    I'm not sure if it's bug, but it seems to me. I work on site that does not have IH installed but still uses large images. Unfortunately in cases where there is more then one image thumbnail is displayed for additional images.
    As far as I can tell $flag_has_large isn't set in 'additional_images.php' on line 91. Quick fix is to replace:
    PHP Code:
    if(defined(IH_RESIZE))
            
    $flag_has_large true;//file_exists($products_image_large);
        
    else[...] 
    with
    PHP Code:
    $flag_has_large file_exists($products_image_large);
    if(
    defined(IH_RESIZE))
            
    $flag_has_large true;//file_exists($products_image_large);
        
    else[...] 
    Of course, I can be wrong ;)

  2. #2

    Default Re: Jquery Lightbox [Support thread]

    data_digger, that worked wonderfully for me. Thanks a ton!

  3. #3
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,835
    Plugin Contributions
    31

    Default Re: Jquery Lightbox [Support thread]

    Hi,
    I had IH2 working fine with watermarks on medium and large images.

    After installing jquery lightbox I lost the watermarks.

    In modules/MY_TEMPLATE/main_product_image.php
    there is a conditional loop that checks for the existence of IH2 and if it exists, it should not execute a chunk of original code that has to be removed for IH2 to work properly.

    The conditional test is
    Code:
    if(!defined(IH_RESIZE)){
    and irrespective of whether IH_RESIZE is 'yes' or 'no' the loop always executes. Surely it should not execute?

    If I change the test to
    Code:
    if(defined(IH_RESIZE)){
    the loop does not execute and the watermarks come back.

    That does not make sense to me.

    Since there are many people using both mods and no comments about losing watermarks (well there is one but the solution was never posted), I find it easier to believe my php non-skills are to blame rather than I have found something new.

    Any comments from the cognoscenti please??

    thanks
    Steve

  4. #4
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Jquery Lightbox [Support thread]

    Quote Originally Posted by torvista View Post
    Hi,
    I had IH2 working fine with watermarks on medium and large images.

    After installing jquery lightbox I lost the watermarks.

    In modules/MY_TEMPLATE/main_product_image.php
    there is a conditional loop that checks for the existence of IH2 and if it exists, it should not execute a chunk of original code that has to be removed for IH2 to work properly.
    I just had this same problem. I solved it by replacing main_product_image.php and additional_images.php with the files found back a directory in modules. These files were provided by Image Handler. You could also just delete these two overrides.

    Now it works just fine.

    Anthony Taylor
    Webmaster
    http://buydentalequipment.com

  5. #5
    Join Date
    Sep 2009
    Location
    Bali
    Posts
    1
    Plugin Contributions
    0

    Default Re: Jquery Lightbox [Support thread]

    WOW I have been mixed up. trying to get lightbox and some kind of hover thing working on http://bombasticplastix.com/webstore...&products_id=1
    IH 2 installed but could never get hover working in IH 2 have tried to get Jquery Lightbox working No luck usually I can moose through this stuff Would really love some help I'm freaking out have to get this store operational. Have crawled all over the thread just can't seem to get it to work.Thanks Samalma
    Last edited by samalama13; 31 Oct 2009 at 07:46 PM.

  6. #6
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Jquery Lightbox [Support thread]

    Somethings gone wrong and I think I traced it back to Jquery Lightbox. On my advanced search page I noticed the javascript isn't loading up correctly. I kinda traced this down to modifications in html_header.php in the common directory.

    If I use the old html_header.php my javascript loads up for the advanced search page.. however the javascript needed for the lightbox to work fails.

    With the modified html_header.php that comes with JQLightbox the lightbox javascript loads up just fine but the advanced page looks naked.

    It would seem the major difference is that the old one loads each file up directly whereas the new one loads them into an array which is then parsed and loaded.

    I tried hacking it but nothing happened. Would appreciate any help.

    Files:
    http://beta.buydentalequipment.com/c...JQLightbox.txt
    http://beta.buydentalequipment.com/c...eader.orig.txt

    Anthony

  7. #7
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Jquery Lightbox [Support thread]

    Quote Originally Posted by llynix View Post
    Somethings gone wrong and I think I traced it back to Jquery Lightbox. [snip]

    I tried hacking it but nothing happened. Would appreciate any help.

    Anthony
    Turns out I was hacking the wrong place. If I go back to the original code in this section everything seems to work fine.

    Code:
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     */
      $directory_array = $template->get_template_part($page_directory, '/^jscript_/');
      while(list ($key, $value) = each($directory_array)) {
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
    //    $jscript_files_to_load[$value] = -100;
        require($page_directory . '/' . $value); echo "\n";
      }

 

 

Similar Threads

  1. Zen Lightbox addon [Support Thread]
    By Alex Clarke in forum All Other Contributions/Addons
    Replies: 3726
    Last Post: 2 Feb 2026, 06:28 PM
  2. v153 jQuery Scrolling Sideboxes [Support Thread]
    By lat9 in forum Addon Sideboxes
    Replies: 79
    Last Post: 15 Apr 2024, 10:20 PM
  3. v152 Down for Maintenance jQuery Countdown (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Nov 2015, 03:04 PM
  4. v152 jQuery Banners (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 30 Sep 2015, 02:07 AM
  5. Jquery Zoom [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 384
    Last Post: 11 Dec 2013, 02:41 AM

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