AL8 Forum » Discuz 6.0 及 6.1 插件發佈 » 首頁四格 For DZ6.1F - 20080826 新增GBK版本


2008-8-6 22:49 Cutthroat
首頁四格 For DZ6.1F - 20080826 新增GBK版本

首頁四格(繁體無錯版) For Discuz 6.1F [Big5]
[quote][color=Red][size=5]GBK版請致第二帖下載免修改 hack ![/size][/color][/quote]
作者:alan888
DZ6.1F 修改:Cutthroat
適用版本:Discuz 6.1F
修改文件:
index.php
logging.php
topicadmin.php
include/newthread.inc.php
include/newreply.inc.php
include/editpost.inc.php
include/counter.inc.php
include/cache.func.php
語言包 actions.lang.php
各風格 discuz.htm
各風格 css_append.htm

加入文件:
todayvisit.php
foruminfo.htm
todayvisit.htm

演示:附圖
[quote][size=3][color=red]提供免安裝版, 但僅適用於剛升級完及新安裝之論壇使用 ![/color][/size][/quote]
~ 手動修改開始 ~
1. include/cache.func.php 找 :
[code]                'medals'        => array('medals'),[/code]
替換為
[code]
    'medals'        => array('medals'),
    'newtopic'      => array('newtopic'),
    'newreply'      => array('newreply'),
    'todaynewmems'        => array('todaynewmems'),
    'todayvisit'    => array('todayvisit'),
[/code]
1a. 再找
[code]
                case 'medals':
                        $table = 'medals';
                        $cols = 'medalid, name, image';
                        $conditions = "WHERE available='1'";
                        break;[/code]
下面加 [color=red]( 注意先填妥紅字部份 ) 填上不需要顯示帖子區域[/color]
由於使用快取檔型式, 故某些私密區不能判斷會員權限來顯示發帖及回帖, 所以要先修改及取代下紅字部份 "填上不需要顯示帖子區域的 fid 編號, 以逗號作分格, 最後一個不用加上逗號" 部份, 例如希望不顯示 fid 1,3,5 便填上 "$fids="1,3,5";"
如果希望全部顯示者, 請將下兩段的 [color=blue]NOT IN ($fids)[/color] ( 藍色字顯示部份 ) 刪除, 否則會出現數據錯誤的顯示 !
[quote]
                case 'newtopic':
                        $table = 'threads t, '.$tablepre.'forums f';
                        $cols = "t.tid, t.subject, t.author, t.dateline, t.views, t.replies, t.lastpost, t.lastposter, t.highlight, f.name";
                        $fids="[color=red]填上不需要顯示發新帖區域的 fid 編號, 以逗號作分格, 最後一個不用加上逗號[/color]";//例如 "1,2,3";
                        $conditions = "WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid [color=blue]NOT IN ($fids)[/color] ORDER BY t.dateline DESC LIMIT 0, 11";
                        break;
                case 'newreply':
                        $table = 'threads t, '.$tablepre.'forums f';
                        $cols = "t.tid, t.subject, t.author, t.dateline, t.views, t.replies, t.lastpost, t.lastposter, t.highlight, f.name";
                        $fids="[color=red]填上不需要顯示回帖區域的 fid 編號, 以逗號作分格, 最後一個不用加上逗號[/color]";//例如 "1,2,3";
                        $conditions = "WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid [color=blue]NOT IN ($fids)[/color] AND  t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 11";
                        break;
                case 'todaynewmems':
                        $table = 'members';
                        $cols = 'COUNT(*)';
                        $datecut = time() - (3600 * 24);
                        $conditions = "WHERE regdate>='$datecut'";
                        break;
                case 'todayvisit':
                        $table = 'members';
                        $cols = "COUNT(*)";
                        $datecut = time() - (3600 * 24);
                        $conditions = "WHERE lastactivity>='$datecut' ORDER BY lastvisit DESC";
                        break;[/quote]
1b. 再找
[code]
                case 'forumlinks':
                        global $forumlinkstatus;[/code]
