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

时间:2014-06-27

打开: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; ?> 楼



 

上一条:让DedeCMS的搜索页面留言板页面使用arclist标签的解决方法 下一条:dedecms V5.7二级域名(多站点)绑定详解

相关文章

最新文章