网站开启了VIP,VIP分3个级别会员组1“VIP会员2:高级VIP会员3:至尊VIP会员无论是哪个级别的VIP都是调用同一个VIP图标,能否给各组设置不同的图标呢?

修改对应页面模板,代码如下:

groupid在后台会员组里可以查看

{if $t[groupid] == “7”}<img src=”{SKIN_PATH}image/vip7.gif” alt=”诚信商家” />{/if}{if $t[groupid] == “8”}<img src=”{SKIN_PATH}image/vip8.gif” alt=”批发商” />{/if}{if $t[groupid] == “9”}<img src=”{SKIN_PATH}image/vip9.gif” alt=”推广商家” />{/if}{if $t[groupid] == “10”}<img src=”{SKIN_PATH}image/vip10.gif” alt=”超级大商家” />{/if}</li>