免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖

[分享] 给论坛精华贴盖章的方法

一、首先查找网站根目录\templates\default\下的viewthread.htm文件,找到以下的代码:
<!--{if $relatedthreadlist && $qihoo['relate']['position']}-->
  {template viewthread_relatedthread}
<!--{/if}-->
複製代碼
在这个代码的上面加入以下的代码:
<!--{if $thread['digest']}--><!--{if $page==1}-->
<div id="digest" style="position:absolute;width:0px; height:0px; top: 230px; right:380px ;">
<!--{if $thread['digest'] ==1}--><img src="images/ding_1.gif" border="0" alt="一级精华贴">
<!--{elseif $thread['digest'] ==2}--><img src="images/ding_2.gif" border="0" alt="二级精华贴">
<!--{elseif $thread['digest'] ==3}--><img src="images/ding_3.gif" border="0" alt="三级精华贴">
<!--{/if}--></div>  <!--{/if}--><!--{/if}-->
複製代碼
第三步: 更新缓存即可
images/ding_1.gif
images/ding_3.gif
images/ding_2.gif
换成网页图片
详细情况去看http://yichenghui.joinbbs.net/viewthread.php?tid=25

大哥,网站根目录在哪里啊,找不到啊

TOP

返回列表