ฑีฆายุโก โหตุ มหาราชา

Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก
ค้นหา
คำค้นยอดนิยม: ภาษาไทยdiscuz
DiscuzX Patch 20110817 ThaiDiscuz X2 Thai Mr.JakDiscuz X2 Thai i~Designs
วิธีอัพเกรด Discuz! X2.0Discuz! Board คืออะไร???FAQ Discuz X
ดู: 1630|ตอบ: 7

[A/M/H6.1] new wowo toplist for dz 6.1 [คัดลอกลิงค์]

Rank: 8Rank: 8

สิทธิ์ในการอ่าน
150
UID
2084
เครดิต
2093
จิตพิศัย
2093
Money
1320
Gold
49
โพสต์
2341
กระทู้
100
สมัครสมาชิกเมื่อ
2008-4-13
เข้าสู่ระบบล่าสุด
2012-2-12

Medal No.1 Medal No.2 Medal No.3

โพสต์เมื่อ 2008-6-19 02:29:48 |แสดงโพสต์ทั้งหมด
โฮสสำหรับดิสคัสโดยเฉพาะ
จากกระทู้ของคุณ เบิร์ด ที่นี่ http://www.cazdesign.com/forums/thread-2939-1-1.html

ผมนำไปติดตั้งแล้วเกิดปัญหานิดหน่อยคือ รูปจากกระดานไม่แสดง และ ภาษาจีนยังไม่ได้แปล

ผมก็เลยทำการแก้ปัญหาที่สองนี้ซะ เสร็จแล้วก็เลยเอามาแบ่งกันใช้
ไฟล์แนบ: คุณจำเป็นต้องเข้าสู่ระบบก่อนจึงจะสามารถดูและดาวน์โหลดไฟล์แนบได้ หากยังไม่มีแอคเคานต์หรือยังไม่ได้เป็นสมาชิก กรุณาสมัครสมาชิก
เปิดจองสกินดิสคัส สวยๆ งามๆ เทพๆ  คลิกเลย! ให้ไว เดี๋ยวไม่ทัน

Rank: 8Rank: 8

สิทธิ์ในการอ่าน
150
UID
2084
เครดิต
2093
จิตพิศัย
2093
Money
1320
Gold
49
โพสต์
2341
กระทู้
100
สมัครสมาชิกเมื่อ
2008-4-13
เข้าสู่ระบบล่าสุด
2012-2-12

Medal No.1 Medal No.2 Medal No.3

โพสต์เมื่อ 2008-6-19 02:48:04 |แสดงโพสต์ทั้งหมด
การติดตั้งขออ้างอิงจากที่คุณเบิร์ดทำไว้นะครับ


