1)、修改 includes/lib_clips.php 文件php
將下面代碼html
$sql = 'SELECT g.goods_id, g.goods_name, g.market_price, g.shop_price AS org_price, '.
修改成sql
$sql = 'SELECT g.goods_id, g.goods_name,g.goods_thumb, g.market_price, g.shop_price AS org_price, '.
而後找到 下面代碼post
$goods_list[$row['goods_id']]['rec_id'] = $row['rec_id'];
在它下面增長一行url
$goods_list[$row['goods_id']]['goods_thumb'] = get_image_path($row['goods_id'], $row['goods_thumb'], true);
2)、而後修改模板文件,這裏以 官方默認模板爲例進行講解。code
打開 /themes/default/user_clips.dwt 文件htm
找到ip
<th width="35%" bgcolor="#ffffff">{$lang.goods_name}</th>
在它上邊增長get
<th bgcolor="#ffffff">縮略圖</th>
繼續找到io
<td bgcolor="#ffffff"><a href="{$goods.url}" class="f6">{$goods.goods_name|escape:html}</a></td>
在它上邊增長
<td bgcolor="#ffffff"><a href="{$goods.url}" ><img src="{$goods.goods_thumb}" width="100" height="100"></a></td>
3)、大功告成