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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

DZ6.10UC全新无错横排风格(优化速度完美版)

[复制链接]
lihao677 发表于 2008-4-30 23:11:12 | 显示全部楼层
分区横拍显示在后台哪里设置啊???
我找不到在哪···能否说说··谢谢··
回复

使用道具 举报

ouyangken 发表于 2008-5-1 01:26:01 | 显示全部楼层
非常感谢分享
回复

使用道具 举报

jojo86 发表于 2008-5-1 09:01:31 | 显示全部楼层
非常棒的,支持
回复

使用道具 举报

红拂夜奔 发表于 2008-5-1 10:54:17 | 显示全部楼层
大家用的怎么样啊,
收藏先.
回复

使用道具 举报

xlshuang 发表于 2008-5-1 17:21:07 | 显示全部楼层
wo lai le   ,akankan
回复

使用道具 举报

piyr11 发表于 2008-5-1 18:01:22 | 显示全部楼层
先頂你一下:)
回复

使用道具 举报

luomin 发表于 2008-5-1 20:22:02 | 显示全部楼层
适合 6.0的版本吗?
回复

使用道具 举报

普通人 发表于 2008-5-2 09:23:30 | 显示全部楼层
嘿嘿!!支持一下
回复

使用道具 举报

261132701 发表于 2008-5-2 11:59:18 | 显示全部楼层
终于又见到可爱的横版了,呵呵,但是这个貌似是覆盖版,如果有修改了discuz.html和index.php文件的新手站长,可能不会改掉,覆盖又怕出错,下面,我附上手动修改代码,呵呵,只适合菜鸟站长,借鉴其他帖子,很简单的修改方法。
1。修改模板 discuz.htm 查找
  1. <!--{loop $cat['forums'] $forumid}-->
复制代码
其上面的 前3行 會看到 <!--{else}-->

