衫衫 2008-3-17 22:06
当贴子浏览数达到设置数量标题后面自动加上[热门] FOR6.0
修改方法
[indent]修改templates\default\forumdisplay.htm
查找 复制内容到剪贴板 代码:[quote]<!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->[/quote]
在下面加上: 复制内容到剪贴板 代码:[quote]<!--{if $thread[views] > 1000}-->
<font color=red>
[热门]
</font>
<!--{/if}-->[/quote]
[/indent][indent][color=red]引用:[indent][color=red][b][quote]注:[/b][/color]<!--{if $thread[views] > 1000}-->这个1000是浏览量大于1000即在标题后面加上[热门],可以自己随便设置数量。[/quote][/indent]
若不想用文字形式的,可换成图片形式的,自己先制作一个热门的图片或hot图片
插入以下代码: 复制内容到剪贴板 代码:<!--{if $thread[views] > 1000}-->
[quote] <img src="图片地址" alt="" />
<!--{/if}-->
热门图片:
[attach]4809[/attach] [attach]4810[/attach]
[/quote][/color][/indent]