说明一下:
发帖量等于0时,没有图标
发帖量小于20时,显示向下图标
发帖量大于20时,显示向上图标
这个值大家可以根据自己论坛活跃度进行修改。
修改方法:
打开 forumdisplay 模版,找到:
[CSS] 纯文本查看 复制代码 <p class="forumstats">[ <strong>$forum[threads]</strong> {lang thread} / {echo $forum[posts]-$forum[threads]} {lang reply} ]</p>
修改为:
[CSS] 纯文本查看 复制代码 <p class="forumstats">今日: <strong>$forum[todayposts]</strong><!--{if ($forum[todayposts]==0)}--><!--{elseif ($forum[todayposts]<20)}--><b class="ico_fall"> </b><!--{elseif ($forum[todayposts]<99999)}--><b class="ico_increase"> </b><!--{/if}--><span class="pipe">|</span> {lang thread}: <strong>$forum[threads]</strong> <span class="pipe">|</span>{lang reply}: <strong>{echo $forum[posts]-$forum[threads]}</strong></p>
然后在 css_common 模版最下边加:
[CSS] 纯文本查看 复制代码 /* ~~~ 板块发帖量趋势 ~~~~~~~~~ */
.forumaction {float: right!important;}
.ico_fall{display: inline-block;width: 16px;height: 16px;margin: 0 5px;background: url(https://boonkiong.com/b/p/ico_fall.png) no-repeat left center;vertical-align: middle;text-indent: -999em;}
.ico_increase {display: inline-block;width: 16px;height: 16px;margin: 0 5px;background: url(https://boonkiong.com/b/p/ico_increase.png) no-repeat left center;vertical-align: middle;text-indent: -999em;}
/* ~~~ 板块发帖量趋势end ~~~~~~~~~ */
|