Discuz!X2.0 最新回复的调用方法sql语句


Discuz!X2.0 最新回复调用方法sql(x2.0无法实现最新回复)

使用sql语句调用最新回复,因为官方无法实现,官方做的效果是最新帖子,新新回复全部显示,这个语句去除了最新帖子,只调用最新回复。呵呵。

首页的最新回复。

SELECT * FROM pre_forum_thread s,pre_forum_forum st where s.replies>1 and s.tid>1 and s.fid=st.fid and st.name<>1 group by s.subject order by s.lastpost desc

适合2.0版本。

相关内容