Discuz wapgogogo 1.0 修改“检索最新回复问题”的解决方案
【摘要】
找到文件:wap/include/home.inc.php
第256行
修改sql语句
原sql代码为:
SELECT `tid`, `subject` FROM {$tablepre}threads where `displayorder`>=0 order by `lastpost` desc limit 0,$no ...
找到文件:wap/include/home.inc.php
第256行
修改sql语句
原sql代码为:
SELECT `tid`, `subject` FROM {$tablepre}threads where `displayorder`>=0 order by `lastpost` desc limit 0,$no
修改后的sql代码为:
SELECT t.tid, t.subject FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.lastpost DESC LIMIT 0, $no
------------------
LSF(科学之爱永恒)论坛
http://www.lsf.cc
用想象力来阅读!!!
文章来源: blog.csdn.net,作者:fengda2870,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/fengda2870/article/details/5810550
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)