<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DEDECMS5.7会员空间文章分页总是显示"共 0 页/0条记录"

时间:2020-12-09

今天发现站长基地会员中心里,查看用户全部文章时,列表分页始终显示“共 0 页/0条记录”,分页无法正常显示,于是从网上找了一下,终于解决,特将此方法分享给各位:
修正办法“
打开include/arc.memberlistview.class.php
查找
$countQuery = preg_replace("/select[ rnt](.*)[ rnt]from/i","Select count(*) as dd From",$this->sourceSql);
修改为
$countQuery = preg_replace("#SELECT[ rnt](.*)[ rnt]FROM#is", 'SELECT COUNT(*) AS dd FROM', $this->sourceSql);
$countQuery = preg_replace("#ORDER[ rnt]{1,}BY(.*)#is", '', $countQuery);

这样,分页就可以正常显示了,希望能对你有所帮助。
    0
    首页
    案例
    关于
    联系