Judemoon Posted October 27, 2010 Share Posted October 27, 2010 Having searched this forum for answers and tried several solutions, the thickbox on my website still doesn't work!The thumbnail below the product image still opens up in a new window instead of the thickbox.I have edited the product.tpl file as recommended. Please help me to identify what has gone wrong! Thanks a million!judegetImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox{if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}"> Link to comment Share on other sites More sharing options...
Judemoon Posted October 27, 2010 Author Share Posted October 27, 2010 somehow I can't seem to attach the file or put up the scripts right :{ Link to comment Share on other sites More sharing options...
uddhava Posted October 27, 2010 Share Posted October 27, 2010 Some older templates have incorrect code for thickbox. the code below works {foreach from=$images item=image name=thumbnails} {assign var=imageIds value=`$product->id`-`$image.id_image`} <!-- ##### UDDHAVA Changes ##### -->getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}"><!-- ##### UDDHAVA Changes ##### --> getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" /> {/foreach} Link to comment Share on other sites More sharing options...
Judemoon Posted October 28, 2010 Author Share Posted October 28, 2010 It still doesn't work, the thumbnails became text (scripts) :[When I click on the text link, nothing happens. Link to comment Share on other sites More sharing options...
Publisher Posted March 27, 2012 Share Posted March 27, 2012 <p> Some older templates have incorrect code for thickbox. the code below works<br /><br /> {foreach from=$images item=image name=thumbnails}<br /> {assign var=imageIds value=`$product->id`-`$image.id_image`}</p> <p><br /> {/foreach} </p><p> </p> <p>Does not work for me. Or where exacly i have to insert this code? I tried to insert the code between the HTML comments in the href="" parameter , but it stlii does not work.</p> <ul> <li id="thumbnail_{$image.id_image}"><br /> <!-- ##### UDDHAVA Changes ##### --><a>getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">{C}<!-- ##### UDDHAVA Changes ##### --><br /> <img id="thumb_{$image.id_image}" />getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" /></a><br /> </li> </ul> Link to comment Share on other sites More sharing options...
Publisher Posted March 27, 2012 Share Posted March 27, 2012 Some older templates have incorrect code for thickbox. the code below works {foreach from=$images item=image name=thumbnails} {assign var=imageIds value=`$product->id`-`$image.id_image`} {/foreach} getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">{C} getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" /> This does not work for me. Or please tell us where exatly we have to insert this code? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now