帝国cms评论显示多少楼的问题

帝国cms评论显示多少楼的问题


方法一:
首先在e/data/template/pljstemp.txt
jquery1282315679506="238" />
里面的 $saytext=addslashes(RepPltextFace(stripSlashes($saytext)));//替换表情上面

添加以下代码

//添加楼层显示
$shownum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewspl where id='$id' and classid='$classid' and checked=0");
$no=$no+1;
$list=$shownum-$no+1;


然后回到6.0后台修改评论JS调用模板 在你要显示的地方 加入
第<?=$r[loushu]?>楼
保存OK了



方法二



修改文件:网站目录下的/e/pl/more/index.php

打开index.php

找到:
$saytext=RepPltextFace($saytext);//替换表情

在上面添加如下内容:

//添加楼层显示
$shownum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewspl where id='$id' and classid='$classid' and checked=0");
$no=$no+1;
$list=$shownum-$no+1;
$saytext=RepPltextFace($saytext);//替换表情//这一行不要添加多了,我只是举例样式!

找到:
输出$saytime(评论时间的地方)加上一句:
第 $list 楼

帝国cms评论显示多少楼的问题
帝国cms评论显示多少楼的问题标题图片

延伸阅读:

    无相关信息
标签:

上一篇:帝国cms 会员邮件验证,提示“参数不正确,验证不通过”

下一篇:帝国CMS后台关键字和Tags自动同步更新的方法

留言与评论(共有 0 条评论)
   
验证码: