插件作者的标准出来了!Manyou诚邀开发者加盟!
“互联网平台开发者”特刊 有奖征集开发者
立即免费下载 Discuz!6.1.0正式版
Discuz! 6.1.0 使用说明
Discuz!NT2.5正式版发布
开放源码下载
UCenter Home 1.2 正式版发布
官方站 | 帮助文档
基于ECShop的网店托管-卖否
PHP就业培训直通车 | LAMP培训大连
Discuz!收费服务内容及价格
“感谢有你同行”手握手2008年数万元重奖志愿者
Discuz!/ECShop 专用官方虚拟主机
亿声传媒(Insenz)中秋祝福发送中
Comsenz 招聘信息
网店系统ECShop v2.6.0正式版火热发布
基于Discuz!的免费论坛空间5D6D
参与有奖社区调查 赢取台湾5日游
 36 1234
发新话题
打印

[美化] 首页美化+横排[ForDZ6.1.0]有更新

首页美化+横排[ForDZ6.1.0]有更新


发一个最新的修改

引用:

安装前请备份相关文件......由于安装不成功造成的一切事故本人概不负责 第一次发这个....希望高手多多指教哦.

引用:

先看演示:

地址:不写了......不想被以为是AD

引用:

说明:
1.横排时必须将其横排数设置为3,超过3错位的不要怪我额.
2.修改不尽完美,左边显示的"版块"2字太靠左,可能需要调整CSS.
3.版块名称;版块描叙;版主列表;子版块显示,不能超过3行,否则错位(此问题有办法可以解决,这个留后说明)
4.因为修改删除了有无新帖图标,只显示版块LOGO,所以必须要设置版块LOGO图

修改步骤:
1.去掉有无新帖图标:查找\templates\default下的css_common.htm文件
复制内容到剪贴板
代码:
.forumlist th { padding-left: 55px !important; }
.forumlist tbody th { background-image: url({IMGDIR}/forum.gif); background-repeat: no-repeat; background-position: 13px 50%; }
.forumlist tbody th.new { background-image: url({IMGDIR}/forum_new.gif); }

找到并删除
2.继续查找:
复制内容到剪贴板
代码:
.forumlist td.lastpost { width: 260px; }

替换为:
复制内容到剪贴板
代码:
.forumlist td.lastpost { width: 320px; }

