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
ดู: 13992|ตอบกลับ: 20

หน้าฟอรั่มแสดงกระทู้ล่าสุด 5 อันดับ

[คัดลอกลิงก์]
trickstertik โพสต์ 2009-10-23 10:30:18 |โหมดอ่าน
Resource Name: Home straight row of landscaping For DZ 7.1
Version: Discuz! 7.1
Language codes: GBK UTF-8
The original author: 不详
Credit : http://bbs.7drc.com/thread-5040-1-1.html
Demo : www.parestz.com



เปิดไฟล์  include/index_classics.inc.php ค้นหา
  1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
คัดลอกไปที่คลิปบอร์ด
เพิ่มลงบรรทัดต่อไป
  1. //Post call the beginning
  2. $hack_cut_str =60; // Modify the title here, the length of
  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'].',')) continue;
  9.                         $fids[$k] = 5; // Here is the first call at the number of articles behind the needs and the same settings.
  10.                 }
  11.         }
  12. }
  13. if (count($fids) < 1){
  14.         $query = $db->query("SELECT fid FROM {$tablepre}forums WHERE type='forum' OR type='sub'");
  15.         while ($row = $db->fetch_array($query)){
  16.                 $fids[$row['fid']] = 5; // Here is the second call at the number of needs and the same as the previous settings.
  17.         }
  18. }
  19. $limit_counts = 0;
  20. foreach ($fids as $k => $v){
  21.         $sql .= "(SELECT t.*, f.name FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f.fid = t.fid WHERE t.fid='$k' ORDER BY t.dateline DESC LIMIT $v) UNION ";
  22. }
  23. if ($sql){
  24.         $sql = substr($sql,0,strlen($sql)-6);
  25. }
  26. $query = $db->query($sql);
  27. while ($row = $db->fetch_array($query)){
  28.         $row['view_subject'] = cutstr($row['subject'],$hack_cut_str);
  29.         $row['date']= gmdate("$dateformat", $row['dateline'] + $timeoffset * 3600);
  30.         if($row['highlight']) {
  31.                         $string = sprintf('%02d', $row['highlight']);
  32.                         $stylestr = sprintf('%03b', $string[0]);
  33.                         $row['highlight'] = 'style="';
  34.                         $row['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  35.                         $row['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  36.                         $row['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  37.                         $row['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  38.                         $row['highlight'] .= '"';
  39.         } else {
  40.                         $row['highlight'] = '';
  41.         }
  42.         ${'new_no'.$row['fid'].'_threadlist'}[] = $row;
  43. }
  44. //Call the end of the post
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ templates/default/css_common.htm ค้นหา
  1. .list th { background: url({IMGDIR}/forum.gif) 5px 10px no-repeat; padding-left: 45px !important; }
คัดลอกไปที่คลิปบอร์ด
เปลี่ยนเป็น
  1. .list th { background: url({IMGDIR}/forum.gif) 3px 17px no-repeat; padding-left: 15px !important; }
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ templates/default/discuz.htm ค้นหา
  1. <tbody id="forum$forum[fid]">
  2. จนถึง
  3. $cat['endrows']
คัดลอกไปที่คลิปบอร์ด
เปลี่ยนเป็น
  1. <tbody id="forum$forum[fid]">
  2. <tr>
  3. <td>
  4. $forum[icon]
  5. <div class="left">
  6. <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank" {/if}>$forum[name]</a> <font class="smalltext"><!--{if $forum[todayposts]}-->T: <font color="#FF3399">$forum[todayposts]</font><img src="{IMGDIR}/new.gif" align="absmiddle"><!--{else}-->T: <font color="#FF3399">0</font><!--{/if}--> P: <font color="#00CCFF">$forum[threads]</font> R: <font color="#99CC00">$forum[posts]</font></font> <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><img src="{IMGDIR}/moderator.gif" title="Forum Moderator" style="cursor:pointer" /> <em class="moderators" id="coll_1" style="display:none">$forum[moderators]</em><!--{/if}--><!--{/if}--></h2>
  7. <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
  8. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  9. </div>
  10. </td>
  11. <th class="forumlast"{$forum[folder]}>
  12. <!--{if $forum['permission'] == 1}-->
  13. {lang private_forum}
  14. <!--{else}-->
  15. <!--{if $forum['redirect']}-->
  16. <a href="forumdisplay.php?fid=$forum[fid]">{lang url_link}</a>
  17. <!--{elseif is_array($forum['lastpost'])}-->
  18. <p> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 26)}</a></p>
  19. <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
  20. <!--{else}-->
  21. {lang never}
  22. <p>{lang never}</p>
  23. <!--{/if}-->
  24. <!--{/if}-->
  25. </td>
  26. </tr>
  27. </tbody>
  28. <!--{/loop}-->
  29. <!--{else}-->
  30. <tr class="narrowlist">
  31. <!--{loop $cat['forums'] $forumid}-->
  32. <!--{eval $forum=$forumlist[$forumid];}-->
  33. <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  34. </tr></tbody>
  35. <!--{if $forum['orderid'] < $cat['forumscount']}-->
  36. <tbody><tr>
  37. <!--{/if}-->
  38. <!--{/if}-->
  39. <td width="$cat[forumcolwidth]" style="vertical-align: top; background-image: none; padding:8px !important;">
  40. <div style="width:100%; "><div style="float:left; "><h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank" {/if}>$forum[name]</a></h2></div><div style="float:right; "><!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><img src="{IMGDIR}/moderator.gif" title="论坛版主" style="cursor:pointer" /> <em class="moderators" id="coll_2" style="display:none">$forum[moderators]</em><!--{/if}--><!--{/if}-->
  41. <!--{if $forum[todayposts]}-->
  42. <!--{else}-->
  43. <!--{/if}--></div></div>
  44. <br>$forum[icon]
  45. <!--{if $forum[description]}--><div style="width:100%; ">$forum[description]</div><!--{/if}-->
  46. <!--{if $forum['subforums']}--><div style="width:100%; ">{lang forum_subforums}: $forum['subforums']</div><!--{/if}-->
  47. <!--{if $forum[todayposts]}-->Today: <font color="#FF3399">$forum[todayposts]</font><img src="{IMGDIR}/new.gif" align="absmiddle"><!--{else}-->Today: <font color="#FF3399">0</font><!--{/if}--> Post: <font color="#00CCFF">$forum[threads]</font> Reply: <font color="#99CC00">$forum[posts]</font></font><br /><br />
  48. <ul style="background-image: url(images/listbg_li.gif); padding:1px 2px 0px 10px; list-style-type: none; line-height: 20px; clear: both; margin:8px 0; ">
  49. <!--{loop ${"new_no".$forum[fid]."_threadlist"} $row}-->
  50. <div style="overflow: hidden; height:20px; width:100%"><small style="float:right; color:#9C8B88; margin: 0 0 0 5px">$row['date']</small><a href="viewthread.php?tid=$row[tid]" title="$row[subject]" target='_self'>$row[view_subject]</a></div>
  51. <!--{/loop}-->
  52. </ul>
  53. </td>
  54. <!--{/loop}-->
  55. $cat['endrows']
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ templates/default/forumdisplay_subforum.htm ค้นหา
  1. <!--{if !$forum['forumcolumns']}-->
  2. จนถึง
  3. <!--{loop $sublist $sub}-->
