Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[修改] 主题帖子列表页加入"简介"

[复制链接]
hi.friend 发表于 2012-9-15 05:39:49 | 显示全部楼层 |阅读模式
修改文件︰templates/default/forum/forumdisplay.htm

尋找︰
  1.     <!--{if (!empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])) || $moderatedby || ($_G[forum][description]) || ($_G['page'] == 1 && $_G['forum']['rules'])}-->
  2.                                         <div class="bm_c cl pbn">
  3.                                                 <!--{if !empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])}-->
  4.                                                         <div class="pbn">{lang forum_domain}: <a href="http://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}" id="group_link">http://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}</a></div>
  5.                                                 <!--{/if}-->
  6.                                                 <!--{if $moderatedby}--><div>{lang forum_modedby}: <span class="xi2">$moderatedby</span></div><!--{/if}-->
  7.                                                 <!--{if $_G[forum][description]}--><div class="ptn xg2">($_G[forum][description])</div><!--{/if}-->
  8.                                                 <!--{if $_G['page'] == 1 && $_G['forum']['rules']}-->
  9.                                                         <div id="forum_rules_{$_G[fid]}" style="$collapse['forum_rules'];">
  10.                                                                 <div class="ptn xg2">$_G['forum'][rules]</div>
  11.                                                         </div>
  12.                                                 <!--{/if}-->
  13.                                         </div>
  14.                                 <!--{/if}-->
复制代码
修改為︰
  1.                                 <!--{if (!empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])) || $moderatedby || ($_G[forum][description]) || ($_G['page'] == 1 && $_G['forum']['rules'])}-->
  2.                                         <div class="bm_c cl pbn">
  3.                                                 <!--{if !empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])}-->
  4.                                                         <div class="pbn">{lang forum_domain}: <a href="http://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}" id="group_link">http://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}</a></div>
  5.                                                 <!--{/if}-->
  6.                                                 <!--{if $moderatedby}--><div>{lang forum_modedby}: <span class="xi2">$moderatedby</span></div><!--{/if}-->
  7.                                                 <!--{if $_G[forum][description]}--><div>簡介: <span class="xg2">$_G[forum][description]</span></div><!--{/if}-->
  8.                                                 <!--{if $_G['page'] == 1 && $_G['forum']['rules']}-->
  9.                                                         <div id="forum_rules_{$_G[fid]}" style="$collapse['forum_rules'];">
  10.                                                                 <div class="ptn xg2">$_G['forum'][rules]</div>
  11.                                                         </div>
  12.                                                 <!--{/if}-->
  13.                                         </div>
  14.                                 <!--{/if}-->
复制代码
後台"更新緩存"
sdf34.png

评分

1

查看全部评分

回复

使用道具 举报

深圳门户 发表于 2012-9-15 08:12:25 | 显示全部楼层
不错  我喜欢

http://www.chaxb.com 深圳论坛

免费DZ、PW、PHPCMS、wordpress风格和免费插件,问题求助、交流,请到http://www.winqb.com

美女、性感、想看mm请到http://www.winqb.net
回复

使用道具 举报

a475305268 发表于 2012-9-15 09:43:32 | 显示全部楼层
不错,支持
回复

使用道具 举报

站是不是站 发表于 2012-9-15 13:40:37 | 显示全部楼层
版规吗,,,
回复

使用道具 举报

蔡剑丰 发表于 2014-1-1 18:54:03 | 显示全部楼层
我其它的想调用简介是那句代码?
  1. <!--{if $_G[forum][description]}--><div>簡介: <span class="xg2">$_G[forum][description]</span></div><!--{/if}-->
复制代码


是这个吗?我是想把外链地址替换成简介的
回复

使用道具 举报

月白花凋 发表于 2014-4-10 19:54:40 | 显示全部楼层
太棒了 。原来官方是这样做到的。虽然看不懂 但还是收藏了。谢谢楼主无私分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-26 05:14 , Processed in 0.107205 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表