Make thickbox work for the default image, as opposed to detailed only?
Does anyone know the code to make it so thickbox works for the default image?
I only have one image for products these days so I dont use detailed images, but I really want it so when u click the primary image then an expanded version appears in the thickbox as opposed to popping up in a new window. Anyone done this please? |
Re: Make thickbox work for the default image, as opposed to detailed only?
I have thickbox working on my thumbnail image (as well as detailed). I moved the thumbnail code to the thickbox template in product.tpl
move the thumbnail code from product.tpl to thickbox_productpage.tpl (or whatever you call your thickbox template). I am not using the latest thickbox -- but the technique should work. Code:
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"} yes? |
Re: Make thickbox work for the default image, as opposed to detailed only?
Thank you carp, I have it working now.
Is there a way to automatically watermark thickbox images like you can with the cerdemann mod? |
Re: Make thickbox work for the default image, as opposed to detailed only?
Does this one also work together with the TelaFirma dynamic Image generator?
|
Re: Make thickbox work for the default image, as opposed to detailed only?
yah, I got it working with Telefirma just now.
See : http://www.sdkjewellers.co.uk/categories/diamond-bangles Click the magnifying glass Code is: for products_t.tpl: Code:
<a href="{$products[product].tmbn_url}" title="{$images[image].alt|escape}" class="thickbox" rel="lightbox_detailed"> for product.tpl: Code:
<a href="{$product.tmbn_url}" title="{$images[image].alt|escape}" class="thickbox" rel="lightbox_detailed"> |
Re: Make thickbox work for the default image, as opposed to detailed only?
Ah yes I see. But the detailed image is not the image loaded by the Dynamic Image Generator. When I view the thumbs source, its loaded from the cache directory. When I check the detailed image its loaded from the thumbs folder. I'm still trying to get it working for the detailed image, that it also loads from the cached version.
|
Re: Make thickbox work for the default image, as opposed to detailed only?
ah right, fair enough, can't help you then as I don't use detailed images.
At least now I get what people mean when they say they cant get thickbox workin with telefirma |
Re: Make thickbox work for the default image, as opposed to detailed only?
It really would be an ideal combo :(
|
Re: Make thickbox work for the default image, as opposed to detailed only?
Anyone know how to dynamically watermark the thickbox image?
|
Re: Make thickbox work for the default image, as opposed to detailed only?
Quote:
Can you please tell me where to put this code in thickbox_productpage.tpl? I'm having no luck getting this to work :( |
Re: Make thickbox work for the default image, as opposed to detailed only?
Hi Carpeperdiem,
Would you be so kind and let me know where exactly in "thickbox_productpage.tpl" file that you line of code below should go? And I assume that line would be commented out (or deleted) first in the "product.tpl" file, correct? Below is my "thickbox_productpage.tpl" file. Thanks so much for all the help! --------------------------------------------------------------------------------------------------------------- {if $images ne ""} {* <div style="white-space:nowrap;color:#D90000;font-weight:bold;padding:2px;margin:10px 0 4px;">{$lng.lbl_detailed_images}¬</div> *} <table width="250"><tr> {section name=image loop=$images} <td> {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} <a href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}" class="thickbox" rel="lightbox_detailed"><img src="{$images[image].tmbn_url}" height="50" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /> {if $images[image].alt|escape eq ""} {$lng.lbl_image} {math equation="value+1" value=$smarty.section.image.index}{/if}</a></div> {else} <a href="{$xcart_web_dir}/image.php?id={$images[image].imageid}&type=D" title="{$images[image].alt|escape}" class="thickbox" rel="lightbox_detailed"><img src="{$SkinDir}/thickbox/files/zoom.gif" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /> {$images[image].alt|escape}{if $images[image].alt|escape eq ""} {$lng.lbl_image} {math equation="value+1" value=$smarty.section.image.index}{/if}</a></div> {/if} {/if} </td> {/section}</tr> </table> <script type="text/javascript" src="{$SkinDir}/thickbox/files/jquery-compressed.js"></script> <script type="text/javascript" src="{$SkinDir}/thickbox/files/thickbox.js"></script> <style type="text/css" media="all">@import "{$SkinDir}/thickbox/files/thickbox.css";</style> {/if} Quote:
|
Re: Make thickbox work for the default image, as opposed to detailed only?
I just nstalled this mod with 4.1.10.but i dont have detailed image .how can i make that works ,just clicking thumbnail.
thanks |
All times are GMT -8. The time now is 12:39 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.