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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 3.0横排版块简介+新帖总贴数+版主申请的修改

[复制链接]
龙猪OnLine 发表于 2013-9-11 22:41:44 | 显示全部楼层 |阅读模式
本帖最后由 龙猪OnLine 于 2013-9-11 22:43 编辑

首先找到“template/default/forum/discuz.htm”文件

找到以下代码

  1. <P>  <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  2.          <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
  3.          <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
  4.          <dd>
  5.          <!--{if $forum['permission'] == 1}-->
  6.           {lang private_forum}
  7.          <!--{else}-->
  8.           <!--{if $forum['redirect']}-->
  9.            <a href="$forumurl" class="xi2">{lang url_link}</a>
  10.           <!--{elseif is_array($forum['lastpost'])}-->
  11.            <!--{if $cat['forumcolumns'] < 3}-->
  12.             <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}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  13.            <!--{else}-->
  14.             <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  15.            <!--{/if}-->
  16.           <!--{else}-->
  17.            {lang never}
  18.           <!--{/if}-->
  19.          <!--{/if}-->
  20.          </dd>
  21.          <!--{hook/index_forum_extra $forum[fid]}--></P>
复制代码
直接替换成以下代码
  1. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  2.         <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" > (新贴数:$forum[todayposts]  主题数:$forum[threads]  总贴数:$forum[posts])</em><!--{/if}--></dt>
  3.          <!--{if empty($forum[redirect])}--><dd><em>$forum[description]</em></dd><!--{/if}-->
  4.          <!--{if $forum['moderators']}--><dd><em>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></dd><!--{else}--><dd><a  target="_blank">版主空缺   立即申请</a></dd><!--{/if}-->
  5.          <dd>
  6.                                     <dd><!--{if is_array($forum['lastpost'])}--><a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><img src="{IMGDIR}/new.gif" />  {echo cutstr($forum[lastpost][subject], 30)}</a> $forum[lastpost][dateline]
  7.                                                                      <!--{else}-->
  8.                                                                              {lang never}
  9.                                                                                 <!--{/if}-->
  10.                                                                     
  11.                                                                         </dd>
  12.          <!--{hook/index_forum_extra $forum[fid]}-->
复制代码


效果图:



喜欢的朋友帮顶起  高人请嘴下留情
龙州社区 http://www.532499.com  寻求友链









本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 龙猪OnLine 发表于 2013-9-11 22:45:13 | 显示全部楼层
演示站点:龙州社区 http://www.532499.com
回复

使用道具 举报

1314学习网 发表于 2013-9-12 13:12:38 | 显示全部楼层
前排支持下分享。。。
回复

使用道具 举报

sun21 发表于 2013-9-16 10:28:40 | 显示全部楼层
不错!支持下!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-21 13:36 , Processed in 0.106910 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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