修改來了,找到下面這一段:
  1. <!--{else}-->
  2.                                         <tr>
  3.                                         <!--{loop $cat['forums'] $forumid}-->
  4.                                                 <!--{eval $forum=$forumlist[$forumid];}-->
  5.                                                 <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  6.                                                         </tr></tbody>
  7.                                                         <!--{if $forum['orderid'] < $cat['forumscount']}-->
  8.                                                                 <tbody><tr>
  9.                                                         <!--{/if}-->
  10.                                                 <!--{/if}-->
  11.                                                 <th width="$cat[forumcolwidth]"{$forum[folder]}>
  12.                                                         <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
  13.                                                         <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
  14.                                                         <!--{if $forum['permission'] == 1}-->
  15.                                                                 <p>{lang private_forum}
  16.                                                         <!--{else}-->
  17.                                                                 <p>{lang forum_lastpost}:
  18.                                                                         <!--{if is_array($forum['lastpost'])}-->
  19.                                                                                 <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost">$forum[lastpost][dateline]</a>
  20.                                                                                 {lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
  21.                                                                         <!--{else}-->
  22.                                                                                 {lang never}
  23.                                                                         <!--{/if}-->
  24.                                                                 </p>
  25.                                                         <!--{/if}-->
  26.                                                 </th>
  27.                                         <!--{/loop}-->
  28.                                 $cat['endrows']
  29.                         <!--{/if}-->
复制代码
替換為如下內容:
  1. <!--{else}-->
  2.     <thead class="category" align="center">
  3.      
  4.     </thead>     
  5.      <!--{loop $cat['forums'] $forumid}-->
  6.       <!--{eval $forum=$forumlist[$forumid];}-->
  7.       <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  8.        </tr></tbody>
  9.        <!--{if $forum['orderid'] < $cat['forumscount']}-->
  10.         <tbody><tr>
  11.        <!--{/if}-->
  12.       <!--{/if}-->
  13.       <th class="forumlist" width="$cat[forumcolwidth]" style="vertical-align: top; background-image: none; padding:8px !important;">
  14. <div style="width:100%; "><div style="float:left; "><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></div><div style="float:right; "><A title="依发布时间排序主题 [进入本版]"
  15.       href="forumdisplay.php?fid=$forum[fid]&amp;filter=0&amp;orderby=dateline&amp;ascdesc=DESC&amp;sid=7A2NNH"><IMG
  16.       src="images/dateline_url.gif"></A>
  17.       <IMG class=hand title="最后发表.版主 [收/展]"
  18.       onclick="toggle_collapse('lastpost_$forum[fid]');"
  19.       src="images/master.gif"> <IMG
  20.       class=hand title="查看版主 [展/收]" onclick="toggle_collapse('dateline_$forum[fid]');"
  21.       src="images/dateline.gif">
  22.    <!--{if $forum[todayposts]}-->
  23.    
  24.    <!--{else}-->

  25.    <!--{/if}--></div></div>
  26. <span style="float:left">$forum[icon]</span><span style="float:left; color:{LIGHTTEXT}">$forum[description]</span>
  27.                                 <ul class="list" style="background-image: url(images/listbg_li.gif); padding:1px 2px 0px 10px; list-style-type: none; line-height: 20px; clear: both; margin:8px 0; ">
  28.                                 <!--{loop ${"new_no".$forum[fid]."_threadlist"} $row}-->
  29.    <div style="overflow: hidden; height:20px; width:100%"><small style="float:right; color:#9C8B88; margin: 0 0 0 5px">$row['date']</small><a href="viewthread.php?tid=$row[tid]" title="$row[subject]" target='_self'>$row[view_subject]</a></div>
  30.                                 <!--{/loop}-->
  31.                                 </ul>
  32. <div id="lastpost_$forum[fid]">
  33.         <div style="color:{LIGHTTEXT}; overflow: hidden; height: 20px; width: 100%" >
  34.         <!--{if is_array($forum['lastpost'])}-->
  35.          {lang forum_lastpost}: <a style="color:{LIGHTTEXT}" href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost" title="$forum[lastpost][subject]  ($forum[lastpost][dateline])">{echo cutstr($forum[lastpost][subject], 35)}</a>
  36.          ({lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author'])<!--{else}-->{lang anonymous}<!--{/if}-->
  37.         <!--{else}-->
  38.          {lang never}
  39.         <!--{/if}-->
  40.         </div>
  41.   <div style="text-align: left; color:{LIGHTTEXT}">
  42.   {lang forum_threads}:{if $forum['redirect']}--{else}$forum[threads]{/if},
  43.   {lang forum_posts}:{if $forum['redirect']}--{else}$forum[posts]{/if},
  44.   <!--{if $forum[todayposts]}-->{lang index_today}:$forum[todayposts],<!--{else}-->{lang index_today}:0<!--{/if}-->
  45.   </div></div>
  46.   


  47. <ul id="dateline_$forum[fid]" style="DISPLAY: none; background-image: url(images/listbg_lz.gif); padding:1px 2px 0px 10px; list-style-type: none; line-height: 20px; clear: both; margin:8px 0; ">
  48. <div style="overflow: hidden; height:35px; width:100%">
  49.   <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}-->
  50.   <p class="moderators">{lang forum_moderators}: $forum[moderators]</p>
  51.   <!--{else}-->
  52.   <span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu(this.id)">{lang forum_moderators}</span>
  53.   <ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul>
  54.   <!--{/if}--><!--{/if}-->
  55.    </div>
  56.                                 
  57.            </ul>
  58.       </th>
  59.      <!--{/loop}-->
  60.     $cat['endrows']
  61.    
  62.               <!--{/if}-->
复制代码
2。修改程序 index.php
找到
  1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
复制代码
在下面加上:
  1. //帖子调用开始
  2. $hack_cut_str =60; // 这里修改标题长度
  3. $fids = array();
  4. if (file_exists("./forumdata/cache/cache_forums.php")){
  5.         require_once "./forumdata/cache/cache_forums.php";
  6.         if (is_array($_DCACHE['forums'])){
  7.                 foreach ($_DCACHE['forums'] as $k => $v){
  8.                         if (!strstr(',sub,forum,',','.$v['type'].',')) continue;
  9.                         $fids[$k] = 5; // 这里是第一处调用条数需要和后面的设置一样。
  10.                 }
  11.         }
  12. }
  13. if (count($fids) < 1){
  14.         $query = $db->query("SELECT fid FROM {$tablepre}forums WHERE type='forum' OR type='sub'");
  15.         while ($row = $db->fetch_array($query)){
  16.                 $fids[$row['fid']] = 5; // 这里是第二处调用条数需要和前面的设置一样。
  17.         }
  18. }
  19. $limit_counts = 0;

  20. foreach ($fids as $k => $v){
  21.         $sql .= "(SELECT t.*, f.name FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f.fid = t.fid WHERE t.fid='$k' ORDER BY t.dateline DESC LIMIT $v) UNION ";
  22. }
  23. if ($sql){
  24.         $sql = substr($sql,0,strlen($sql)-6);
  25. }
  26. $query = $db->query($sql);
  27. while ($row = $db->fetch_array($query)){
  28.         $row['view_subject'] = cutstr($row['subject'],$hack_cut_str);
  29.         $row['date']= gmdate("$dateformat", $row['dateline'] + $timeoffset * 3600);
  30.         if($row['highlight']) {
  31.                         $string = sprintf('%02d', $row['highlight']);
  32.                         $stylestr = sprintf('%03b', $string[0]);
  33.                         $row['highlight'] = 'style="';
  34.                         $row['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  35.                         $row['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  36.                         $row['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  37.                         $row['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  38.                         $row['highlight'] .= '"';
  39.         } else {
  40.                         $row['highlight'] = '';
  41.         }
  42.         ${'new_no'.$row['fid'].'_threadlist'}[] = $row;
  43. }
  44. //帖子调用结束
复制代码
最后,将附件里面的images目录上传到你论坛目录的images目录下,就可以了,呵呵,看过之后是不是很简单呢,终于可以免去你覆盖的烦恼了,好的话,就顶一下作者吧,哈,谢谢作者给我们带来这么好的插件。
回复

使用道具 举报

261132701 发表于 2008-5-2 12:01:58 | 显示全部楼层
原帖由 lihao677 于 2008-4-30 23:11 发表
分区横拍显示在后台哪里设置啊???
我找不到在哪···能否说说··谢谢··


后台-板块-主版块-编辑-下级子版块横排
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-4 11:26 , Processed in 0.109235 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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