上面加
[code]
                case 'newreply':
                $hack_cut_str = 26;
                $new_reply_threadlist = array();
                $rthread = array();
                $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
                while($rthread = $db->fetch_array($query)){
                $rthread['forumname'] = $rthread['name'];
                $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
                $rthread['subject'] = cutstr($rthread['subject'],46);
                $rthread['date']= gmdate('Y-n-j G:i', $rthread['dateline'] + 8 * 3600);
                $rthread['lastreplytime']= gmdate('Y-n-j G:i', $rthread['lastpost'] + 8 * 3600);
                if($rthread['highlight']) {
                $string = sprintf('%02d', $rthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $rthread['highlight'] = 'style="';
                $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $rthread['highlight'] .= '"';
                } else {
                $rthread['highlight'] = '';
                }
                $new_reply_threadlist = "<a href=\"redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost\" title=\"論壇: $rthread[forumname]\r\n標題: $rthread[subject]\r\n作者: $rthread[author]\r\n發表時間: $rthread[date]\r\n瀏覽次數: $rthread[views] 次\r\n回覆: $rthread[replies] 次\r\n最後回覆: $rthread[lastreplytime]\r\n最後發表: $rthread[lastposter]\" $rthread[highlight]>$rthread[view_subject]</a><br />";
                $data[] = array('content' => $new_reply_threadlist);
                        }
                break;
                case 'newtopic':
                $hack_cut_str = 26;
                $new_post_threadlist = array();
                $nthread = array();
                $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
                while($nthread = $db->fetch_array($query)){
                $nthread['forumname'] = $nthread['name'];
                $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
                $nthread['subject'] = cutstr($nthread['subject'],46);
                $nthread['date']= gmdate('Y-n-j G:i', $nthread['dateline'] + 8 * 3600);
                $nthread['lastreplytime']= gmdate('Y-n-j G:i', $nthread[lastpost] + 8 * 3600);
                if($nthread['highlight']) {
                $string = sprintf('%02d', $nthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $nthread['highlight'] = 'style="';
                $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $nthread['highlight'] .= '"';
                } else {
                $nthread['highlight'] = '';
                }
        $new_post_threadlist = $nthread[replies] ? "<a href=\"redirect.php?tid=$nthread[tid]&goto=lastpost#lastpost\" title=\"論壇: $nthread[forumname]\r\n標題: $nthread[subject]\r\n作者: $nthread[author]\r\n發表時間: $nthread[date]\r\n瀏覽次數: $nthread[views] 次 \r\n回覆: $nthread[replies] 次\r\n最後回覆: $nthread[lastreplytime]\r\n最後發表: $nthread[lastposter]\" $nthread[highlight] >$nthread[view_subject]</a><br />" : "<a href=\"redirect.php?tid=$nthread[tid]&goto=lastpost#lastpost\" title=\"論壇: $nthread[forumname]\r\n標題: $nthread[subject]\r\n作者: $nthread[author]\r\n發表時間: $nthread[date]\r\n瀏覽次數: $nthread[views] 次\r\n回覆: 暫時沒有回覆\" $nthread[highlight] >$nthread[view_subject]</a><br />";
                $data[] = array('content' => $new_post_threadlist);
                        }
                break;[/code]
[color=red]完成此文件修改後請立刻至後台 => 更新緩存[/color]

2. include/newthread.inc.php 找
[code]
showmessage('post_newthread_succeed', "viewthread.php?tid=$tid&extra=$extra".(!empty($frombbs) ? "&frombbs=$frombbs" : ''));
[/code]
上面加
[code]
                require DISCUZ_ROOT.'./include/cache.func.php';
                updatecache('newtopic');[/code]
3. include/newreply.inc.php 找
[code]
showmessage($replymessage, "viewthread.php?tid=$tid&pid=$pid&page=".(@ceil(($thread['special'] ? $thread['replies'] + 1 : $thread['replies'] + 2) / $ppp))."&extra=$extra#pid$pid");
[/code]
上面加
[code]
require DISCUZ_ROOT.'./include/cache.func.php';
updatecache(array('newreply','newtopic'));[/code]
4. include/editpost.inc.php 找
[code]
if($auditstatuson) {
                if($audit == 1) {
                        showmessage('auditstatuson_succeed', $redirecturl);
                } else {
                        showmessage('audit_edit_succeed');
                }
        } else {
                if(!empty($delete) && $isfirstpost) {
                        showmessage('post_edit_delete_succeed', "forumdisplay.php?fid=$fid");
                } else {
                        showmessage('post_edit_succeed', $redirecturl);
                }
        }[/code]
上面加
[code]
        require_once DISCUZ_ROOT.'./include/cache.func.php';
        updatecache(array('newtopic','newreply'));[/code]

5. include/counter.inc.php 找
[code]
if(!$sessionexists) {
        if(strpos($visitor['agent'], 'Netscape')) {
                $visitor['browser'] = 'Netscape';
        } elseif(strpos($visitor['agent'], 'Lynx')) {
                $visitor['browser'] = 'Lynx';
        } elseif(strpos($visitor['agent'], 'Opera')) {
                $visitor['browser'] = 'Opera';
        } elseif(strpos($visitor['agent'], 'Konqueror')) {
                $visitor['browser'] = 'Konqueror';
        } elseif(strpos($visitor['agent'], 'MSIE')) {
                $visitor['browser'] = 'MSIE';
        } elseif(substr($visitor['agent'], 0, 7) == 'Mozilla') {
                $visitor['browser'] = 'Mozilla';
        } else {
                $visitor['browser'] = 'Other';
        }

        if(strpos($visitor['agent'], 'Win')) {
                $visitor['os'] = 'Windows';
        } elseif(strpos($visitor['agent'], 'Mac')) {
                $visitor['os'] = 'Mac';
        } elseif(strpos($visitor['agent'], 'Linux')) {
                $visitor['os'] = 'Linux';
        } elseif(strpos($visitor['agent'], 'FreeBSD')) {
                $visitor['os'] = 'FreeBSD';
        } elseif(strpos($visitor['agent'], 'SunOS')) {
                $visitor['os'] = 'SunOS';
        } elseif(strpos($visitor['agent'], 'OS/2')) {
                $visitor['os'] = 'OS/2';
        } elseif(strpos($visitor['agent'], 'AIX')) {
                $visitor['os'] = 'AIX';
        } elseif(preg_match("/(Bot|Crawl|Spider)/i", $visitor['agent'])) {
                $visitor['os'] = 'Spiders';
        } else {
                $visitor['os'] = 'Other';
        }[/code]
替換為
[code]
if (!$sessionexists || $discuz_uid) {
if (ereg("MSIE ([0-9.]+)", $visitor['agent'], $browser)) {
                $browser_ver = $browser[1];
                $visitor_browser = "Internet Explorer " . $browser_ver;
                $visitor['browser'] = 'MSIE';
        } elseif (ereg("Firefox/([0-9.]+)", $visitor['agent'], $browser)) {
                $browser_ver = $browser[1];
                $visitor_browser = "Mozilla Firefox " . $browser_ver;
                $visitor['browser'] = 'Mozilla';
        } elseif (ereg("Version/([0-9.]+)([a-zA-Z0-9/ ]*) Safari/", $visitor['agent'], $browser)) {
                $browser_ver = $browser[1];
                $visitor_browser = "Apple Safari " . $browser_ver;
                $visitor['browser'] = 'Safari';
        } elseif (strpos($visitor['agent'], "Netscape")) {
                $visitor_browser = "Netscape";
                $visitor['browser'] = 'Netscape';
        } elseif (strpos($visitor['agent'], "Lynx")) {
                $visitor_browser = "Lynx";
                $visitor['browser'] = 'Lynx';
        } elseif (strpos($visitor['agent'], "Opera")) {
                $visitor_browser = "Opera";
                $visitor['browser'] = 'Opera';
        } elseif (strpos($visitor['agent'], "Konqueror")) {
                $visitor_browser = "Konqueror";
                $visitor['browser'] = 'Konqueror';
        } elseif (strpos($visitor['agent'], "Mozilla/5.0")) {
                $visitor_browser = "Mozilla";
                $visitor['browser'] = 'Mozilla';
        } else {
                $visitor_browser = "其它";
                $visitor['browser'] = 'Other';
        }
        if (strpos($visitor['agent'], "NT 5.1")) {
                if (strpos($visitor['agent'], "SV1")){
                        $visitor_os = "Windows XP SP2";
                        $visitor['os'] = 'Windows';
                } else {
                        $visitor_os = "Windows XP";
                        $visitor['os'] = 'Windows';
                }
        } elseif (strpos($visitor['agent'], "NT 6.0")) {
                $visitor_os = "Windows Vista";
                $visitor['os'] = 'Windows';
        } elseif (strpos($visitor['agent'], "NT 5.2")) {
                $visitor_os = "Windows Server 2003";
                $visitor['os'] = 'Windows';
        } elseif (strpos($visitor['agent'], "NT 5")) {
                $visitor_os = "Windows 2000";
                $visitor['os'] = 'Windows';
        } elseif (strpos($visitor['agent'], "4.9")) {
                $visitor_os = "Windows ME";
                $visitor['os'] = 'Windows';
        } elseif (strpos($visitor['agent'], "NT 4")) {
                $visitor_os = "Windows NT 4.0";
                $visitor['os'] = 'Windows';
        } elseif (strpos($visitor['agent'], "98")) {
                $visitor_os = "Windows 98";
                $visitor['os'] = 'Windows';
        } elseif (strpos($visitor['agent'], "95")) {
                $visitor_os = "Windows 95";
                $visitor['os'] = 'Windows';
        } elseif (strpos($visitor['agent'], "Mac")) {
                $visitor_os = "Macintosh";
                $visitor['os'] = 'Macintosh';
        } elseif (strpos($visitor['agent'], "Linux")) {
                $visitor_os = "Linux";
                $visitor['os'] = 'Linux';
        } elseif (strpos($visitor['agent'], "Unix")) {
                $visitor_os = "Unix";
                $visitor['os'] = 'Other';
        } elseif (strpos($visitor['agent'], "FreeBSD")) {
                $visitor_os = "FreeBSD";
                $visitor['os'] = 'FreeBSD';
        } elseif (strpos($visitor['agent'], "SunOS")) {
                $visitor_os = "SunOS";
                $visitor['os'] = 'SunOS';
        } elseif (strpos($visitor['agent'], "OS/2")) {
                $visitor_os = "OS/2";
                $visitor['os'] = 'OS/2';
        } elseif (strpos($visitor['agent'], "AIX")) {
                $visitor_os = "AIX";
                $visitor['os'] = 'AIX';
        } elseif (preg_match("/(Bot|Crawl|Spider)/i", $visitor['agent'])) {
                $visitor_os = "Spiders";
                $visitor['os'] = 'Spiders';
        } else {
                $visitor_os = "其它";
                $visitor['os'] = 'Other';
        }[/code]
6. topicadmin.php 找 [color=red]( 約第 15 行那句 )[/color]
[code]
require_once DISCUZ_ROOT.'./include/misc.func.php';
[/code]
下面加
[code]
require_once DISCUZ_ROOT.'./include/cache.func.php';
[/code]
6a. 再找
[code]
showmessage((isset($resultarray['message']) ? $resultarray['message'] : 'admin_succeed'), $resultarray['redirect']);
[/code]
上面加
[code]
updatecache(array('newreply','newtopic'));
[/code]
7. logging.php 找
[code]
$sessionexists = 0;
[/code]
下面加
[code]
require_once DISCUZ_ROOT.'./include/cache.func.php';
updatecache('todayvisit');
[/code]
8. index.php 找
[code]
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
[/code]
下面加
[quote]
$today  = mktime (0,0,0,date("m")  ,date("d"),date("Y"));
$build_date = mktime (0,0,0,[color=red]9[/color],[color=red]1[/color],[color=red]2008[/color]);//[color=red]請修改後面的三個數字,分別代表您論壇運行第一天的日期:月,日,年。[/color]
$build_days = (int)(($today-$build_date)/(24*3600));
[/quote]
8a. 再找
[code]
$catlist = $forumlist = $sublist = $forumname = $collapseimg = $collapse = array();
[/code]
上面加
[code]
//-----------hack AL8 Info
if(!$statstatus && $discuz_uid){
require_once DISCUZ_ROOT.'./include/counter.inc.php';
$member_avatar = $db->result_first("SELECT avatar FROM {$tablepre}memberfields WHERE uid='$discuz_uid'");
        if(!$member_avatar){
                $member_avatar = "images/avatars/noavatar.gif";
        } else {
                list($width, $height) = getimagesize($member_avatar);
                $avatar['width'] = 150;
                $avatar['height'] = $avatar['width'] * $width / $height;
        }
}
require_once DISCUZ_ROOT.'./include/misc.func.php';
$mem_home = convertip($onlineip, $datadir = "./");
require_once DISCUZ_ROOT.'./forumdata/cache/cache_todayvisit.php';
$todayvisit = $_DCACHE['todayvisit']['0']['COUNT(*)'];
require_once DISCUZ_ROOT.'./forumdata/cache/cache_todaynewmems.php';
$todaynewmems = $_DCACHE['todaynewmems']['0']['COUNT(*)'];
@include './forumdata/cache/cache_newtopic.php';
@include './forumdata/cache/cache_newreply.php';
//-----------hack AL8 Info End
[/code]
8b. 再找
[quote][color=red]'forumlinks', 'birthdays'[/color][/quote]
在後面加
[quote][color=blue], 'foruminfo'[/color][/quote]

[quote][color=red]'forumlinks', 'birthdays'[/color][color=blue], 'foruminfo'[/color][/quote]
9. register.php 找
[code]
$_DCACHE['settings']['totalmembers']++;
[/code]
上面加
[code]
updatecache('todaynewmems');
[/code]
10. 各風格 discuz.htm 找
[code]
<div id="foruminfo">
        <div id="userinfo">
                <div id="nav">
                        <!--{if $gid || !$discuz_uid}--><a href="$indexname">$bbname</a><!--{/if}-->
                </div>
                <p>
                <!--{if $discuz_uid}-->
                        <!--{if $allowinvisible}-->{lang online_status}:
                        <span id="loginstatus"><!--{if !empty($invisible)}--><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">{lang login_invisible_mode}</a><!--{else}--><a href="member.php?action=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');doane(event);">{lang login_normal_mode}</a><!--{/if}--></span><br />
                        <!--{/if}-->
                        {lang your_lastvisit}: <em>$lastvisittime</em>
                        <!--{if !empty($google) && ($google & 1)}--><br /><!--{/if}-->
                        <a href="search.php?srchfrom=$newthreads&searchsubmit=yes">{lang show_newthreads}</a>
                        <a href="member.php?action=markread" id="ajax_markread" onclick="ajaxmenu(event, this.id)">{lang mark_read}</a>
                <!--{elseif !empty($_DCOOKIE['loginuser'])}-->
                        <em>$_DCOOKIE['loginuser']</em>, <a href="logging.php?action=login">{lang index_activation}</a>
                <!--{else}-->
                        <form id="loginform" method="post" name="login" action="logging.php?action=login&loginsubmit=true">
                                <input type="hidden" name="formhash" value="{FORMHASH}" />
                                <input type="hidden" name="cookietime" value="2592000" />
                                <input type="hidden" name="loginfield" value="username" />
                                <input type="text" id="username" name="username" size="15" maxlength="40" tabindex="1" value="{lang username}" onclick="this.value = ''" />
                                <input type="password" id="password" name="password" size="10" tabindex="2" onkeypress="if((event.keyCode ? event.keyCode : event.charCode) == 13) $('loginform').submit()" />
                                <button name="userlogin" type="submit" value="true">{lang login}</button>
                        </form>
                <!--{/if}-->
                </p>
        </div>

        <div id="forumstats">
                <p>
                        {lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_maxday}: <em>$postdata[1]</em>   <a href="digest.php">{lang digest}</a>
                        <!--{if $rssstatus}--><a href="rss.php?auth=$rssauth" title="{lang rss_subscribe_all}" target="_blank"><img src="images/common/xml.gif" alt="{lang rss_subscribe_all}" /></a><!--{/if}-->
                </p>
                <p>{lang index_threads}: <em>$threads</em>, {lang index_posts}: <em>$posts</em>, {lang index_members}: <em>$totalmembers</em>, {lang welcome_newmember} <cite><a href="space.php?username=$memberenc">$lastmember</a></cite></p>
        </div>
        <!--{if !empty($google) && ($google & 1)}-->
                <div id="headsearch" style="clear: both">
                <script type="text/javascript" src="forumdata/cache/google_var.js"></script>
                <script type="text/javascript" src="include/javascript/google.js"></script>
                </div>
        <!--{/if}-->
</div>

<!--{if empty($gid) && $announcements}-->
        <div id="announcement" onmouseover="annstop = 1" onmouseout="annstop = 0">
                <div id="announcementbody"><ul>$announcements</ul></div>
        </div>
        <script type="text/javascript">
                var anndelay = 3000;
                var annst = 0;
                var annstop = 0;
                var annrowcount = 0;
                var anncount = 0;
                var annlis = $('announcementbody').getElementsByTagName("LI");
                var annrows = new Array();
                var annstatus;

                function announcementScroll() {
                        if(annstop) {
                                annst = setTimeout('announcementScroll()', anndelay);
                                return;
                        }
                        if(!annst) {
                                var lasttop = -1;
                                for(i = 0;i < annlis.length;i++) {

                                        if(lasttop != annlis[i].offsetTop) {
                                                if(lasttop == -1) {
                                                        lasttop = 0;
                                                }
                                                annrows[annrowcount] = annlis[i].offsetTop - lasttop;
                                                annrowcount++;
                                        }
                                        lasttop = annlis[i].offsetTop;
                                }

                                if(annrows.length == 1) {
                                        $('announcement').onmouseover = $('announcement').onmouseout = null;
                                } else {
                                        annrows[annrowcount] = annrows[1];
                                        $('announcementbody').innerHTML += '<br style="clear:both" />' + $('announcementbody').innerHTML;
                                        annst = setTimeout('announcementScroll()', anndelay);
                                }
                                annrowcount = 1;
                                return;
                        }

                        if(annrowcount >= annrows.length) {
                                $('announcementbody').scrollTop = 0;
                                annrowcount = 1;
                                annst = setTimeout('announcementScroll()', anndelay);
                        } else {
                                anncount = 0;
                                announcementScrollnext(annrows[annrowcount]);
                        }
                }

                function announcementScrollnext(time) {
                        $('announcementbody').scrollTop++;
                        anncount++;
                        if(anncount != time) {
                                annst = setTimeout('announcementScrollnext(' + time + ')', 10);
                        } else {
                                annrowcount++;
                                annst = setTimeout('announcementScroll()', anndelay);
                        }
                }
        </script>
<!--{/if}-->
[/code]
替換為
[code]
<div id="nav">
<a href="index.php">$bbname</a><!--{if $gid || !$discuz_uid}--><!--{else}--> - <a href="space.php?action=viewpro&uid=$discuz_uid" id="creditlist" title="個人資料">$discuz_user</a> <!--{/if}-->
</div>
<!--{if empty($gid)}-->
{template foruminfo}
<!--{/if}-->
[/code]
11. 各風格 css_append.htm 在最下方加入
[code]
*/
#announcement div {
        border-top: none;
        padding: 0px 10px;
        line-height: 35px !important;
        height: 36px;
        overflow-y: hidden;
}
#styleswitcher_a_menu { overflow: visible; }
#styleswitcher_a_menu, #styleswitcher_a_menu ul li, #styleswitcher_a_menu ul li.current a, #styleswitcher_a_menu ul li a {
        white-space: nowrap;
}
#styleswitcher_a_menu ul li.current { font-weight: bold; }
#styleswitcher_a_menu ul li.current a { color: {TEXT}; }
#styleswitcher_a_menu {}
#styleswitcher_a_menu li.current { font-weight: bold; }
.listinfo p {line-height: 1.3em; }
.listinfo a { color: {TEXT}; }
.listinfo th { vertical-align: top; color:{TEXT}; text-align: left; }
.listinfo cite { font: 1em Lucia Console; font-weight: bold; }
.listinfo strong { font-weight: bold; }
.listinfo th.rborder { border-right: 1px solid {CATBORDER}; }
button.submitmini { margin-left: 0.5em; padding: 0 2px; }
#loginstatus { font-weight: normal; }
span.bold { font-weight: bold; }
[/code]
12. actions.lang.php 在適當位置加入
[code]
        25 => '查看今日到訪會員列表',
[/code]
13. 下載附件 foruminfo.rar 及解壓後將
todayvisit.php
todayvisit.htm
foruminfo.htm
上傳至論壇相關位置 !

14. 打開 foruminfo.htm 依論壇設定請自行調整以下
[code]
來自 $mem_home 的訪客, 現{lang register}成為會員即獲贈現金 100 點, 用作參予本討論區的活動之用。
[/code]
~ 手動修改結束 ~

[[i] 本帖最後由 Cutthroat 於 2008-8-26 12:55 編輯 [/i]]

2008-8-6 23:20 Cutthroat
首頁四格 For Discuz 6.1F 簡體中文 GBK

手動若有需要時再貼出 暫時提供免修改 hack !

供剛升級完或新論壇使用 !

[[i] 本帖最後由 Cutthroat 於 2008-8-26 12:58 編輯 [/i]]

2008-8-6 23:36 銘milo
支持:em32:

2008-8-6 23:47 銘milo
裝左:em32:
[url=http://macaus.net/index.php]http://macaus.net/index.php[/url]

不過呢佢系統同瀏覽器戈到顯示唔到VISTA同IE7

2008-8-6 23:59 ericb001
同我發果個功能上有咩分別

2008-8-7 00:15 Cutthroat
[quote]原帖由 [i]銘milo[/i] 於 2008-8-6 23:47 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1250859&ptid=151277][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
裝左:em32:
[url]http://macaus.net/index.php[/url]
不過呢佢系統同瀏覽器戈到顯示唔到VISTA同IE7 [/quote]
並沒有你所說的問題 ! 請見附圖 !
[quote]原帖由 [i]ericb001[/i] 於 2008-8-6 23:59 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1250863&ptid=151277][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
同我發果個功能上有咩分別 [/quote]
是與你的沒有什麼不同, 但你仔細看還是有不同處的 !

另外, 以你的方式去改後, IE6 下左下方會出現感嘆號 ! 你可以試試 !

我估計是 discuz.htm & foruminfo.htm 有出問題 !

我依照我的修改方式在 IE6 下並無感嘆號出現 !

2008-8-7 12:48 Cutthroat
回覆 #4 銘milo 的帖子

抱歉, 是我檔案放錯了 !

請重新下載 foruminfo.rar

將檔案中 counter.inc.php 上傳 !

2008-8-7 20:45 andylis93
謝謝分享喔 學藝不精 -.- :em41:

2008-8-9 00:45 Cutthroat
回覆 #8 andylis93 的帖子

學藝不精 :em36: :em36:

2008-8-12 09:56 vincent5069
BUGS

當輸入簡體字標題時, 首頁四格有爛字,
其他地方卻正常...

可唔可以攪攪佢, thx

2008-8-18 22:33 lynn917
謝謝喔!雖然不知道該怎麼用好~~~

2008-8-21 22:34 xjko
Warning: Cannot modify header information - headers already sent by (output started at /home/parfait/domains/parfait-x.net/public_html/test/index.php:1) in /home/parfait/domains/parfait-x.net/public_html/test/include/global.func.php on line 322

點解會咁既....
裝完發覺有錯,已還原晒...
都仲係咁~~:em35:

2008-8-22 01:23 藍月兒
先支持 後安裝

2008-8-26 12:59 Cutthroat
有須要簡體中文 GBK 版本請至第 #2 帖下載 ! :em09:

2008/08/26 新增

2008-8-26 17:04 andylis93
回覆 #9 Cutthroat 的帖子

抱歉 我說我學亦不精:em46:

2008-8-29 10:40 vul3gjo4xu06
請問foruminfo_GBK要複製到哪邊貼上呢?
我收尋我的電腦都找不到admin或include
請問有人能幫我嗎?
能給我正確的路徑
謝謝

2008-8-31 11:47 ab851125
回覆 #1 Cutthroat 的帖子

我的問題是

1論壇時間-163天

2照你的方法系統也沒辦法顯示

3發表新文章沒有顯示出來

2008-9-10 18:38 +_.偉仔
我做足晒你講D野
首頁幾左空白
(我試過自己改+免安裝)
都係空白左
冇理由會改錯

2008-9-10 19:36 kam7680
唔得既= =
點解會咁
解答我:em37: :em41:

跟足左部驟

2008-10-13 14:42 神三
[quote]原帖由 [i]Cutthroat[/i] 於 2008-8-6 10:49 PM 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1250816&ptid=151277][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
首頁四格(繁體無錯版) For Discuz 6.1F
作者:alan888
DZ6.1F 修改:Cutthroat
適用版本:Discuz 6.1F
修改文件:
index.php
logging.php
topicadmin.php
include/newthread.inc.php
include/newre ... [/quote]
有冇唔係新安論壇版呀?

2008-10-13 15:59 Cutthroat
回覆 #20 神三 的帖子

那就使用手動修改 ! 原帖已有提供 !

2008-10-14 15:29 神三
[quote]原帖由 [i]Cutthroat[/i] 於 2008-10-13 03:59 PM 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1286057&ptid=151277][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
那就使用手動修改 ! 原帖已有提供 ! [/quote]
按 #1 的方法 ?

2008-10-17 15:04 Cutthroat
回覆 #22 神三 的帖子

是的, 依所需選擇手動或覆蓋 !

2008-11-16 20:38 靈魂
無法正常顯示新訊息...
請問該修改哪兒?

[quote]系統:Windows XP SP2

瀏覽器:Internet Explorer 6.0

新短消息: 共 條[/quote]

頁: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.