วิธีติดตั้งนั้นง่ายๆ มากๆ แค่ 2ไฟล์ คือ index.php และ discuz.htm
เปิดไฟล์ index.php ขึ้นมาแล้วหา
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
วางโค้ดนี้ด้านล้าง
//----WOWO Toplist for 6.1 utf8 BY:WOWO
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
//
$hack_cut_str = 50; //
$hack_cut_strauthor = 10;
$new_post_threadlist = array();
$nthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESC LIMIT 0, 10");
while($nthread = $db->fetch_array($query)) {
        $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);
        $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
        $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
        $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
        $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 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;
}
//
$hack_cut_str = 50; //
$hack_cut_strauthor = 10;
$new_reply_threadlist = array();
$rthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid  AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.lastpost DESC LIMIT 0, 10");
while($rthread = $db->fetch_array($query)) {
        $rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);
        $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
        $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
                $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
        $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 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[] = $rthread;
}
//
$hack_cut_str = 70; //
$hack_cut_strauthor = 10;
$new_hot_threadlist = array();
$mthread = array();
$ctime=$timestamp-3600*24*7;//  
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid  AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>$ctime AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.replies DESC LIMIT 0, 10");
while($mthread = $db->fetch_array($query)) {
        $mthread['forumname'] = ereg_replace('<[^>]*>','',$mthread['name']);
        $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
        $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
                $mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
        $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));
        if($mthread['highlight']) {
                $string = sprintf('%02d', $mthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $mthread['highlight'] = 'style="';
                $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $mthread['highlight'] .= '"';
        } else {
                $mthread['highlight'] = '';
        }
        $new_hot_threadlist[] = $mthread;
}
//
$hack_cut_str = 70; //
$hack_cut_strauthor = 10;
$new_digest_threadlist = array();
$dthread = array();
$dtime=$timestamp-3600*24*30;//  
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid  AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>$dtime AND t.digest in (1,2,3) AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.replies DESC LIMIT 0, 10");
while($dthread = $db->fetch_array($query)) {
        $dthread['forumname'] = ereg_replace('<[^>]*>','',$dthread['name']);
        $dthread['view_subject'] = cutstr($dthread['subject'],$hack_cut_str);
        $dthread['view_lastposter'] = cutstr($dthread['lastposter'],$hack_cut_strauthor);
                $dthread['date']= gmdate("$dateformat $timeformat", $dthread['dateline'] + $timeoffset * 3600);
        $dthread['lastreplytime']= gmdate("$dateformat $timeformat", $dthread[lastpost] + ($timeoffset * 3600));
        if($dthread['highlight']) {
                $string = sprintf('%02d', $dthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $dthread['highlight'] = 'style="';
                $dthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $dthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $dthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $dthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $dthread['highlight'] .= '"';
        } else {
                $dthread['highlight'] = '';
        }
        $new_digest_threadlist[] = $dthread;
}
//
$today = array();
$query = $db->query("SELECT uid, username, posts FROM {$tablepre}members ORDER BY posts DESC LIMIT 10");
while($variable = $db->fetch_array($query)) {
        $today[] = array('uid'=>$variable['uid'], 'username'=>$variable['username'], 'posts'=>$variable[posts]);
}
//----WOWO Toplist for 6.1 utf8 BY:WOWO

เปิดไฟล์ discuz.htm ที่อยู่ใน templates\สกินที่คุณใช้งานปัจจุบัน
หา

<!--{else}--><div id="ad_text"></div><!--{/if}-->
วางโค้ดนี้ด้านล้าง คัดลอกไปที่คลิปบอร์ด
{template foruminfo}
Save อัพโหลดไฟล์ขึ้นโฮสต์ อัพเดทแคช เรียบร้อยครับง่ายๆ
เปิดจองสกินดิสคัส สวยๆ งามๆ เทพๆ  คลิกเลย! ให้ไว เดี๋ยวไม่ทัน

Rank: 2

สิทธิ์ในการอ่าน
20
UID
210
เครดิต
259
จิตพิศัย
259
Money
1488
Gold
263
โพสต์
331
กระทู้
0
สมัครสมาชิกเมื่อ
2007-11-13
เข้าสู่ระบบล่าสุด
2009-2-2
โพสต์เมื่อ 2008-6-20 11:00:36 |แสดงโพสต์ทั้งหมด

ตอบกลับโพสของ 1# i~Designs

โฮสสำหรับดิสคัสโดยเฉพาะ
-*-
ปัญหารูปแรก ไม่ถือว่าเป็นแญหาเลยนะ จะว่าได้ เพราะยังไม่ได้ใส่รูปไง หรือยังไม่ได้กำหนด pic.php ใหไปหารูป ถามีรูปจะแสดงปกติ fix เติมอิอิ ขอบคุณครับ เครดิต alan888 นะครับอิอิ
PHPWind 7 ---- www.wind.in.th
ดาวน์โหลดพีเอสพีวินด์ ---- http://www.pwblog.net/

Rank: 8Rank: 8

สิทธิ์ในการอ่าน
150
UID
2084
เครดิต
2093
จิตพิศัย
2093
Money
1320
Gold
49
โพสต์
2341
กระทู้
100
สมัครสมาชิกเมื่อ
2008-4-13
เข้าสู่ระบบล่าสุด
2012-2-12

Medal No.1 Medal No.2 Medal No.3

โพสต์เมื่อ 2008-6-20 11:23:46 |แสดงโพสต์ทั้งหมด
ต้นฉบับโพสโดย mastergtx เมื่อ 2008-6-20 11:00
-*-
ปัญหารูปแรก ไม่ถือว่าเป็นแญหาเลยนะ จะว่าได้ เพราะยังไม่ได้ใส่รูปไง หรือยังไม่ได้กำหนด pic.php ใหไปหารูป ถ ...


"ปัญหารูปแรก ไม่ถือว่าเป็นแญหาเลยนะ จะว่าได้ เพราะยังไม่ได้ใส่รูปไง "  ใส่แล้วคับ ถึงไม่ใส่ ถ้ามันใช้งานได้ปกติ ช่องที่โชวรูปจากกระดานมันจะใหญ่กว่านี้ ไม่ได้เป็นลักษณะนี้ ระดับเทพอย่างคุณคงรู้ดี ~(24)~~:1:~

[ แก้ไขล่าสุด i~Designs เมื่อ 2008-6-20 11:36 ]
เปิดจองสกินดิสคัส สวยๆ งามๆ เทพๆ  คลิกเลย! ให้ไว เดี๋ยวไม่ทัน

Rank: 1

สิทธิ์ในการอ่าน
10
UID
2992
เครดิต
2
จิตพิศัย
2
Money
27
Gold
0
โพสต์
56
กระทู้
0
สมัครสมาชิกเมื่อ
2008-6-14
เข้าสู่ระบบล่าสุด
2008-7-21
โพสต์เมื่อ 2008-6-20 23:37:47 |แสดงโพสต์ทั้งหมด
ทำไงให้มัน เกิน 2 รูปอ่าคับ

บอกหน่อย

Newbie

Do it !

Rank: 1

สิทธิ์ในการอ่าน
10
UID
9370
เครดิต
33
จิตพิศัย
33
Money
130
Gold
4
โพสต์
185
กระทู้
0
สมัครสมาชิกเมื่อ
2008-11-10
เข้าสู่ระบบล่าสุด
2010-6-16
โพสต์เมื่อ 2008-12-7 15:30:09 |แสดงโพสต์ทั้งหมด
ขอบคุณครับ~:1:~

ทีมแปลภาษา

ไม่มีความหมาย.... ...

สิทธิ์ในการอ่าน
175
UID
6449
เครดิต
798
จิตพิศัย
798
Money
6
Gold
5
โพสต์
530
กระทู้
14
สมัครสมาชิกเมื่อ
2008-9-29
เข้าสู่ระบบล่าสุด
2012-2-10
โพสต์เมื่อ 2008-12-15 00:14:30 |แสดงโพสต์ทั้งหมด
ใจงับๆๆๆๆๆๆๆๆ

Rank: 1

สิทธิ์ในการอ่าน
10
UID
13544
เครดิต
16
จิตพิศัย
16
Money
16
Gold
0
โพสต์
113
กระทู้
0
สมัครสมาชิกเมื่อ
2008-12-28
เข้าสู่ระบบล่าสุด
2010-11-24
โพสต์เมื่อ 2009-1-9 06:53:42 |แสดงโพสต์ทั้งหมด
สวยมากครับท่าน
คุณต้องเข้าสู่ระบบก่อนจึงจะสามารถตอบกลับ เข้าสู่ระบบ | สมัครสมาชิก

รูปแบบข้อความล้วน|โทรศัพท์มือถือ|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2012-2-13 10:01 , Processed in 0.037065 second(s), 13 queries , Gzip On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

ขึ้นไปด้านบน