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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] [求助] 请教,板块2排横排,如果显示为 版块名、板块介绍、最新贴?

[复制链接]
houxucun 发表于 2010-3-19 20:20:03 | 显示全部楼层 |阅读模式
默认是板块名、发帖数和最后发表日期
508zcom 发表于 2010-3-19 20:31:22 | 显示全部楼层
版块美化,搜索一下看看
回复

使用道具 举报

deviljing 发表于 2010-3-20 00:16:38 | 显示全部楼层
打开discuz.htm查找$cat[forumcolwidth]找到以下这段:
  1. <th width="$cat[forumcolwidth]"{$forum[folder]}>
  2.                                                 <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if} style="{if $forum[extra][namecolor]}color: {$forum[extra][namecolor]};{/if}">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  3.                                                 <!--{if !$forum[redirect]}-->
  4.                                                         <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
  5.                                                         <!--{if $forum['permission'] == 1}-->
  6.                                                                 <p>{lang private_forum}
  7.                                                         <!--{else}-->
  8.                                                                 <p>{lang forum_lastpost}:
  9.                                                                         <!--{if is_array($forum['lastpost'])}-->
  10.                                                                                 <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
  11.                                                                         <!--{else}-->
  12.                                                                                 {lang never}
  13.                                                                         <!--{/if}-->
  14.                                                                 </p>
  15.                                                         <!--{/if}-->
  16.                                                 <!--{else}-->
  17.                                                         <p>{lang url_link}</p>
  18.                                                 <!--{/if}-->
  19.                                         </th>
复制代码
整段替换成:
  1. <th width="$cat[forumcolwidth]"{$forum[folder]}>
  2.                                                 <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if} style="{if $forum[extra][namecolor]}color: {$forum[extra][namecolor]};{/if}">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts] {lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</strong>)</em><!--{/if}--></h2>
  3.                                                 <!--{if !$forum[redirect]}-->
  4.                         <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
  5.                                                         <!--{if $forum['permission'] == 1}-->
  6.                                                                 <p>{lang private_forum}
  7.                                                         <!--{else}-->
  8.                                 <p>&raquo; <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 30)}</a></p>
  9.                                                                 <p>{lang forum_lastpost}:
  10.                                                                         <!--{if is_array($forum['lastpost'])}-->
  11.                                                                                 <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
  12.                                                                         <!--{else}-->
  13.                                                                                 {lang never}
  14.                                                                         <!--{/if}-->
  15.                                                                 </p>
  16.                                                         <!--{/if}-->
  17.                                                 <!--{else}-->
  18.                                                         <p>{lang url_link}</p>
  19.                                                 <!--{/if}-->
  20.                                         </th>
复制代码
没测试,试一下,不行给我留言
回复

使用道具 举报

 楼主| houxucun 发表于 2010-3-20 02:05:11 | 显示全部楼层
回复 3# deviljing


   


不是太美观。呵呵
回复

使用道具 举报

deviljing 发表于 2010-3-21 21:31:05 | 显示全部楼层
回复  deviljing


   


不是太美观。呵呵
houxucun 发表于 2010-3-20 02:05


细节的自已调整一下,我是随便写的,没测试过,
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-7-6 09:01 , Processed in 0.108825 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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