百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>Discuz教程> Discuz教程:论坛主题列表页去掉 回复查看和最后发表
分享文章到:

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

发布时间:12/03 来源: 浏览: 关键词:

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

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

相关文章

共有11人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板