打开 viewthread_node 模板,找到:
[CSS] 纯文本查看 复制代码 <p><em><a href="faq.php?action=grouppermission&searchgroupid={$post[groupid]}" target="_blank">{$post[authortitle]}</a></em></p>
在上面添加:
[CSS] 纯文本查看 复制代码 <!-------------签到心情---------------->
{eval $myqdxq = $db->fetch_array($db->query("SELECT * FROM cdb_dps_sign WHERE uid=".$post[authorid]));}
{eval $qdxqttime=date("Y-m-d h:i:sa", $myqdxq[time]);}
{eval $qdxqtime=dgmdate("$dateformat $timeformat", $myqdxq[time] + $timeoffset * 3600);}
<!--{if (date("Y-m-d") == date("Y-m-d", $myqdxq[time]))}-->
<style>
.qdsmile {padding: 0 15px 10px 15px;}
.qdsmile li {list-style: none;padding: 5px .4em;background: #F7FAFF;border: 2px dashed #D1D8D8;}
caption, th {text-align: left;font-weight: 400;}
.qdsmile li img {margin-bottom: 5px;}
</style>
<!--{if $myqdxq[qdxq]}-->
<div class="qdsmile">
<li><center>TA的每日心情</center>
<table><tbody><tr><th><img src="plugins/dps_sign/img/$myqdxq[qdxq].gif"><th>
<font size="5"><!--{if $myqdxq[qdxq] == kx}-->开心<!--{elseif $myqdxq[qdxq] == wl}-->无聊<!--{elseif $myqdxq[qdxq] == ng}-->难过<!--{elseif $myqdxq[qdxq] == ym}-->郁闷<!--{elseif $myqdxq[qdxq] == nu}-->怒<!--{elseif $myqdxq[qdxq] == ch}-->擦汗<!--{elseif $myqdxq[qdxq] == fd}-->奋斗<!--{elseif $myqdxq[qdxq] == yl}-->慵懒<!--{elseif $myqdxq[qdxq] == shuai}-->衰<!--{/if}--></font>
<br><span title=$qdxqttime>$qdxqtime</span></tr></tbody></table></li>
</div>
<!--{/if}-->
<!--{/if}-->
<!-------------签到心情end---------------->
|