AL8 Forum
   登錄註冊幫助


標題: [插件] ntf既社區直排顯示 for dz 6.0
 【賢】◎§
 0077359
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 【賢】◎§ 的詳細資料

頭銜: Forum Legend

帖子: 2561

精華: 0

積分: 24522 點

現金: 1181 元

存款: 302 元

閱讀權限: 70

註冊: 2007-5-24

來自: Fanling

狀態: 離線
 
發表於 2007-7-25 13:57  資料  個人空間  主頁 短消息  加為好友 
ntf既社區直排顯示 for dz 6.0

作者:ntf
語言:Big5繁體中文版
插件名稱: Discuz! 社區直排顯示 緩存文件版
版本:v1.04 for 6.0
演示:http://forum.community.coms.hk


1.下載 《Discuz! 社區直排顯示 管理平台》 及上載檔案

文件下載: 《Discuz! 社區直排顯示 管理平台》v1.0.4


3.升級數據庫

ALTER TABLE `cdb_forums` ADD `straightdisplay` SMALLINT( 1 ) NOT NULL DEFAULT '0';


4.修改內容


        $threads = $posts = $todayposts = 0;


下加
//社區直排顯示 Cache
if(!$showforumlist){
$showforumlist='straightdisplay'; //沒有選擇的顯示方式 straightdisplay為直排 default為本來的顯示
}

if($showforumlist=='straightdisplay'){
        require_once DISCUZ_ROOT.'./sdlist.php';        
}else{
//社區直排顯示 Cache        



   if(isset($catlist[0]) && $catlist[0]['forumscount']) {
                $catlist[0]['fid'] = 0;
                $catlist[0]['type'] = 'group';
                $catlist[0]['name'] = $bbname;
                $catlist[0]['collapseimg'] = 'collapsed_no.gif';
        } else {
                unset($catlist[0]);
        }


下加
//社區直排顯示 Cache
}
//社區直排顯示 Cache



變更顯示位置 請放入discuz.htm (或你的home內)


<!--{if $gid || $showforumlist == 'default'}-->
<a href="{$PHP_SELF}?showforumlist=straightdisplay">變更為直排顯示</a>
<!--{elseif empty($gid) && $showforumlist == 'straightdisplay'}-->
<a href="{$PHP_SELF}?showforumlist=default">變更為普通顯示</a>
<!--{/if}-->



顯示直排位置:如果不懂修改可在discuz.htm找



