Guest arnotts7 Posted June 8, 2007 Share Posted June 8, 2007 Hi could some one please help me? I am using the legend skin. when i view my site with IE6 the thumbnails are viewed across the latest products box with no probs. currently 3 across. If i view the same page with Fire fox it only places the thumbnails 2 across. Is there a setting within the browser or is there something within CC that can make it more compatible? PS i have searched through forums but i can't find anything close. if Someone has a link to previous post or any help at all. Greatly appreciated. Thanks Quote Link to comment Share on other sites More sharing options...
roban Posted June 8, 2007 Share Posted June 8, 2007 In the includes/content/index.inc.php find this line: for($i=0;$i<count($latestProducts);$i++){ Replace with this code $across=4; $index->assign("TW",100/$across); for($i=0;$i<count($latestProducts);$i++){ if (!(($i+1) % $across)) { $index->assign("TXT_TR","</tr><tr>"); } else { $index->assign("TXT_TR",""); } in skins/{insert skin name}/styleTemplates/content/index.tpl replace all code between <!-- BEGIN: repeat_prods --> and CODE <!-- END: repeat_prods --> including those two lines above with this code CODE <table width="100%" border="0"><tr> <!-- BEGIN: repeat_prods --> <td width="{TW}%"> <div style="float: center; text-align: center;"> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a> <br /> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a> <br /> {TXT_PRICE} <span class="txtSale">{TXT_SALE_PRICE}</span> </div> </td> {TXT_TR} <!-- END: repeat_prods --> </tr></table> The $across variable is used to specify number products across. Quote Link to comment Share on other sites More sharing options...
Guest arnotts7 Posted June 9, 2007 Share Posted June 9, 2007 Thanks guys! Tried yours first seemed the easiest. worked a treat. sorry that was meant to say tried yours first Stevie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.