帖內显示评分记录超美化 For D5.0/4.1 修改: jixiangsk 安装: 易 演示: http://chcst.mmidc.com/viewthread.php?tid=183&extra=page%3D1
$post['signature'] = $post['usesig'] ? $post['signature'] : '';
//帖子显示评分记录开始 if($post['rate']) { $queryr = $db->query("SELECT * FROM {$tablepre}ratelog WHERE pid='$post[pid]' ORDER BY dateline"); if($db->num_rows($queryr)) { if($post['tid'] == $thread['tid']) { $post['pft'] = array(); while($log = $db->fetch_array($queryr)) { $log['dateline'] = gmdate("$dateformat $timeformat", $log['dateline'] + $timeoffset * 3600); $log['score'] = $log['score'] > 0 ? '+'.$log['score'] : $log['score']; $log['reason'] = dhtmlspecialchars($log['reason']); $post['pft'][] = $log; } } } } //帖子显示评分记录结束
<span style="font-size: {MSGFONTSIZE}">$post[message]</span>
<div style="font-size: {MSGFONTSIZE}">$post[message]</div>
<!--{if $post['pft']}--><br><br><br>{template rate_view_thread}<br><!--{/if}-->
$sqlreason = cutstr($reason, 20
ALTER TABLE `cdb_ratelog` CHANGE `reason` `reason` CHAR( 20 ) NOT NULL
rate_view_thread.rar
2006-10-2 23:06 上传
点击文件名下载附件
583 Bytes, 下载次数: 236
使用道具 举报
原帖由 bvtc 于 2006-10-2 23:48 发表 jixiangsk Newbie UID 447257 精华 0 积分 2 帖子 2 威望 0 阅读权限 10 注册 2006-9-23 大家不要被人耍!!!!!!!LJ
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2025-8-26 15:47 , Processed in 0.116572 second(s), 17 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.