主页 > 网站建设 > 建站知识 > DEDECMS网站ajax评论盖楼添加楼层号

DEDECMS网站ajax评论盖楼添加楼层号

POST TIME:2017-12-13 22:52

打开:plus/feedback_ajax.php

找到第263 -292行:修改为

$i = '0';
while($fields = $dsql->GetArray('fb'))
{
$i++;
if($fields['userid']!='') $spaceurl = $GLOBALS['cfg_memberurl'].'/index.php?uid='.$fields['userid'];
else $spaceurl = '#';
if($fields['username']=='匿名') $spaceurl = '#';
$fields['bgimg'] = 'cmt-neu.gif';
$fields['ftypetitle'] = '该用户表示中立';
if($fields['ftype']=='bad')
{
$fields['bgimg'] = 'cmt-bad.gif';
$fields['ftypetitle'] = '该用户表示差评';
}
else if($fields['ftype']=='good')
{
$fields['bgimg'] = 'cmt-good.gif';
$fields['ftypetitle'] = '该用户表示好评';
}
if(empty($fields['mface']))
{
if($fields['sex']=="女") $fields['mface']=$cfg_cmspath."/member/templets/images/dfgirl.png";
else $fields['mface']=$cfg_cmspath."/member/templets/images/dfboy.png";
}
$fields['face'] = empty($fields['face']) ? 6 : $fields['face'];
$fields['msg'] = str_replace('<', '&lt;', $fields['msg']);
$fields['msg'] = str_replace('>', '&gt;', $fields['msg']);
$fields['msg'] = Quote_replace($fields['msg']);
extract($fields, EXTR_OVERWRITE);
?>

楼层位置处:

#<?php
$nowlouceng = '';
if($page==1){
$nowlouceng = $totalcount -$i +1;
}else{
$nowlouceng = $totalcount - $i -$pagesize*($page-1) +1;
}; echo $nowlouceng; ?> 楼



收缩
  • 微信客服
  • 微信二维码
  • 电话咨询

  • 400-1100-266