电脑计算机论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2312|回复: 1

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

[复制链接]
admin 发表于 2013-6-23 11:42:50 | 显示全部楼层 |阅读模式
打开template/default/forum/discuz.htm
1.去掉最后发表
直接删除以下代码(<dd>...</dd>之间)
  • <!--{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}-->
  •                                                                           <!--{/if}-->

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

复制代码
替换为:
  • <!--{if $forum[description]}-->$forum[description]<!--{/if}-->

复制代码
修改前记得备份!!
稳信服务器 发表于 2013-7-2 16:59:15 | 显示全部楼层
这个看起来好复杂呀!不懂。。。。
回复

使用道具 举报

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

本版积分规则


QQ|手机版|小黑屋|电脑计算机论坛 ( 京ICP备2022023538号-1 )

GMT+8, 2024-5-7 19:54 , Processed in 0.070462 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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