Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก

ข้อตกลงการใช้งานกระดานข่าวดิสคัสไทย DiscuzThai Agreement (English Version) ประกาศดิสคัสไทย - ทำเนียบดิสคัสภาษาไทย

Discuz! X3.5 Thai R20231001 Rev.8 (NEW) [วิดีโอช่วยสอน] อัปเกรด Discuz! X3.4 เป็น X3.5 Discord ของ Discuz! Thai Community อย่างเป็นทางการ

Discuz! X3.4 Thai R20220811 (REV.75) สิ้นสุดการสนับสนุน Discuz! X3.4 ภาษาไทยตั้งแต่วันนี้เป็นต้นไป (ขอแนะนำให้อัปเกรดเป็น X3.5 แทน)

ค้นหา
แท็กยอดนิยม: ดิสคัสภาษาไทย Discuz Thai
ดู: 2757|ตอบกลับ: 4

ลง index.phpสกินสวยๆ สี เทา+ขาว ดีไซน์หรูหรา!!ไม่ได้

[คัดลอกลิงก์]
myminte โพสต์ 2010-1-17 22:33:37 |โหมดอ่าน
วานผู้รู้ดูให้หน่อย
hiphop111 โพสต์ 2010-1-17 22:44:18
อัพไฟล์ index.php ถ้ารูปไม่ขึ้น ก็ไปที่
admincp >> เครื่องมือ >> ตัวช่วยจาวาสคริปท์ >> นำเข้า (ไฟล์ discuz_request_20100114.xml นี้ครับ)
 เจ้าของ| myminte โพสต์ 2010-1-17 22:47:42
อัพไฟล์ index.php ถ้ารูปไม่ขึ้น ก็ไปที่
admincp >> เครื่องมือ > ...
ต้นฉบับโพสต์โดย hiphop111 เมื่อ 2010-1-17 22:44



    นำเข้าเรียบร้อยแล้วครับก็ไม่ได้
 เจ้าของ| myminte โพสต์ 2010-1-17 23:15:35
ตอบกลับ 2# hiphop111


    ถ้าอัพไฟล์ index แล้วมันจะ error เหมือนในตัวอย่างดังภาพ
suthida โพสต์ 2010-1-18 12:00:15
วานผู้รู้ดูให้หน่อย
ต้นฉบับโพสต์โดย myminte เมื่อ 2010-1-17 22:33


รองใช้วิธีนี้ค่ะ  เอา index.php ไว้เหมือนเดิมค่ะ ไม่ต้องแก้ไข

เปิดไฟล์ index_classics.inc.php อยู่ที่ include>index_classics.inc.php

ค้นหา
  1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
คัดลอกไปที่คลิปบอร์ด



เพิ่มโค๊ดนี้บรรทัดต่อไป
  1. //Yhome Play
  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'].','))

  9. continue;
  10.                         $fids[$k] = 2;
  11.                 }
  12.         }
  13. }
  14. if (count($fids) < 1){
  15.         $query = $db->query("SELECT fid FROM {$tablepre}forums WHERE type='forum' OR type='sub'");
  16.         while ($row = $db->fetch_array($query)){
  17.                 $fids[$row['fid']] = 2;
  18.         }
  19. }
  20. $limit_counts = 0;

  21. foreach ($fids as $k => $v){
  22.         $sql .= "(SELECT t.*, f.name FROM {$tablepre}threads t LEFT

  23. JOIN {$tablepre}forums f ON f.fid = t.fid WHERE t.fid='$k' ORDER BY

  24. t.dateline DESC LIMIT $v) UNION ";
  25. }
  26. if ($sql){
  27.         $sql = substr($sql,0,strlen($sql)-6);
  28. }
  29. $query = $db->query($sql);
  30. while ($row = $db->fetch_array($query)){
  31.         $row['view_subject'] = cutstr($row['subject'],$hack_cut_str);
  32.         $row['date']= gmdate("$dateformat", $row['dateline'] +

  33. $timeoffset * 3600);
  34.         if($row['highlight']) {
  35.                         $string = sprintf('%02d', $row['highlight']);
  36.                         $stylestr = sprintf('%03b', $string[0]);
  37.                         $row['highlight'] = 'style="';
  38.                         $row['highlight'] .= $stylestr[0] ? 'font-

  39. weight: bold;' : '';
  40.                         $row['highlight'] .= $stylestr[1] ? 'font-

  41. style: italic;' : '';
  42.                         $row['highlight'] .= $stylestr[2] ? 'text-

  43. decoration: underline;' : '';
  44.                         $row['highlight'] .= $string[1] ? 'color:

  45. '.$colorarray[$string[1]] : '';
  46.                         $row['highlight'] .= '"';
  47.         } else {
  48.                         $row['highlight'] = '';
  49.         }
  50.         ${'new_no'.$row['fid'].'_threadlist'}[] = $row;
  51. }
  52. //Yhome play
คัดลอกไปที่คลิปบอร์ด


จัดเก็บและอัพขึ้นตำแหน่งเดิมค่ะ  

ส่วนวิธีนำเข้า js เหมือนรุ่น 7.0 ทุกอย่างค่ะ ดูได้จากลิงค์นี้ค่ะ
http://www.discuzthai.com/thread-7104-1-2.html
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

รายชื่อผู้กระทำผิด|Archiver|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2024-6-11 05:50

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้