Here's my version - I had some trouble with some of the previous posted code examples. Some only accepted a particular graphic file type - only GIFs for example or needing logo image named exactly as the Manufacturer name, and for some of them, the link was broken after a while on the logos. Although it takes a while to load the images from image.php - I prefer it because it seems like more robust code. I hard coded the table around each logo to be 150 pixels.
My version shows the text too (but it's pretty easy to remove it if you want to do that).
Here's it is:
Code:
{* $Id: customer_manufacturers_list.tpl,v 1.6 2005/11/21 12:42:10 max Exp $ *}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=mid loop=$manufacturers}
{if $manufacturers[mid].manufacturerid}{assign var="tmp" value="1"}{/if}
{/section}
{section name=mid loop=$manufacturers}
{ if %mid.first% }
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{/if}
{ if %mid.index% is div by 5}
<tr> {/if}
<td align="center" valign="middle"><table width="150" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="manufacturers.php?manufacturerid={$manufacturers[mid].manufacturerid}"><img src="image.php?id={$manufacturers[mid].manufacturerid}&type=M" border="0" alt="{$manufacturers[mid].manufacturer}" /></a>
</td>
<tr>
<td><font class="ItemsList"> <a href="manufacturers.php?manufacturerid={$manufacturers[mid].manufacturerid}"> {$manufacturers[mid].manufacturer}</a></font></td>
<tr>
<td> </td>
<tr>
<td> </td>
</table>
{ if %mid.last% }
</table>
{/if}
{/section}
{ include file="customer/main/navigation.tpl" }
{/capture}
{include file="dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.dialog extra='width="100%"'}
I also modified the include statement in /modules/Manufacturers/menu_manufacturers.tpl so the Manufacturer title would be a link with:
Code:
{include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_manufacturers menu_content=$smarty.capture.menu link_href="manufacturers.php"}
I tested it on version 4.1.8.