<!--{loop $catlist $key $cat}-->
        <!--{if $cat['forumscount']}-->
                <div class="spaceborder spacebottom" style="width: {TABLEWIDTH}; clear: both; margin-top: 5px;"><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
                <tr><td colspan="<!--{if $cat['forumcolumns']}-->$cat[forumcolumns]<!--{else}-->7<!--{/if}-->" class="header" style="padding-left:20px">
                <div class="subtable" style="padding: 0px"><div class="right">
                <!--{if $cat['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $cat[moderators]</font> <!--{/if}-->
                <a href="###" onclick="toggle_collapse('category_$cat[fid]');"><img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" border="0" alt="" /></a>
                </div><a href="$indexname?gid=$cat[fid]">$cat[name]</a></div>
                </td></tr>
                <!--{if !$cat['forumcolumns']}-->
                        <tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]">
                        <tr class="category" align="center">
                        <td width="5%"> </td>
                        <td width="56%" align="left">{lang forum_name}</td>
                        <td width="5%">{lang forum_threads}</td>
                        <td width="5%">{lang forum_posts}</td>
                        <td width="13%">{lang forum_lastpost}</td>
                        <td width="16%">{lang forum_moderators}</td>
                        </tr>
                        <!--{loop $cat[forums] $forumid}-->
                                <!--{eval $forum=$forumlist[$forumid];}-->
                                <tr class="row" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
                                <td align="center">$forum[folder]</td>
                                <td align="left" class="subject">
                                $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
                                <!--{if $forum[todayposts]}--><span class="todayposts">($forum[todayposts])</span><!--{/if}-->
                                <br><span class="smalltxt">$forum[description]<!--{if $forum['subforums']}--><br><span class="bold">{lang forum_subforums}:</span> $forum['subforums']<!--{/if}--></span></td>
                                <td align="center">$forum[threads]</td>
                                <td align="center">$forum[posts]</td>
                                <!--{if $forum['permission'] == 1}-->
                                        <td align="center"><span class="smalltxt">{lang private_forum}</span></td>
                                <!--{else}-->
                                        <!--{if is_array($forum['lastpost'])}-->
                                                <td align="center" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap>
                                                <span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a></span><br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
                                                </td>
                                        <!--{else}-->
                                                <td align="center"><span class="smalltxt">{lang never}</span></td>
                                        <!--{/if}-->
                                <!--{/if}-->
                                <td align="center" style="word-break: keep-all">$forum[moderators]</td></tr>
                        <!--{/loop}-->
                <!--{else}-->
                        <tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]"><tr class="altbg2">
                        <!--{loop $cat['forums'] $forumid}-->
                                <!--{eval $forum=$forumlist[$forumid];}-->
                                <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
                                        </tr>
                                        <!--{if $forum['orderid'] < $cat['forumscount']}-->
                                                <tr class="altbg2">
                                        <!--{/if}-->
                                <!--{/if}-->
                                <td width="$cat[forumcolwidth]" valign="top" class="altbg2" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
                                <table cellspacing="0" cellpadding="0" width="100%">
                                <tr><td rowspan="3" align="center" width="15%">$forum[folder]</td><td colspan="3" class="bold subject"><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></td></tr>
                                <tr class="smalltxt"><td colspan="3">{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}-->
                                </td></tr><tr class="smalltxt"><td>{lang forum_threads}: $forum[threads]</td><td>{lang forum_posts}: $forum[posts]</td><td>{lang forum_todayposts}: $forum[todayposts]</td></tr></table>
                                </td>
                        <!--{/loop}-->
                        $cat['endrows']
                <!--{/if}-->
                </tbody></table></div>
                <!--{if !empty($advlist['intercat']) && $key < max(array_keys($catlist))}--><div style="clear: both; margin-top: 5px;"><!--{echo $advlist['intercat'][array_rand($advlist['intercat'])]}--></div><!--{else}--><br><!--{/if}-->
        <!--{/if}-->
<!--{/loop}-->



改為
<!--{if $gid || $showforumlist == 'default'}-->
{template forumlist_default}
<!--{elseif empty($gid) && $showforumlist == 'straightdisplay'}-->
{template forumlist_straightdisplay}
<!--{/if}-->



找 include/cache.func.php
'medals'        => array('medals'),


下加
'straightdisplay'  => array('straight_one', 'straight_two', 'straight_three', 'straight_four'), //社區直排顯示




                case 'faqs':
                        $table = 'faqs';
                        $cols = 'id, identifier, keyword';
                        $conditions = "WHERE identifier!='' AND keyword!=''";
                        break;


下加

//社區直排顯示
  case 'straight_one':
                        $table = 'forums f';
                        $cols = 'f.fid, f.type, f.name, f.fup, f.posts, f.threads, f.todayposts, ff.viewperm, a.uid';
                        $conditions = "LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid LEFT JOIN {$tablepre}access a ON a.fid=f.fid AND a.allowview='1' WHERE f.status>0 AND straightdisplay=1 ORDER BY f.type, f.displayorder";
                        break;

case 'straight_two':
                        $table = 'forums f';
                        $cols = 'f.fid, f.type, f.name, f.fup, f.posts, f.threads, f.todayposts, ff.viewperm, a.uid';
                        $conditions = "LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid LEFT JOIN {$tablepre}access a ON a.fid=f.fid AND a.allowview='1' WHERE f.status>0 AND straightdisplay=2 ORDER BY f.type, f.displayorder";
                        break;
