下面是我在论坛找到的(论坛主题列表页去掉 回复查看和最后发表!)
但是我只想去掉回复|查看,保留最后发表~作者位置不移动~应该怎么修改~大侠帮帮忙~
还有首页竖版分类导航后面显示的主题数和总贴数统计我也想去掉~~大侠帮帮忙~
![](http://bbs.verydz.com/forum.php?mod=attachment&aid=MTUzM3xlMmNjMTYxNXwxNDgxMzA2NDEzfDB8MTc1Mg%3D%3D&noupdate=yes) 把图片红圈里面的去掉,把“作者”现在的位置移到“最后发表”这个位置。
修改方法如下:
1.打开template/default/forum/forumdisplay_list.htm
2.查找43行刪除
[color=rgb(51, 102, 153) !important]复制代码
3.查找44行刪除
[color=rgb(51, 102, 153) !important]复制代码
4.查找45行
[color=rgb(51, 102, 153) !important]复制代码
替换为
[color=rgb(51, 102, 153) !important]复制代码
5.查找231-239行刪除
- <!--{hook/forumdisplay_author $key}-->
- <cite>
- <!--{if $thread['authorid'] && $thread['author']}-->
- <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}-->
- <!--{else}-->
- $_G[setting][anonymoustext]
- <!--{/if}-->
- </cite>
- <em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
[color=rgb(51, 102, 153) !important]复制代码
6.查找233行刪除
- <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>
[color=rgb(51, 102, 153) !important]复制代码
查找235-236行
- <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>
- <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>
[color=rgb(51, 102, 153) !important]复制代码
替换为
- <!--{hook/forumdisplay_author $key}-->
- <cite>
- <!--{if $thread['authorid'] && $thread['author']}-->
- <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}-->
- <!--{else}-->
- $_G[setting][anonymoustext]
- <!--{/if}-->
- </cite>
- <em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
[color=rgb(51, 102, 153) !important]复制代码
修改好后上传覆盖,后台更新缓存。 |
|
|
|
|