discuz

推荐列表 站点导航

当前位置:首页 > 建站教程 > discuz >

discuz帖子列表实现贴子摘要调用方法

来源:网络整理  作者:网络  发布时间:2020-12-11 11:31
forumdisplay_list.htm文件查找: a href=http://www.dede58.com/discuz/forum.php?mod=viewthreadtid=$thread[tid]{if $_G[gp_archiveid]}archiveid={$_G[g...

  forumdisplay_list.htm文件查找:   <a href=http://www.dede58.com/discuz/"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)  为内容摘要的字数,可以自行控制。   完成后更新缓存即可

相关热词: 调用 discuz 方法

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/discuz/2538.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

discuz帖子列表实现贴子摘要调用方法

2020-12-11 编辑:网络

  forumdisplay_list.htm文件查找:   <a href=http://www.dede58.com/discuz/"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)  为内容摘要的字数,可以自行控制。   完成后更新缓存即可

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/discuz/2538.shtml

相关文章

风云图片

推荐阅读

返回discuz频道首页