Re: Zen Lightbox generates odd HTML on the product reviews page
what is invalid about it? thats the link that makes the lightbox work. note the rel="lightbox-g"
Re: Zen Lightbox generates odd HTML on the product reviews page
Quote:
Originally Posted by
niestudio
what is invalid about it? thats the link that makes the lightbox work. note the rel="lightbox-g"
Please look at the page I referenced.. See the odd text link next to the image??? That's NOT supposed to be there..
This is the incorrect HTML that makes up this link. Please note the text in blue and green.. The text in blue is invalid HTML, and the text in green (looks like the model number) just doesn't belong there at all.
Code:
<a href="images/dasPic_24141.jpg" rel="lightbox-g" title="National Geographic - Secrets of the Titanic<br /><span class=" smalltext"="">[G52000]"><img src="images/dasPic_24141.jpg" alt="National Geographic - Secrets of the Titanic [G52000]" title=" National Geographic - Secrets of the Titanic [G52000] " height="350" width="349"><br><span class="imgLink">larger image</span></a>
Re: Zen Lightbox generates odd HTML on the product reviews page
strange indeed, I'll have a look soon.
Re: Zen Lightbox generates odd HTML on the product reviews page
Quote:
Originally Posted by
niestudio
strange indeed, I'll have a look soon.
and this occurs in BOTH the Zen Lightbox and the beta Colorbox add-ons..
Re: Zen Lightbox generates odd HTML on the product reviews page
More information.. Did a little hunting with the Admin Toolbox and I think I know where the part of the store is being hosed is coming from..
/home2/myhost/public_html/myclient/includes/modules/pages/product_reviews/header_php.php |
Line #42 : $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>'; |
|
/home2/myhost/public_html/myclient/includes/modules/pages/product_reviews_info/header_php.php |
Line #100 : $products_model = '<br /><span class="smallText">[' . $review_info->fields['products_model'] . ']</span>'; |
|
/home2/myhost/public_html/myclient/includes/modules/pages/product_reviews_write/header_php.php |
Line #119 : $products_model = '<br /><span class="smallText">[' . $product_info->fields['products_model'] . ']</span>'; |
These were the only files I could related to reviews which has code similar to the code that is getting mangled by the lightbox (specifically the reference to the model number). The write reviews page is probably fine since the I do not see the problem manifest itself there, but you never know.. Dunno if this helps narrow things down, but hoping it helps point things in the right direction..
Re: Zen Lightbox generates odd HTML on the product reviews page
Hello all I just installed lightbox on zen 1.5 and I cant see the configuration page in the admin. I'm a noob please help! not sure if i posted in the right spot..
Re: Zen Lightbox generates odd HTML on the product reviews page
Found a temporary solution.
In this file: /includes/modules/pages/product_reviews/header_php.php
I made the following change:
Find line #43-44 and replace with the following.
Code:
// $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
// } else {
Basically I am commenting out the code that Zen Lightbox is mangling which makes the odd/malformed HTML go away. I'm sure the same solution will fix the issue with the Colorbox beta so I'm gonna post this there too..
Quote:
Originally Posted by
DivaVocals
More information.. Did a little hunting with the Admin Toolbox and I think I know where the part of the store is being hosed is coming from..
/home2/myhost/public_html/myclient/includes/modules/pages/product_reviews/header_php.php |
Line #42 : $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>'; |
|
/home2/myhost/public_html/myclient/includes/modules/pages/product_reviews_info/header_php.php |
Line #100 : $products_model = '<br /><span class="smallText">[' . $review_info->fields['products_model'] . ']</span>'; |
|
/home2/myhost/public_html/myclient/includes/modules/pages/product_reviews_write/header_php.php |
Line #119 : $products_model = '<br /><span class="smallText">[' . $product_info->fields['products_model'] . ']</span>'; |
These were the only files I could related to reviews which has code similar to the code that is getting mangled by the lightbox (specifically the reference to the model number). The write reviews page is probably fine since the I do not see the problem manifest itself there, but you never know.. Dunno if this helps narrow things down, but hoping it helps point things in the right direction..