case 'straight_three':
                        $table = 'forums f';
                        $cols = 'f.fid, f.type, f.name, f.fup, f.posts, f.threads, f.todayposts, ff.viewperm, a.uid';
                        $conditions = "LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid LEFT JOIN {$tablepre}access a ON a.fid=f.fid AND a.allowview='1' WHERE f.status>0 AND straightdisplay=3 ORDER BY f.type, f.displayorder";
                        break;
case 'straight_four':
                        $table = 'forums f';
                        $cols = 'f.fid, f.type, f.name, f.fup, f.posts, f.threads, f.todayposts, ff.viewperm, a.uid';
                        $conditions = "LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid LEFT JOIN {$tablepre}access a ON a.fid=f.fid AND a.allowview='1' WHERE f.status>0 AND straightdisplay=4 ORDER BY f.type, f.displayorder";
                        break;
//社區直排顯示





                        if(empty($table) || empty($cols)) return '';
                $query = $db->query("SELECT $cols FROM {$tablepre}$table $conditions");
        }
        switch($cachename) {


下加

//社區直排顯示
case  (in_array($cachename, array('straight_one', 'straight_two', 'straight_three', 'straight_four'))):
        while($forum = $db->fetch_array($query)) {
                                if(!isset($forumlist[$forum['fid']])) {
                                        $forum['name'] = strip_tags($forum['name']);
                                        if($forum['uid']) {
                                                $forum['users'] = "\t$forum[uid]\t";
                                        }
                                        unset($forum['uid']);
                                        if($forum['fup']) {
                                                $forumlist[$forum['fup']]['count']++;
                                        }
                                        $forumlist[$forum['fid']] = $forum;
                                } elseif($forum['uid']) {
                                        if(!$forumlist[$forum['fid']]['users']) {
                                                $forumlist[$forum['fid']]['users'] = "\t";
                                        }
                                        $forumlist[$forum['fid']]['users'] .= "$forum[uid]\t";
                                }
                        }

                        if(!empty($forumlist)) {
                                foreach($forumlist as $fid1 => $forum1) {
                                        if(($forum1['type'] == 'group' && $forum1['count'])) {
                                                $data[$fid1]['fid'] = $forum1['fid'];
                                                $data[$fid1]['type'] = $forum1['type'];
                                                $data[$fid1]['name'] = $forum1['name'];
                                                $data[$fid1]['fup'] = $forum1['fup'];
                                                $data[$fid1]['viewperm'] = $forum1['viewperm'];
                                                                                                $data[$fid1]['posts'] = $forum1['posts'];
                                                $data[$fid1]['threads'] = $forum1['threads'];
                                                $data[$fid1]['todayposts'] = $forum1['todayposts'];
                                                foreach($forumlist as $fid2 => $forum2) {
                                                        if($forum2['fup'] == $fid1 && $forum2['type'] == 'forum') {
                                                                $data[$fid2]['fid'] = $forum2['fid'];
                                                                $data[$fid2]['type'] = $forum2['type'];
                                                                $data[$fid2]['name'] = $forum2['name'];
                                                                $data[$fid2]['fup'] = $forum2['fup'];
                                                                $data[$fid2]['viewperm'] = $forum2['viewperm'];
                                                                                $data[$fid2]['posts'] = $forum2['posts'];
                                                $data[$fid2]['threads'] = $forum2['threads'];
                                                $data[$fid2]['todayposts'] = $forum2['todayposts'];
                                                                foreach($forumlist as $fid3 => $forum3) {
                                                                        if($forum3['fup'] == $fid2 && $forum3['type'] == 'sub') {
                                                                                $data[$fid3]['fid'] = $forum3['fid'];
                                                                                $data[$fid3]['type'] = $forum3['type'];
                                                                                $data[$fid3]['name'] = $forum3['name'];
                                                                                $data[$fid3]['fup'] = $forum3['fup'];
                                                                                $data[$fid3]['viewperm'] = $forum3['viewperm'];
                                                                                                $data[$fid3]['posts'] = $forum3['posts'];
                                                $data[$fid3]['threads'] = $forum3['threads'];
                                                $data[$fid3]['todayposts'] = $forum3['todayposts'];
                                                                        }
                                                                }
                                                        }
                                                }
                                        }
                                }
                        }
                        break;

//社區直排顯示



找 admin/forums.inc.php
                $table_forum_columns = array('fup', 'type', 'name', 'status', 'styleid', 'allowsmilies', 'allowhtml', 'allowbbcode', 'allowimgcode', 'allowanonymous', 'allowshare', 'allowpostspecial', 'alloweditrules', 'allowpaytoauthor', 'alloweditpost', 'modnewposts', 'recyclebin', 'jammer', 'forumcolumns', 'threadcaches', 'disablewatermark', 'autoclose', 'simple');


改為
//社區直排顯示      
        $table_forum_columns = array('fup', 'type', 'name', 'status', 'styleid', 'allowsmilies', 'allowhtml', 'allowbbcode', 'allowimgcode', 'allowanonymous', 'allowshare', 'allowpostspecial', 'alloweditrules', 'allowpaytoauthor', 'alloweditpost', 'modnewposts', 'recyclebin', 'jammer', 'forumcolumns', 'threadcaches', 'disablewatermark', 'autoclose', 'simple','straightdisplay');
//社區直排顯示



                        $forumfields['fup'] = $forum ? $fup : 0;
                $forumfields['type'] = $forum['type'] == 'forum' ? 'sub' : 'forum';
                $forumfields['name'] = $newforum;
                $forumfields['status'] = 1;


下加
//社區直排顯示
$forumfields['straightdisplay'] = $forum['straightdisplay'];
//社區直排顯示



                while($mod = $db->fetch_array($query)) {
                        if($mod['inherited'] || $forum['inheritedmod']) {
                                $db->query("REPLACE INTO {$tablepre}moderators (uid, fid, inherited)
                                        VALUES ('$mod[uid]', '$fid', '1')");
                        }
                }

                updatecache('forums');



下加
//社區直排顯示
updatecache('straight_one');
updatecache('straight_two');
updatecache('straight_three');
updatecache('straight_four');
//社區直排顯示


       
#1
使用道具  
發表於 2007-7-25 13:49  資料  個人空間  短消息  加為好友  添加 ntf 為MSN好友 通過MSN和 ntf 交談 Yahoo!
社區直排顯示 for dz 6.0



QUOTE:
作者:ntf
語言:Big5繁體中文版
插件名稱: Discuz! 社區直排顯示 緩存文件版
版本:v1.04 for 6.0
演示:http://forum.community.coms.hk



QUOTE:
本版本更新:
將管理系統變得更方便
增加錯誤檢查,方便檢查第1次安裝時的問題

1.下載 《Discuz! 社區直排顯示 管理平台》 及上載檔案

QUOTE:
文件下載: 《Discuz! 社區直排顯示 管理平台》v1.0.4

3.升級數據庫

[Copy to clipboard] [ - ]
CODE:
ALTER TABLE `cdb_forums` ADD `straightdisplay` SMALLINT( 1 ) NOT NULL DEFAULT '0';

4.修改內容

index.php

QUOTE:


[Copy to clipboard] [ - ]
CODE:
        $threads = $posts = $todayposts = 0;

      

下加

[Copy to clipboard] [ - ]
CODE:
//社區直排顯示 Cache
if(!$showforumlist){
$showforumlist='straightdisplay'; //沒有選擇的顯示方式 straightdisplay為直排 default為本來的顯示
}

if($showforumlist=='straightdisplay'){
        require_once DISCUZ_ROOT.'./sdlist.php';        
}else{
//社區直排顯示 Cache        
      



[Copy to clipboard] [ - ]
CODE:
   if(isset($catlist[0]) && $catlist[0]['forumscount']) {
                $catlist[0]['fid'] = 0;
                $catlist[0]['type'] = 'group';
                $catlist[0]['name'] = $bbname;
                $catlist[0]['collapseimg'] = 'collapsed_no.gif';
        } else {
                unset($catlist[0]);
        }

下加

[Copy to clipboard] [ - ]
CODE:
//社區直排顯示 Cache
}
//社區直排顯示 Cache


變更顯示位置 請放入discuz.htm (或你的home內)

QUOTE:


[Copy to clipboard] [ - ]
CODE:
<!--{if $gid || $showforumlist == 'default'}-->
<a href="{$PHP_SELF}?showforumlist=straightdisplay">變更為直排顯示</a>
<!--{elseif empty($gid) && $showforumlist == 'straightdisplay'}-->
<a href="{$PHP_SELF}?showforumlist=default">變更為普通顯示</a>
<!--{/if}-->


顯示直排位置:如果不懂修改可在discuz.htm找

QUOTE:


[Copy to clipboard] [ - ]
CODE:
<!--{loop $catlist $key $cat}-->
        <!--{if $cat['forumscount']}-->
                <div class="spaceborder spacebottom" style="width: {TABLEWIDTH}; clear: both; margin-top: 5px;"><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
                <tr><td colspan="<!--{if $cat['forumcolumns']}-->$cat[forumcolumns]<!--{else}-->7<!--{/if}-->" class="header" style="padding-left:20px">
                <div class="subtable" style="padding: 0px"><div class="right">
                <!--{if $cat['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $cat[moderators]</font> <!--{/if}-->
                <a href="###" onclick="toggle_collapse('category_$cat[fid]');"><img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" border="0" alt="" /></a>
                </div><a href="$indexname?gid=$cat[fid]">$cat[name]</a></div>
                </td></tr>
                <!--{if !$cat['forumcolumns']}-->
                        <tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]">
                        <tr class="category" align="center">
                        <td width="5%"> </td>
                        <td width="56%" align="left">{lang forum_name}</td>
                        <td width="5%">{lang forum_threads}</td>
                        <td width="5%">{lang forum_posts}</td>
                        <td width="13%">{lang forum_lastpost}</td>
                        <td width="16%">{lang forum_moderators}</td>
                        </tr>
                        <!--{loop $cat[forums] $forumid}-->
                                <!--{eval $forum=$forumlist[$forumid];}-->
                                <tr class="row" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
                                <td align="center">$forum[folder]</td>
                                <td align="left" class="subject">
                                $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
                                <!--{if $forum[todayposts]}--><span class="todayposts">($forum[todayposts])</span><!--{/if}-->
                                <br><span class="smalltxt">$forum[description]<!--{if $forum['subforums']}--><br><span class="bold">{lang forum_subforums}:</span> $forum['subforums']<!--{/if}--></span></td>
                                <td align="center">$forum[threads]</td>
                                <td align="center">$forum[posts]</td>
                                <!--{if $forum['permission'] == 1}-->
                                        <td align="center"><span class="smalltxt">{lang private_forum}</span></td>
                                <!--{else}-->
                                        <!--{if is_array($forum['lastpost'])}-->
                                                <td align="center" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap>
                                                <span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a></span><br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
                                                </td>
                                        <!--{else}-->
                                                <td align="center"><span class="smalltxt">{lang never}</span></td>
                                        <!--{/if}-->
                                <!--{/if}-->
                                <td align="center" style="word-break: keep-all">$forum[moderators]</td></tr>
                        <!--{/loop}-->
                <!--{else}-->
                        <tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]"><tr class="altbg2">
                        <!--{loop $cat['forums'] $forumid}-->
                                <!--{eval $forum=$forumlist[$forumid];}-->
                                <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
                                        </tr>
                                        <!--{if $forum['orderid'] < $cat['forumscount']}-->
                                                <tr class="altbg2">
                                        <!--{/if}-->
                                <!--{/if}-->
                                <td width="$cat[forumcolwidth]" valign="top" class="altbg2" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
                                <table cellspacing="0" cellpadding="0" width="100%">
                                <tr><td rowspan="3" align="center" width="15%">$forum[folder]</td><td colspan="3" class="bold subject"><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></td></tr>
                                <tr class="smalltxt"><td colspan="3">{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}-->
                                </td></tr><tr class="smalltxt"><td>{lang forum_threads}: $forum[threads]</td><td>{lang forum_posts}: $forum[posts]</td><td>{lang forum_todayposts}: $forum[todayposts]</td></tr></table>
                                </td>
                        <!--{/loop}-->
                        $cat['endrows']
                <!--{/if}-->
                </tbody></table></div>
                <!--{if !empty($advlist['intercat']) && $key < max(array_keys($catlist))}--><div style="clear: both; margin-top: 5px;"><!--{echo $advlist['intercat'][array_rand($advlist['intercat'])]}--></div><!--{else}--><br><!--{/if}-->
        <!--{/if}-->
<!--{/loop}-->
改為
[Copy to clipboard] [ - ]
CODE:
<!--{if $gid || $showforumlist == 'default'}-->
{template forumlist_default}
<!--{elseif empty($gid) && $showforumlist == 'straightdisplay'}-->
{template forumlist_straightdisplay}
<!--{/if}-->
找 include/cache.func.php
[Copy to clipboard] [ - ]
CODE:
'medals'        => array('medals'),
下加
[Copy to clipboard] [ - ]
CODE:
'straightdisplay'  => array('straight_one', 'straight_two', 'straight_three', 'straight_four'), //社區直排顯示

[Copy to clipboard] [ - ]
CODE:
                case 'faqs':
                        $table = 'faqs';
                        $cols = 'id, identifier, keyword';
                        $conditions = "WHERE identifier!='' AND keyword!=''";
                        break;
下加
[Copy to clipboard] [ - ]
CODE:
//社區直排顯示
  case 'straight_one':
                        $table = 'forums f';
                        $cols = 'f.fid, f.type, f.name, f.fup, f.posts, f.threads, f.todayposts, ff.viewperm, a.uid';
                        $conditions = "LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid LEFT JOIN {$tablepre}access a ON a.fid=f.fid AND a.allowview='1' WHERE f.status>0 AND straightdisplay=1 ORDER BY f.type, f.displayorder";
                        break;

case 'straight_two':
                        $table = 'forums f';
                        $cols = 'f.fid, f.type, f.name, f.fup, f.posts, f.threads, f.todayposts, ff.viewperm, a.uid';
                        $conditions = "LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid LEFT JOIN {$tablepre}access a ON a.fid=f.fid AND a.allowview='1' WHERE f.status>0 AND straightdisplay=2 ORDER BY f.type, f.displayorder";
                        break;
case 'straight_three':
                        $table = 'forums f';
                        $cols = 'f.fid, f.type, f.name, f.fup, f.posts, f.threads, f.todayposts, ff.viewperm, a.uid';
                        $conditions = "LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid LEFT JOIN {$tablepre}access a ON a.fid=f.fid AND a.allowview='1' WHERE f.status>0 AND straightdisplay=3 ORDER BY f.type, f.displayorder";
                        break;
case 'straight_four':
                        $table = 'forums f';
                        $cols = 'f.fid, f.type, f.name, f.fup, f.posts, f.threads, f.todayposts, ff.viewperm, a.uid';
                        $conditions = "LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid LEFT JOIN {$tablepre}access a ON a.fid=f.fid AND a.allowview='1' WHERE f.status>0 AND straightdisplay=4 ORDER BY f.type, f.displayorder";
                        break;
//社區直排顯示
太多字..唔夠位

http://forum.community.coms.hk/r ... amp;goto=newpost###

自己睇

[ 本帖最後由 【賢】◎§ 於 2007-7-25 14:07 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 ntf
 0043014
Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

頭銜: Moderator

自述: ntf

帖子: 3710

精華: 0

積分: 6373 點

現金: 0 元

存款: 38423 元

閱讀權限: 100

註冊: 2006-4-7

狀態: 離線
 
發表於 2007-7-25 14:00  資料  個人空間  短消息  加為好友 
你就想有得睇  閱讀權限 255


改埋先~




 AL8 Forum © All rights reserved.
頂部
 xox1191
 0050227
 此發帖者已被禁止訪問

頭銜: Banned

自述: 變型金剛

帖子: 1199

精華: 0

積分: 8870 點

現金: 229 元

存款: 3262 元

閱讀權限: 0

註冊: 2006-8-19

狀態: 離線
 
發表於 2007-7-25 14:01  資料  個人空間  短消息  加為好友 
*** 作者被禁止或刪除 內容自動屏蔽 ***
 kohong
 0040689
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: KC 仔

帖子: 3333

精華: 0

積分: 696 點

現金: 0 元

存款: 20728 元

閱讀權限: 70

註冊: 2006-2-27

狀態: 離線
 
發表於 2007-7-25 14:13  資料  個人空間  短消息  加為好友  添加 kohong 為MSN好友 通過MSN和 kohong 交談 ICQ 狀態
QUOTE:
原帖由 【賢】◎§ 於 2007-7-25 13:57 發表
作者:ntf
語言:Big5繁體中文版
插件名稱: Discuz! 社區直排顯示 緩存文件版
版本:v1.04 for 6.0
演示:http://forum.community.coms.hk
1.下載 《Discuz! 社區直排顯示 管理平台》 及上載檔案 ...

第一次見人轉貼得咁差, 連CODE同引用D字都唔改番....




是咁的
 AL8 Forum © All rights reserved.
頂部
 kyty27
 0058199
Rank: 5Rank: 5Rank: 5Rank: 5Rank: 5

頭銜: King

帖子: 988

精華: 0

積分: 80 點

現金: 7335 元

存款: 2003 元

閱讀權限: 30

註冊: 2006-11-17

來自: al8

狀態: 離線
 
發表於 2007-7-25 17:45  資料  個人空間  短消息  加為好友 
演示有問題
人地dz5.5
你戈個係for 6.0
點都唔通啦?!




▌▌▌▌█ 以上全部亂嗡
▌▌▌▌█ ALL ARE NOT APPROVED
 AL8 Forum © All rights reserved.
頂部
 gordan
 0060328
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 gordan 的詳細資料

頭銜: Forum Legend

自述: Banned

帖子: 3794

精華: 0

積分: 3770 點

現金: 4311 元

存款: 12345 元

閱讀權限: 70

註冊: 2006-12-10

狀態: 離線
 
發表於 2007-7-25 17:47  資料  個人空間  短消息  加為好友 
6.0.0既野出得好快喎=]




 AL8 Forum © All rights reserved.
頂部
 xox1191
 0050227
 此發帖者已被禁止訪問

頭銜: Banned

自述: 變型金剛

帖子: 1199

精華: 0

積分: 8870 點

現金: 229 元

存款: 3262 元

閱讀權限: 0

註冊: 2006-8-19

狀態: 離線
 
發表於 2007-7-25 17:49  資料  個人空間  短消息  加為好友 
*** 作者被禁止或刪除 內容自動屏蔽 ***
 kevin625hk
 0041292
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: b_kevin_e

自述: 遊客

帖子: 1201

精華: 0

積分: 1650 點

現金: 242 元

存款: 0 元

閱讀權限: 70

註冊: 2006-3-8

來自: 屯門

狀態: 離線
 
發表於 2007-7-25 18:55  資料  個人空間  主頁 短消息  加為好友  添加 kevin625hk 為MSN好友 通過MSN和 kevin625hk 交談
QUOTE:
原帖由 kyty27 於 2007-7-25 17:45 發表
演示有問題
人地dz5.5
你戈個係for 6.0
點都唔通啦?!

有d應該係可以係Dz6.0到做
即使係for5.5




 AL8 Forum © All rights reserved.
頂部
 Eric03
 0046130
Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

頭銜: Discuz Team

暱稱: 遲去換機 ...

帖子: 6902

精華: 0

積分: -78 點

現金: 100 元

存款: 0 元

閱讀權限: 70

註冊: 2006-6-4