图片:111.jpg
之前版本的盖楼层结果论坛中已经有要领了,本次先容的是5.7版本的修改步伐,自我感受较量精简,
修改步伐:
打开 /plus/feedback_ajax.php
找到
//生涯评述内容
if(!empty($fid))
{
$row = $dsql->GetOne("SELECT username,msg from `dede_feedback` WHERE id ='$fid' ");
$qmsg = '{quote}{content}'.$row['msg'].'{/content}{title}'.$row['username'].' 的原帖:{/title}{/quote}';
$msg = addslashes($qmsg).$msg;
}
修改为
//生涯评述内容
if(!empty($fid))
{
$row = $dsql->GetOne("SELECT username,msg from `dede_feedback` WHERE id ='$fid' ");
$oldmsg = $row['msg'];
$floors = substr_count($oldmsg, 'content');//查找评述中引用次数
if ($floors > 1 ){
$qmsg = '{quote}{content}'.$row['msg'].'{/content}{/quote}'.$username.'说:'.$msg.'';
}
else {
$qmsg = '{quote}{title}'.$row['username'].' 说:{/title}{content}'.$row['msg'].'{/content}{/quote}'.$username.'说:'.$msg.'';
}
$msg = addslashes($qmsg);
}