Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

Discuz-x模板优化:去掉X广场首页的主题、 帖数、最后回帖

[复制链接]
cr180 发表于 2010-10-18 00:35:42 | 显示全部楼层 |阅读模式
本帖最后由 cr180 于 2010-10-18 19:43 编辑

打开文件:\template\default\forum\discuz.htm


去掉今日帖数:(有两处!)


  1. <!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}-->
复制代码






去掉主题/帖数:

  1. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: $forum[threads]</em>, <em>{lang forum_posts}: $forum[posts]</em></dd><!--{/if}-->
复制代码


  1. <!--{if empty($forum[redirect])}--><span class="xi2">$forum[threads]</span><span class="xg1"> / $forum[posts]</span><!--{/if}-->
复制代码







去掉最后回复:



  1. <!--{elseif is_array($forum['lastpost'])}-->
  2.           <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}-->{lang anonymous}<!--{/if}--></cite>
复制代码


  1. <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}-->{lang anonymous}<!--{/if}--></cite>
  2.            <!--{else}-->
复制代码

评分

3

查看全部评分

413000659 发表于 2010-10-18 02:58:05 | 显示全部楼层


很好的教程

楼主辛苦了
回复

使用道具 举报

ynivfhp 发表于 2010-10-19 11:02:26 | 显示全部楼层
回复

使用道具 举报

转心新 发表于 2010-10-19 11:06:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

swqishi 发表于 2010-10-19 17:52:24 | 显示全部楼层
支持啊 www.wuhansns.com 还不知道该如何把版块简介弄出来。
回复

使用道具 举报

omle 发表于 2010-10-24 18:22:19 | 显示全部楼层
(EM:166:)(EM:166:)(EM:166:)(EM:166:)
回复

使用道具 举报

i7cq 发表于 2010-10-24 21:33:09 | 显示全部楼层
这个不得不顶
回复

使用道具 举报

陌生、、 发表于 2010-10-27 13:29:24 | 显示全部楼层
回复

使用道具 举报

taihuasuan 发表于 2010-10-30 11:08:19 | 显示全部楼层
本帖最后由 taihuasuan 于 2010-10-30 11:10 编辑

要找的就是这个 就是没有介绍怎么修改
回复

使用道具 举报

johnxyg 发表于 2010-11-11 23:50:24 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-19 10:28 , Processed in 0.121678 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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