织梦会员中心文章列表增加分页

打开include/arc.memberlistview.class.php文件

找到

$countQuery = preg_replace(“/select[ \r\n\t](.*)[ \r\n\t]from/i”,”Select count(*) as dd From”,$this->sourceSql);

改成

$countQuery = preg_replace(“#SELECT[ \r\n\t](.*)[ \r\n\t]FROM#is”, ‘SELECT COUNT(*) AS dd FROM’, $this->sourceSql);

$countQuery = preg_replace(“#ORDER[ \r\n\t]{1,}BY(.*)#is”, ”, $countQuery);

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wsfzxz.html