Discuz教程网

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

  [复制链接]
authicon dly 发表于 2012-2-21 14:03:57 | 显示全部楼层 |阅读模式

最终
,效果图片如下图

152505uusdssuqxn8u0dw7.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><!--{else}--><a href="$forumurl">版主招聘中</a><!--{/if}-->
复制代码
修改好的discuz.htm直接上传覆盖
游客,如果您要查看本帖隐藏内容请回复



上一篇:横排 去掉最后发表,若有版主,显示版主
下一篇:横排 去掉最后发表,显示版块简介,若有版主,显示版主
authicon Sephiroth 发表于 2012-3-3 09:46:36 | 显示全部楼层
{:soso_e194:}
authicon Es前缘 发表于 2012-3-6 12:29:35 | 显示全部楼层
就是这个啊,我都找了很久了,感谢楼主哈
authicon nbp001 发表于 2012-3-15 09:09:57 | 显示全部楼层
-这个一定要下载
authicon 亘古つ守侯珊 发表于 2012-3-29 09:11:26 | 显示全部楼层
我有想法把这东东做成插件!
authicon 漫步云海 发表于 2012-3-29 11:12:47 | 显示全部楼层
这个看看怎么样
authicon 黑恋-星空 发表于 2012-4-8 13:42:16 | 显示全部楼层
这个,看看,貌似也不错,1314真厉害啊
authicon 誊⑤ 发表于 2012-4-9 21:48:47 | 显示全部楼层
看看怎么样
authicon guoshaolong 发表于 2012-5-24 18:20:14 | 显示全部楼层
我不得不顶了……
authicon miku 发表于 2012-5-24 21:18:22 | 显示全部楼层
看到这帖子真是高兴!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 16:34

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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