免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

标题: [修改模板] 横排下提示暂无版主,申请版主 [打印本页]

作者: oocn    时间: 2017-6-13 11:52     标题: 横排下提示暂无版主,申请版主

111.jpg 登陆后可看大图

找到:discuz.htm
  1. 搜索下面的代码 ,大概在86行到101行之间

  2. <th width="$cat[forumcolwidth]"{$forum[folder]}>
  3. <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  4. <!--{if !$forum[redirect]}-->
  5. <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
  6. <!--{if $forum['permission'] == 1}-->
  7. <p>{lang private_forum}
  8. <!--{else}-->
  9. <p>{lang forum_lastpost}:
  10. <!--{if is_array($forum['lastpost'])}-->
  11. <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if} ">$forum[lastpost][dateline]</a>
  12. <!--{else}-->
  13. {lang never}
  14. <!--{/if}-->
  15. </p>
  16. <!--{/if}-->
  17. <!--{else}-->
  18. <p>{lang url_link}</p>
  19. <!--{/if}-->
  20. </th>
复制代码
  1. 替换为:

  2. <th width="$cat[forumcolwidth]"{$forum[folder]}><a href="forumdisplay.php?fid=$forum[fid]">{$forum[icon]}</a>
  3. <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  4. <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
  5. <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}-->
  6. </th>
复制代码
增加显示版主,没有版主时候显示点击申请

上面刚才替换的代码</th>前面加入下面代码:

本帖隐藏的内容需要回复才可以浏览


把里面的链接地址换成你的申请地址即可。

图片附件: 111.jpg (2017-6-13 11:46, 25.25 KB) / 下载次数 958
http://oocn.258club.com/attachment.php?aid=4843&k=98320d760d4bf2f8d245e68cd8e2f47d&t=1765779663&sid=K3tmz2


作者: 真新人    时间: 2017-10-2 20:25

感謝分享
作者: 看看代码    时间: 2017-10-5 08:31

他[她]看完这篇文章说:

作者: 线条    时间: 2017-10-5 10:03

他[她]看完这篇文章说:

作者: 东窗凝月    时间: 2020-5-7 09:42

他[她]看完这篇文章说:





欢迎光临 OOCN分享圈 (http://oocn.258club.com/) Powered by Discuz! 7.2