คัดลอกไปที่คลิปบอร์ด
เปลี่ยนเป็น
  1. <!--{if !$forum['forumcolumns']}-->
  2. <!--{loop $sublist $sub}-->
  3. <tbody>
  4. <tr>
  5. <td>
  6. $sub[icon]
  7. <div class="left">
  8. <h2><a href="forumdisplay.php?fid=$sub[fid]" {if $sub[redirect]}target="_blank"{/if}>$sub[name]</a> <font class="smalltext"><!--{if $sub[todayposts] && !$sub['redirect']}-->今日: <font color="#FF3399">$forum[todayposts]</font><img src="{IMGDIR}/new.gif" align="absmiddle"><!--{else}-->今日: <font color="#FF3399">0</font><!--{/if}--> 主题: <font color="#00CCFF">$forum[threads]</font> 回复: <font color="#99CC00">$forum[posts]</font></font> <!--{if $sub['moderators']}--><!--{if $moddisplay == 'flat'}--><img src="{IMGDIR}/moderator.gif" title="论坛版主" style="cursor:pointer" /> <em class="moderators" id="coll_3" style="display:none">$forum[moderators]</em><!--{/if}--><!--{/if}--></h2>
  9. <!--{if $sub[description]}--><p>版块介绍: $sub[description]</p><!--{/if}-->
  10. <!--{if $sub['subforums']}--><p>{lang forum_subforums}: $sub['subforums']</p><!--{/if}-->
  11. </div>
  12. </td>
  13. <th class="forumlast"{$forum[folder]}>
  14. <!--{if $sub['permission'] == 1}-->
  15. {lang private_forum}
  16. <!--{else}-->
  17. <!--{if $sub['redirect']}-->
  18. <a href="forumdisplay.php?fid=$sub[fid]">{lang url_link}</a>
  19. <!--{elseif is_array($sub['lastpost'])}-->
  20. <p>最新主题: <a href="redirect.php?tid=$sub[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($sub[lastpost][subject], 20)}</a></p>
  21. <cite><!--{if $sub['lastpost']['author']}-->作者相关: $sub['lastpost']['author']<!--{else}-->作者相关: {lang anonymous}<!--{/if}--> - $sub[lastpost][dateline]</cite>
  22. <!--{else}-->
  23. 最新主题: {lang never}
  24. <p>作者相关: {lang never}</p>
  25. <!--{/if}-->
  26. <!--{/if}-->
  27. </td>
  28. </tr>
  29. </tbody>
  30. <!--{/loop}-->
  31. <!--{else}-->
  32. <tr class="narrowlist">
  33. <!--{loop $sublist $sub}-->
