![]() |
Re: Thickbox 2.0 implementation
has anyone been able to make this work with 4.1.7? i can't seem to find the detailed image line which i need to comment out.
any help will be greatly appreciated. |
Re: Thickbox 2.0 implementation
got it to work. problem now is it shows up as a link like mentioned before instead of a thumbnail.
anyone who has any idea at all on how to show thumbnails instead of a link? |
Re: Thickbox 2.0 implementation
I'm using the following code for my thickbox_productpage.tpl
Code:
|
Re: Thickbox 2.0 implementation
Use this code:
Quote:
Adjust the line that I bolded to make the thumbnails whatever size you like. |
Re: Thickbox 2.0 implementation
Hmmm just one bug with this, it doesn't seem to wrap. I have tested it with 4 images and it just pushes the text over and it looks terrible. Anyone have a fix for this?
You can see what I mean here: http://www.babyplanetboutique.com/xcart/product.php?productid=73&cat=1&page=1 |
Re: Thickbox 2.0 implementation
1 Attachment(s)
Edit: My Code is for Thickbox version 3 or 3.1
I tried this wonderful mod and had the same problem with multiple images not wrapping. I have a working version that gracefully wraps and lets you specify how many images per row before wrapping. New thickbox_productpage.tpl PHP Code:
You also need to change the location of the thickbox_productpage.tpl include in the customer\main\product.tpl file PHP Code:
On 4.1.9 this code is around line 208 Hope this helps someone |
Re: Thickbox 2.0 implementation
Edit: My Code is for Thickbox version 3 or 3.1
Heres a slightly tweaked version. It has better cosmetics, and centers the image thumbnails. PHP Code:
Also need to add this to your css file Code:
.image_bdr {BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid} |
Re: Thickbox 2.0 implementation
Does anyone know how to get thickbox working with images on a static page?
Thanks! |
Re: Thickbox 2.0 implementation
Any ideas? I have the table holder on my product.tpl but i try all and none idea work Can anyone take a look and tell me whats wrong?
Thanks! Code:
|
Re: Thickbox 2.0 implementation
Continue....
Code:
{/if} |
Re: Thickbox 2.0 implementation
Hi,
I've installed this Thickbox on my test site, and used the above code to create thumbnails etc rather than text link - thanks a lot for the help given. However, in Internet Explorer the image is displayed twice (one above the other) whereas in firefox this problem does not occur. Does anybody else have problems with Internet explorer? Here is an example: http://xcart.bpservers.co.uk/xcart/product.php?productid=16126&cat=243&page=1 Maybe i've screwed something up! Jay |
Re: Thickbox 2.0 implementation
Unless you are using the code I placed above, I believe the problem may be that the other code above is for Thickbox 3, and you are using Thickbox 2.
I have combined my code with that to wrap multiple thumbnails and it works fine. Code:
|
Re: Thickbox 2.0 implementation
The code I posted was tested with Thickbox 3.1 and seemed to work fine.
Thickbox 2 was not tried |
Re: Thickbox 2.0 implementation
Ah, thought so - the 2 versions are different - so anyone following this thread needs to be careful as it is titled "Thickbox 2.0 implementation".
If you are using v2, then use my code, if v3, use sk8conz's. |
Re: Thickbox 2.0 implementation
ok thanks, but i can't seem to work out which version of thickbox i have.
I downloaded it from here: http://www.7dana.com/106.84.0.0.1.0.phtml Does anybody know which version this is? Cheers |
Re: Thickbox 2.0 implementation
If you are getting 2 images in IE, then you need to use my code - I would guess you are using Thickbox 2.
|
Re: Thickbox 2.0 implementation
PAULODMAN - many thanks! that solves it!
|
Re: Thickbox 2.0 implementation
Quote:
Version 3 |
Re: Thickbox 2.0 implementation
I'm spinning my wheels here and not having any luck.
Using version 4.1.9 basically out of the box. No modifications. I downloaded 7dana's zip file today . Looking at the js file it's Thickbox 3 So I'm not sure what part of 7dana's instructions I'm supposed to follow and what part of sk8conz instructions I'm supposed to follow with thickbox 3 in 4.1.9 maybe a quick step by step could help others too since the main/product.tpl is different in 4.1.9. here's mine .. which I dont think is the same from others posted earlier in this thread: {* $Id: product.tpl,v 1.46.2.2 2007/06/04 11:13:13 max Exp $ *} {capture name=dialog} <table width="100%"> <tr> <td valign="top" align="left" width="30%"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product} <p /> {if $smarty.get.mode ne "printable"} <a href="product.php?productid={$product.productid}&a mp;mode=printable" target="_blank"><img src="{$ImagesDir}/print.gif" width="23" height="22" name="print" alt="{$lng.lbl_printable_version|escape}" /></a> {/if} </td> <td valign="top"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td>{$lng.lbl_sku}</td> <td>{$product.productcode}</td> </tr> {if $product.category_text} <tr> <td>{$lng.lbl_category}</td> <td>{$product.category_text}</td> </tr> {/if} {if $usertype eq "A"} <tr> <td>{$lng.lbl_vendor}</td> <td>{$product.provider}</td> </tr> {/if} <tr> <td>{$lng.lbl_availability}</td> <td>{if $product.forsale eq "Y"}{$lng.lbl_avail_for_sale}{elseif $product.forsale eq "B"}{$lng.lbl_pconf_avail_for_sale_bundled}{elseif $product.forsale eq "H"}{$lng.lbl_hidden}{else}{$lng.lbl_disabled} {/if}</td> </tr> <tr> <td colspan="2"> <br /> <br /> <span class="Text">{$product.descr}</span> <br /> <br /> </td> </tr> <tr> <td colspan="2"><b><font class="ProductDetailsTitle">{$lng.lbl_price_info}< /font></b></td> </tr> <tr> <td class="Line" height="1" colspan="2"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td width="50%">{$lng.lbl_price}</td> <td nowrap="nowrap"><font class="ProductPriceSmall">{include file="currency.tpl" value=$product.price}</font></td> </tr> <tr> <td width="50%">{$lng.lbl_in_stock}</td> <td nowrap="nowrap">{$lng.lbl_items_available|substitu te:"items":$product.avail}</td> </tr> <tr> <td width="50%">{$lng.lbl_weight}</td> <td nowrap="nowrap">{$product.weight} {$config.General.weight_symbol}</td> </tr> </table> <br /> <table cellspacing="0" cellpadding="0"> <tr> <td>{include file="buttons/modify.tpl" href="product_modify.php?productid=`$product.produ ctid`"}</td> <td> </td> <td>{include file="buttons/clone.tpl" href="process_product.php?mode=clone&productid=`$p roduct.productid`"}</td> <td> </td> <td>{include file="buttons/delete.tpl" href="process_product.php?mode=delete&productid=`$ product.productid`"}</td> </tr> </table> </td> </tr> </table> {/capture} {if $smarty.get.mode eq "printable"} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=440"} {else} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra='width="100%"'} {/if} |
Re: Thickbox 2.0 implementation
Hi,
My install was on a "fresh" 4.1.9 as well. Follow 7danas install instructions. They work. Then once that is running you can make the mods I listed |
Re: Thickbox 2.0 implementation
dana's instructions specify:
3. The same file(product.tpl), comment this out with a {* *}: {if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')} <p /> {include file="modules/Detailed_Product_Images/product_images.tpl" } {/if} but I cant find that code in my product.tpl. am I looking right at it? |
Re: Thickbox 2.0 implementation
Here's my product.tpl
skin1\customer\main is where it lives Code:
{* $Id: product.tpl,v 1.147.2.16 2007/06/28 05:47:00 max Exp $ *} |
Re: Thickbox 2.0 implementation
continued - file was tooooo long
Code:
{/if} |
Re: Thickbox 2.0 implementation
when I go to edit my templates ... and I navigate to main/product.tpl ...
sk8conz, my file looks nothing like your product.tpl ... so I'm really confused. Across the top of yours it says {* $Id: product.tpl,v 1.147.2.16 2007/06/28 05:47:00 max Exp $ *} Across the top of mine it says {* $Id: product.tpl,v 1.46.2.2 2007/06/04 11:13:13 max Exp $ *} and mine was just installed about 10 days ago. Could this be a factor why yours has 3 times as many lines as mine? and why mine doesnt have the code I"m supposed to comment out? Could someone look at my product.tpl file (posted earlier today) and let me know if I'm missing something please and thank you |
Re: Thickbox 2.0 implementation
Sk8conz .. was your 4.1.9 installed more recently than 10 days ago? because you have a different version number at the top of your product.tpl
I'm not sure how i can modify my product.tpl when it doenst contain the code I'm supposed to append and comment out. Can anyone help:? |
Re: Thickbox 2.0 implementation
The correct file is in :-
skin1\customer\main NOT skin1\main |
Re: Thickbox 2.0 implementation
That's all the information I needed.
Thank you very much. |
Re: Thickbox 2.0 implementation
Has anyone come up with a way to load another image for the thumbnails, to speed up the initial page loading?
https://image-reflections.com/xcart/product.php?productid=54&cat=0&page=1&featured i have 15 detailed images and this page loads so slow, and is a waste of bandwidth if they don't actual look at them. |
Re: Thickbox 2.0 implementation
Excellent mod. It works out fine. Please make sure that you edit product.tpl from skin1/customer/main/
|
Re: Thickbox 2.0 implementation
Quote:
Are you sure about this, it looks like Thickbox is commented out? Anyway, I used the code from post #47 in a fresh install of 4.1.8 and it works very well except for one thing... If the "customer" scrolls down the page and then clicks on one of the thumbnails the Thickbox opens at the top of the page instead of centered over the "darkend" area. Any ideas on how to fix this? Otherwise it works perfect. BTW, a fresh install of 7Dana's code does the same thing. |
Re: Thickbox 2.0 implementation
I've installed Thickbox but everypage that I have alternate images is aligned 'left' in the browser. how do I correct this.....all other pages follow css and work fine.
example page is http://www.atozfabrication.com/store/product.php?productid=16137&cat=0&page=1 |
Re: Thickbox 2.0 implementation
This is most likely in your skin1/customer/product.tpl. There is a section that deals with only one image, whether it is a full size image or a thumbnail, and another separate section that deals with multiple "detail" images. My guess is the single image section is centered, and the detailed one is not. Realize of course the detailed images are usually called by another template, and the page formatting may actually be done there.
|
Re: Thickbox 2.0 implementation
2 Attachment(s)
I have installed the mod and it looks excellent . However I have couple of annoyances.
1. I have some flash included on my pages in product detailed description. The problem is that flash is showing through my thickbox . Is it any way where I can specify something like bring to front or send to back? I can't disable the flash because is used to demo sounds . The site sells doorbells www.mrdoorbell.com and sound is quite important. 2. My product descriptions are quite long even 6-7 words . When using the thickbox the description underneath the detailed images pushes all my long description to the right and it messes the website layout. How can I modify it in such a way that it will say only "Click to enlarge " instead the whole name ? Thank you . I have atached two pictures so you can have an idea about the problems. |
All times are GMT -8. The time now is 09:34 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.