Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก
ค้นหา
คำค้นยอดนิยม: ภาษาไทย discuz
Discuz! X2.5 Official VersionDiscuz X2.5 Thai Mr.JakVDO อัพเกรดดิสคัส 2.5
ดู: 1690|ตอบกลับ: 7

[A/M/H6.1] new wowo toplist for dz 6.1

[คัดลอกลิงก์]

106

กระทู้

4

ติดตาม

2151

เครดิต

ผู้ช่วยผู้จัดการ

Rank: 8Rank: 8

สิทธิ์ในการอ่าน
150
UID
2084
เครดิต
2151
จิตพิศัย
2151
Money
1330
Gold
49
โพสต์
2418
กระทู้
106
ลงทะเบียนเมื่อ
2008-4-13
ลงชื่อเข้าใช้ล่าสุด
2012-5-23

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

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

ผมก็เลยทำการแก้ปัญหาที่สองนี้ซะ เสร็จแล้วก็เลยเอามาแบ่งกันใช้

ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง

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

เปิดจองสกินดิสคัส สวยๆ งามๆ เทพๆ  คลิกเลย! ให้ไว เดี๋ยวไม่ทัน

106

กระทู้

4

ติดตาม

2151

เครดิต

ผู้ช่วยผู้จัดการ

Rank: 8Rank: 8

สิทธิ์ในการอ่าน
150
UID
2084
เครดิต
2151
จิตพิศัย
2151
Money
1330
Gold
49
โพสต์
2418
กระทู้
106
ลงทะเบียนเมื่อ
2008-4-13
ลงชื่อเข้าใช้ล่าสุด
2012-5-23

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 อัพโหลดไฟล์ขึ้นโฮสต์ อัพเดทแคช เรียบร้อยครับง่ายๆ
เปิดจองสกินดิสคัส สวยๆ งามๆ เทพๆ  คลิกเลย! ให้ไว เดี๋ยวไม่ทัน

0

กระทู้

0

ติดตาม

259

เครดิต

Member

Rank: 2

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

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

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

106

กระทู้

4

ติดตาม

2151

เครดิต

ผู้ช่วยผู้จัดการ

Rank: 8Rank: 8

สิทธิ์ในการอ่าน
150
UID
2084
เครดิต
2151
จิตพิศัย
2151
Money
1330
Gold
49
โพสต์
2418
กระทู้
106
ลงทะเบียนเมื่อ
2008-4-13
ลงชื่อเข้าใช้ล่าสุด
2012-5-23

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 ]
เปิดจองสกินดิสคัส สวยๆ งามๆ เทพๆ  คลิกเลย! ให้ไว เดี๋ยวไม่ทัน

0

กระทู้

0

ติดตาม

2

เครดิต

Newbie

Rank: 1

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

บอกหน่อย

0

กระทู้

0

ติดตาม

33

เครดิต

Newbie

Do it !

Rank: 1

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

15

กระทู้

1

ติดตาม

803

เครดิต

ทีมแปลภาษา

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

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

0

กระทู้

0

ติดตาม

16

เครดิต

Newbie

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-5-24 13:18 , Processed in 0.082102 second(s), 8 queries , Memcache On.

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

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