Discuz教程网

Discuz X2.5去掉最后发表,删除主题 贴数,显示版块简介

[复制链接]
authicon dly 发表于 2012-10-13 23:58:45 | 显示全部楼层 |阅读模式
打开template/default/forum/discuz.htm
1.去掉最后发表
直接删除以下代码(<dd>...</dd>之间)

  1. <!--{if $forum['permission'] == 1}-->
  2.                                                                                   {lang private_forum}
  3.                                                                           <!--{else}-->
  4.                                                                                   <!--{if $forum['redirect']}-->
  5.                                                                                           {lang url_link}
  6.                                                                                   <!--{elseif is_array($forum['lastpost'])}-->
  7.                                                                                           <!--{if $cat['forumcolumns'] < 3}-->
  8.                                                                                                   <!--{echo cutstr($forum[lastpost][subject], 30)}--> $forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
  9.                                                                                           <!--{else}-->
  10.                                                                                                   {lang forum_lastpost}: $forum[lastpost][dateline]
  11.                                                                                           <!--{/if}-->
  12.                                                                                   <!--{else}-->
  13.                                                                                           {lang never}
  14.                                                                                   <!--{/if}-->
  15.                                                                           <!--{/if}-->
复制代码

2.删除主题贴数替换为版块简介
搜索
  1. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: $forum[threads]</em>, <em>{lang forum_posts}: $forum[posts]</em></dd><!--{/if}-->
复制代码

替换为:
  1. <!--{if $forum[description]}-->$forum[description]<!--{/if}-->
复制代码
游客,如果您要查看本帖隐藏内容请回复
修改前记得备份!!

作者:。See_you_tomor



上一篇:用PHP获取网页的Meta信息
下一篇:1314学习网签到记录贴-2012年10月14日
authicon 迷失 发表于 2013-1-26 00:47:57 | 显示全部楼层
感恩无私的分享与奉献 :)
authicon 游戏吧丶小磊 发表于 2013-1-28 19:45:08 | 显示全部楼层
激动人心,无法言表!
authicon 物联网络论坛 发表于 2013-3-3 00:35:38 | 显示全部楼层
无回帖,不论坛,这才是人道。我无语了……
authicon 逝魂 发表于 2013-7-7 14:57:11 | 显示全部楼层
激动人心,无法言表!
authicon 夜丶美德淒涼 发表于 2013-8-19 21:58:43 | 显示全部楼层
淡定,淡定,淡定……
authicon 夜丶美德淒涼 发表于 2013-8-25 10:19:30 | 显示全部楼层
老大  x3的 去掉最后发表   没有这些代码<!--{if $forum['permission'] == 1}-->
                                                                                  {lang private_forum}
                                                                          <!--{else}-->
                                                                                  <!--{if $forum['redirect']}-->
                                                                                          {lang url_link}
                                                                                  <!--{elseif is_array($forum['lastpost'])}-->
                                                                                          <!--{if $cat['forumcolumns'] < 3}-->
                                                                                                  <!--{echo cutstr($forum[lastpost][subject], 30)}--> $forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
                                                                                          <!--{else}-->
                                                                                                  {lang forum_lastpost}: $forum[lastpost][dateline]
                                                                                          <!--{/if}-->
                                                                                  <!--{else}-->
                                                                                          {lang never}
                                                                                  <!--{/if}-->


该怎样去掉啊
authicon QT语音 发表于 2013-8-25 13:26:03 | 显示全部楼层
楼主加油,我们都看好你哦。
authicon lishang 发表于 2014-6-30 15:42:51 | 显示全部楼层
嗯嗯,很不错哦
authicon ohaty 发表于 2014-7-27 00:44:13 | 显示全部楼层
修改前记得备份
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 12:20

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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