帝国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评论显示多少楼的问题标题图片