คัดลอกไปที่คลิปบอร์ด
ไฟล์รูปที่ต้องใช้ อัพไปตามตำแหน่งเลยครับ

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

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

x

คะแนน

จำนวนผู้เข้าร่วม 6จิตพิศัย +10 Money +5 ย่อ เหตุผล
doraemon8296 + 1
sumet + 1 สุดยอดมากเลยครับ ...
[~DREAM~] + 1
suthida + 5 + 5 เยี่ยมค่ะ
mza + 1 เยี่ยมมาก ขอบคุณครับ ...

ดูบันทึกคะแนน

THEZEN โพสต์ 2009-10-24 05:54:23
แก้ไขล่าสุด THEZEN เมื่อ 2009-10-24 05:56

ขอบคุณมากครับ  7.0 ใช้ได้ไหมครับ

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

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

x
mza โพสต์ 2009-10-24 12:54:17
ขอบคุณครับบบ...{:18_789:}
suthida โพสต์ 2009-10-24 14:57:58
เยี่ยมค่ะ {:21_830:} ขอบคุณค่ะ
sangvichai โพสต์ 2009-10-24 17:37:57
อยากใช้กับ 7.0 อะ T-
DragoNKing โพสต์ 2009-10-26 20:53:45
ขอคำตอบหน่อยครับ 7.0 ใช้ได้ไหมครับ ผมไม่อยากลองเอง
เน่ามาแล้วที เข็ด 55+ เพราะ 7.1 นั่นแหละ รอมันใช้การดีก่อน
เดะอัพเดทตามไป
banksanti โพสต์ 2009-11-4 02:42:31
ขอคำตอบหน่อยครับ 7.0 ใช้ได้ไหมครับ ผมไม่อยากลองเอง
เน่ามาแล้วที เข็ด 55+ เพราะ 7.1 นั่นแหละ รอมันใช้การดีก่อน
...
ต้นฉบับโพสโดย DragoNKing เมื่อ 2009-10-26 20:53



7.0 มาที่นี่เลย http://www.discuzthai.com/thread-10418-1-1.html

ถ้าอยากให้เหมือนก็โหลดไฟล์แนบในกระทู้ของคุณ trickstertik มาด้วยก็ได้

สมมุติถ้าภาษามันเพี้ยนก็ก็อปโค้ดมาวางไว้ใน Dream ก่อนด้วยก็กด Modify >> Page >>  Properties >> ในช่อง  Category  ให้กดที่ Title/Encoding เลือกเป็น  
จากนั้นในช่อง Encoding ให้เลือกเป็น Unicode(UTF-8)  แล้วก็คลิก OK เป็นอันเสร็จ

จากนั้นก็สามารถก็อปไปวางได้เลย
sangvichai โพสต์ 2009-11-7 16:06:10
คือ แถว5 แถวมันไม่ขึ้นอะ
sumet โพสต์ 2009-11-8 20:19:26
ขอบคุณมากครับ
sumet โพสต์ 2009-11-8 20:22:46
คือ แถว5 แถวมันไม่ขึ้นอะ
ต้นฉบับโพสโดย sangvichai เมื่อ 2009-11-7 16:06

ของผมก็ไม่แสดงเหมือนกัน เอ...เราผิดตรงไหนนะ
ก็ทำตามหมดแล้วนี่นา
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

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

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

GMT+7, 2024-4-26 15:42

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

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