程序员人生 网站导航

PHPCMS 2008 RSS订阅不更新的解决方法

栏目:DedeCMS时间:2014-05-10 10:31:46

近日,有站长咨询关于PHPCMS 2008 RSS订阅不更新的问题,经过查发现了解决方法,如下,共修改2个位置:

1.rss.php文件查找

$sql = "SELECT `title`, `description`, `url`, `inputtime`, `thumb`, `keywords` FROM ".DB_PRE."content WHERE `status` = '99' ORDER BY `catid` DESC LIMIT 0 , 20";

改成

$sql = "SELECT `title`, `description`, `url`, `inputtime`, `thumb`, `keywords` FROM ".DB_PRE."content WHERE `status` = '99' ORDER BY `contentid` DESC LIMIT 0 , 20";

2.RSS.php继续查找

$sql .= " ORDER BY `catid` DESC LIMIT 0 , 20";

改成

$sql .= " ORDER BY `contentid` DESC LIMIT 0 , 20";

------分隔线----------------------------
------分隔线----------------------------

最新技术推荐