Discuz教程网

[代码修改] 横排 去掉最后发表,显示版块简介,若有版主,显示版主

[复制链接]
authicon dly 发表于 2012-2-21 14:07:31 | 显示全部楼层 |阅读模式
最终,效果图片如下图

153356ac4rmwiidgaqwai1.jpg
编辑/template/default/forum/中的discuz.htm (若非默认风格,则同样修改)
查找:
  1. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: $forum[threads]</em>, <em>{lang forum_posts}: $forum[posts]</em></dd><!--{/if}-->
复制代码

替换成:
  1. <!--{if $forum[description]}--><p class="xg2">本版简介:$forum[description]</p><!--{/if}-->
复制代码

查找如下代码 (搜索不到,请缩短搜索,既搜索内容中的两个 <dd>……</dd> 之间 )
  1. <dd>
  2. <!--{if $forum['permission'] == 1}-->
  3. {lang private_forum}
  4. <!--{else}-->
  5. <!--{if $forum['redirect']}-->
  6. <a href="$forumurl" class="xi2">{lang url_link}</a>
  7. <!--{elseif is_array($forum['lastpost'])}-->
  8. <!--{if $cat['forumcolumns'] < 3}-->
  9. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  10. <!--{else}-->
  11. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  12. <!--{/if}-->
  13. <!--{else}-->
  14. {lang never}
  15. <!--{/if}-->
  16. <!--{/if}-->
  17. </dd>
复制代码
替换成:
  1. <!--{if $forum['moderators']}--> <dd>{lang forum_moderators}: $forum[moderators]</dd><!--{else}--><dd>{lang forum_moderators}: <a href="http://bbs.zmd5.com/"target="_blank">招聘中,链接修改为自己的</a></dd><!--{/if}-->
复制代码

修改好的discuz.htm直接覆盖:
游客,如果您要查看本帖隐藏内容请回复



上一篇:横排 去掉最后发表,若有版主,显示版主;若无版主,显示招聘中
下一篇:横排 去掉最后发表,显示版块简介,若有版主,显示版主
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 07:13

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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