pasckr 发表于 2016-5-9 15:33:02

Discuz教程:论坛主题列表页去掉?回复查看和最后发表




    http://www.moke8.com/data/attachment/portal/201511/07/111501yt1rqrrv1yqjpfy6.jpg

把图片红圈里面的去掉,把“作者”现在的位置移到“最后发表”这个位置。
修改方法如下:
1.打开template/default/forum/forumdisplay_list.htm
2.查找43行刪除
{lang author}
复制代码
3.查找44行刪除
{lang replies}
复制代码
4.查找45行
{lang lastpost}
复制代码
替换为
{lang author}
复制代码
5.查找231-239行刪除
<!--{hook/forumdisplay_author $key}-->
  <cite>
  <!--{if $thread['authorid'] && $thread['author']}-->
  <a href="home.php?mod=space&uid=$thread" c="1"{if $groupcolor[$thread]} style="color: $groupcolor[$thread];"{/if}>$thread</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread]<!--{/if}-->
  <!--{else}-->
  $_G
  <!--{/if}-->
  </cite>
  <em><span{if $thread['istoday']} class="xi1"{/if}>$thread</span></em>
复制代码
6.查找233行刪除
<a href="forum.php?mod=viewthread&tid=$thread&extra=$extra" class="xi2">$thread</a><em><!--{if $thread['isgroup'] != 1}-->$thread<!--{else}-->{$groupnames[$thread]}<!--{/if}--></em>
复制代码
查找235-236行
<cite><!--{if $thread['lastposter']}--><a href="{if $thread != -2}home.php?mod=space&username=$thread{else}forum.php?mod=viewthread&tid=$thread&page={echo max(1, $thread);}{/if}" c="1">$thread</a><!--{else}-->$_G<!--{/if}--></cite>
  <em><a href="{if $thread != -2 && !$thread}forum.php?mod=redirect&tid=$thread&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread{if !$thread}&page={echo max(1, $thread);}{/if}{/if}">$thread</a></em>
复制代码
替换为
<!--{hook/forumdisplay_author $key}-->
  <cite>
  <!--{if $thread['authorid'] && $thread['author']}-->
  <a href="home.php?mod=space&uid=$thread" c="1"{if $groupcolor[$thread]} style="color: $groupcolor[$thread];"{/if}>$thread</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread]<!--{/if}-->
  <!--{else}-->
  $_G
  <!--{/if}-->
  </cite>
  <em><span{if $thread['istoday']} class="xi1"{/if}>$thread</span></em>
复制代码
修改好后上传覆盖,后台更新缓存。
页: [1]
查看完整版本: Discuz教程:论坛主题列表页去掉?回复查看和最后发表