forumdisplay_list.htm文件查找:
<a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else}{/if} class="xst" >$thread[subject]</a>
復制代碼
后面加上
<p><!--{eval require_once(DISCUZ_ROOT."./source/function/function_post.php");}-->
<!--{echo messagecutstr(DB::result_first('SELECT `message` FROM '.DB::table('forum_post').' WHERE `tid` ='.$thread[tid].' AND `first` =1'),120);}--></p>
復制代碼
其中120為內容摘要的字數(shù),可以自行控制。完成后更新緩存即可。