3.查找\templates\default下的discuz.htm文件
复制内容到剪贴板
代码:
<th>{lang forum_name}</th>
      <td class="nums">{lang forum_threads}</td>
      <td class="nums">{lang forum_posts}</td>
      <td class="lastpost">{lang forum_lastpost}</td>
     </tr>
    </thead>
    <!--{loop $cat[forums] $forumid}-->
     <!--{eval $forum=$forumlist[$forumid];}-->
     <tbody id="forum$forum[fid]">
      <tr>
       <th$forum[folder]>
        $forum[icon]
        <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
        <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
        <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
        <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu(this.id)">{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
       </th>
       <td class="nums">{if $forum['redirect']}--{else}$forum[threads]{/if}</td>
       <td class="nums">{if $forum['redirect']}--{else}$forum[posts]{/if}</td>
       <td class="lastpost">
       <!--{if $forum['permission'] == 1}-->
        {lang private_forum}
       <!--{else}-->
        <!--{if $forum['redirect']}-->
         --
        <!--{elseif is_array($forum['lastpost'])}-->
         <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 40)}</a>
         <cite>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
        <!--{else}-->
         {lang never}
        <!--{/if}-->
       <!--{/if}-->
       </td>
      </tr>
     </tbody>
    <!--{/loop}-->
   <!--{else}-->
     <tr>
     <!--{loop $cat['forums'] $forumid}-->
      <!--{eval $forum=$forumlist[$forumid];}-->
      <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
       </tr></tbody>
       <!--{if $forum['orderid'] < $cat['forumscount']}-->
        <tbody><tr>
       <!--{/if}-->
      <!--{/if}-->
      <th width="$cat[forumcolwidth]"{$forum[folder]}>
       <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
       <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
       <!--{if $forum['permission'] == 1}-->
        <p>{lang private_forum}
       <!--{else}-->
        <p>{lang forum_lastpost}:
         <!--{if is_array($forum['lastpost'])}-->
          <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a>
          {lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
         <!--{else}-->
          {lang never}
         <!--{/if}-->
        </p>
       <!--{/if}-->
      </th>
     <!--{/loop}-->
    $cat['endrows']
   <!--{/if}-->
   </table>
  </div>

替换为:
复制内容到剪贴板
代码:
<th>{lang forum_name}</th>      
      <td class="lastpost">{lang forum_lastpost}</td>
     </tr>
    </thead>
    <!--{loop $cat[forums] $forumid}-->
     <!--{eval $forum=$forumlist[$forumid];}-->
     <tbody id="forum$forum[fid]">
      <tr>
       <th$forum[folder]>
        $forum[icon]
        <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><!--{/if}--></h2>
        <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
        <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
        <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu(this.id)">{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
       </th>
       <td class="lastpost">
       <!--{if $forum['permission'] == 1}-->
        {lang private_forum}
       <!--{else}-->
        <!--{if $forum['redirect']}-->
         --
        <!--{elseif is_array($forum['lastpost'])}--><cite>帖子:<font color=red title="{lang index_today}">$forum[todayposts]</font> <font color=green title="{lang forum_threads}"> / $forum[threads]</font> <font color=green title="{lang forum_posts}">/ $forum[posts] 帖</font></cite>  
         标题:<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 45)}</a>
         <cite>回复:{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
        <!--{else}-->
         {lang never}
        <!--{/if}-->
       <!--{/if}-->
       </td>
      </tr>
     </tbody>
    <!--{/loop}-->
   <!--{else}-->
     <tr>
     <!--{loop $cat['forums'] $forumid}-->
      <!--{eval $forum=$forumlist[$forumid];}-->
      <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
       </tr></tbody>
       <!--{if $forum['orderid'] < $cat['forumscount']}-->
        <tbody><tr>
       <!--{/if}-->
      <!--{/if}-->
      <th width="$cat[forumcolwidth]"{$forum[folder]}>{$forum[icon]}
       <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><em>(<font color=red title="{lang index_today}">$forum[todayposts]</font> <font color=green title="{lang forum_threads}"> / $forum[threads]</font> <font color=green title="{lang forum_posts}">/ $forum[posts] 帖</font>)</em></h2>
       <p>标题:<!--{if is_array($forum['lastpost'])}-->                        <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="主题标题:{eval echo cutstr($forum[lastpost][subject], 50)} ">{eval echo cutstr($forum[lastpost][subject], 30)}</a>
                                                                        
                                                                <!--{/if}--></p>
       <!--{if $forum['permission'] == 1}-->
        <p>{lang private_forum}
       <!--{else}-->
        <p>回复:<!--{if is_array($forum['lastpost'])}-->{lang forum_lastpost_by}
          <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author'] - $forum[lastpost][dateline] <!--{else}-->{lang anonymous}<!--{/if}-->
         <!--{else}-->
          {lang never}
         <!--{/if}-->
        </p>
       <!--{/if}-->
      </th>
     <!--{/loop}-->
    $cat['endrows']
   <!--{/if}-->
   </table>
  </div>

4.修改完毕,更新缓存.....查看效果
引用:
其实这个没有任何技术含量,大家都可以改,想改成什么样子就改成什么样子额....发出来大家一起学习下吧,不发附件了,免得出问题怪我....




[ 本帖最后由 彼岸的树 于 2008-5-6 09:34 编辑 ]
沙发自己坐
说明中的问题3解决方案为将帖子统计放在版块名称后边(和横排一样),将版主放在右边的第3行位置,已经这样修改过,大家可以试下
大力支持!!!!!!!!!!
MS没人要
请问如果只想显示横排论坛图标该怎么做?
除了LOGO什么都不要?
呵呵还是没我想象中那么好看
白翼技术论坛 http://www.bytt.net.cn                <<<<点击进入
不懂,都不要,只要LOGO和斑竹?
支持--好东西
 36 1234
发新话题
版块跳转