修改方法:
1.打开plus/feedback_ajax.php文件
2.搜索:$allpage = ceil($totalcount / $pagesize); 回车 在下面加入代码:
1
以下为引用的内容:
2
if
($allpage < 1)
3
{
4
echo
'<center><span style="height:30px; line-height:30px;color:red;">暂无评论(当然文字可以自己修改啦~O(∩_∩)O~)</span></center>'
;
5
return
;
6
}
解释:判断如果总页数小于1.(有评论都是≥1的)则提示“暂无评论”。怕有人不会修改,再附上修改好的代码示例,修改好的代码如下(红色为后加上去的):01
以下为引用的内容:
02
$allpage = ceil($totalcount / $pagesize);
03
if
($allpage < 1)
04
{
05
echo
'<center><span style="height:30px; line-height:30px;color:red;">英雄老矣,尚能言否?</span></center>'
;
06
return
;
07
}
08
else
if
($allpage < 2)
09
{
10
echo
''
;
11
return
;
12
}