Page 126 of 373 FirstFirst ... 2676116124125126127128136176226 ... LastLast
Results 1,251 to 1,260 of 3726
  1. #1251
    Join Date
    Apr 2007
    Location
    Orange County, CA
    Posts
    88
    Plugin Contributions
    5

    Default Re: Zen Lightbox...

    PM sent. Just trying to add a background .gif at the top..

  2. #1252
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: Zen Lightbox...

    First off, thanks for a great mod! It has come a long was since I started using it

    I recently updated Lightbox to 1.5, which went great. However, I am having problems with my 1.38a/1.5 shop as Woody was below:

    Quote Originally Posted by Woodymon View Post
    Gems14k:

    I'm think we are in agreement. I will use your site as an example of the issue...

    The review page which customers will have access to and see (after the review has been approved) does not display the malformed text in the link.

    See here:
    http://www.nokoria.com/genuine/index...8&reviews_id=2

    But the page the review author will observe immediately after submitting the review and the page the customer will see if review has not been approved does indeed show the malformed text for the link.

    See here:
    http://www.nokoria.com/genuine/index...roducts_id=358

    So what I was trying to say is the error impacts product_reviews but does not impact product_reviews_info.

    I observe everything behaves/degrades correctly when JavaScript is disabled.

    Looking at tpl_modules_main_product_image.php updated for Lightbox/ImageHandler 2:

    Code:
      <!-- begin zen lightbox v1.3 aclarke 2006-10-20 -->
      <script language="javascript" type="text/javascript"><!--
    document.write('<?php echo '<a href="' . zen_image_lightbox_IH2_url($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" 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>
      <!-- end zen lightbox v1.3 aclarke 2006-10-20 -->
    Which generates the following HTML on product_reviews page:
    Code:
      <!-- begin zen lightbox v1.3 aclarke 2006-10-20 -->
    
      <script language="javascript" type="text/javascript"><!--
    document.write('<a href="images/rings/1940RY-RB.jpg" rel="lightbox[gallery]" title="Genuine Ruby Band Ring 14K Yellow Gold<br /><span class=\"smallText\">[1940RY-RB]</span>"><img src="images/rings/1940RY-RB.jpg" alt="Genuine Ruby Band Ring 14K Yellow Gold [1940RY-RB]" title=" Genuine Ruby Band Ring 14K Yellow Gold [1940RY-RB] " width="267" height="225" /><br /><span class="imgLink">zoom</span></a>');
    
    //--></script>
      <!-- end zen lightbox v1.3 aclarke 2006-10-20 -->
    Note:

    Code:
    <br /><span class=\"smallText\">[1940RY-RB]</span>">
    Hopefully this leads you in the right direction.

    Woody
    On the main product page, the main image displays properly but on the list of reviews page, I get some of the product's model displayed as HTML just before the image. On the individual review page, it is fine again.

    By getting the shop to output the $products_name, I am seeing that the main product page just shows the name, but the review list page adds the model to the end of the name. This seems to choke the Lightbox code and results in the erroneous text being displayed...

    Any ideas on how I can fix this?

    ta,

    Nick

  3. #1253
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Hi Nick,

    Do you have a link to your website (or even the page in question) please?

    If so, post it here (or PM me) and I'll take a look.

    Many thanks,

    Alex

  4. #1254
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: Zen Lightbox...

    Hi Alex, thanks for your reply!

    I have been banging my head against this all night, and have finally nailed it I think!

    The problem page was http://www.knightkit.co.uk/index.php...oducts_id=3027
    as that is the only product with a review.

    What I reckon was causing it was "includes/modules/page/product_reviews/header_php.php". In that file around line 42, the code adds the product's model number to the product's name. The brackets added during this process then broke the HTML, leading to the ouputted model before the product image!

    All sorted now, and I need to rummage back through the thread and let the other couple of folks know how I fixed it :)

    Nick

  5. #1255
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Hi Nick,

    Thanks for the update.

    This issue was fixed in a previous version. However, I think v1.5 may have broken the fix!

    If you don't mind, could you post your solution (fix) here as it will help others and I may also include it in v1.6.

    Cheers,

    Alex

  6. #1256
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: Zen Lightbox...

    Hi Alex, no probs :)

    I changed line 42 of "includes/modules/page/product_reviews/header_php.php" from:
    Code:
    if (zen_not_null($review->fields['products_model'])) {
        $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
      } else {
        $products_name = $review->fields['products_name'];
      }
    to:

    Code:
    {
        $products_name = $review->fields['products_name'];
    }
    Just thought - should I have used an override for this instead?

    ta,

    Nick

  7. #1257
    Join Date
    Jan 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Great contribution thanks!

    This is my first time using the lightbox addon and I have noticed that on some computers it does not work with Firefox. I checked the browser version and all of them were updated to the current firefox.

    Has anyone else noticed this?

  8. #1258
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: Zen Lightbox...

    Works fine on my Mac and PC Firefoxes - when you say "it doesn't work", could you be a bit more specific?

    Nick

  9. #1259
    Join Date
    Jan 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Sorry for being so vague.

    By not working, I mean that the image is greyscaled as well as the background, making it hard to view.

    Thanks!

  10. #1260
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: Zen Lightbox...

    Have you got a screencap we can have a look at please?

    Nick

 

 

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