FWQ
dedecms怎么实现楼层数
怎么实现楼层数? DEDE评论效果: 推荐:《》 修改后的效果: 修改步骤 一、5.5版本(5.6版本请往下看) 1、修改/plus/feedback_ajax.php文件的第131行(如果你没改过) 下面是修改之前的代码: $qmsg = '{quote}{title}'.$row['username'].' 的原帖:{/title}{content}'.$row['msg'].'{/content}{/quote}'; 登录后复制 下面是修改后的代码: 代码如下: //$qmsg = '{quote}{title}'.$row['username'].' 的原帖:{/title}{content}'.$row['msg'].'{/content}{/quote}'; $floors = substr_count($row['msg'], '{title}');//查找评论中楼层数 if ($floors > 0) { $floors += 1; $floor_html = '{floor}' . $floors . '{/floor}'; } else { $floor_html = '{floor}1{/floor}'; } $quotetitle = '{title}引用' . $row['username'] . '的评论'. $floor_html .'{/title}'; $oldquote = '';//以前的引用 $quotemsg = $row['msg']; if ($floors > 0) { $oldquoteend = strrpos($quotemsg, '{/quote}') + 8; $oldquote = substr($quotemsg, 0, $oldquoteend); $quotemsg = substr($quotemsg, $oldquoteend);…