Discuz教程网

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

[复制链接]
authicon dly 发表于 2012-2-21 14:01:41 | 显示全部楼层 |阅读模式
最终,效果图片如下图
151820berp1br1y1fj11tz.jpg
编辑/template/default/forum/中的discuz.htm (若非默认风格,则同样修改)

查找如下代码 (搜索不到,请缩短搜索,既搜索内容中的两个 ……之间 )

  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><!--{/if}-->
复制代码
修改后的discuz.htm直接上传覆盖:

游客,如果您要查看本帖隐藏内容请回复



上一篇:横排 最后发表 显出标题和时间 及版块简介
下一篇:横排 去掉最后发表,若有版主,显示版主;若无版主,显示招聘中
authicon 明仔大叔 发表于 2012-6-25 16:40:23 | 显示全部楼层
看到这帖子真是高兴!
authicon ‖龙腾ˉ王者 发表于 2012-7-13 00:02:48 | 显示全部楼层
谢谢楼主分享咯!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-3 03:36

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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