ข่าวประชาสัมพันธ์

มาร่วมเป็นกำลังใจให้เว็บด้วยการสมัครสมาชิกวีไอพี ~~ เลือกปีที่ท่านต้องการได้โดยไม่ต้องเรียงปี ~~ ปีละ 350 บาท สมัคร 2 ปีลดเหลือ 600 บาท ~~ มีไลน์กลุ่ม VIP จำนวนหลายร้อยท่าน เอาไว้ปรึกษางานซ่อม ~~ เข้าถึงข้อมูลด้านเทคนิค ข้อมูลเชิงลึกมากมาย.....


ผู้เขียน หัวข้อ: เปลี่ยน Icon หน้าบอร์ด Board Icons SMF  (อ่าน 3191 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออนไลน์ Auto Man

  • Administrator
  • หัวหน้าศูนย์ซ่อมสร้าง
  • *****
  • เจ้าของกระทู้
  • Joined: ก.ย. 2558
  • กระทู้: 37519
  • สมาชิกลำดับที่ : 1
  • เพศ: ชาย
  • มือผู้ให้ย่อมสูงกว่ามือผู้รับ
    • เว็บชุมชนคนรักช่างยนต์
    • อีเมล์
เปลี่ยน Icon หน้าบอร์ด Board Icons SMF
« เมื่อ: 18 กุมภาพันธ์ 2559, 13:37:57 »
  • ขึ้นบน
  • ลงล่าง
  • มาจากกระทู้นี้

    ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
    สวัสดีคุณ...ผู้เยี่ยมชม  กด ❤ ถูกใจโพสท์นี้ หรือยัง...
    ต้องการสมัครสมาชิก VIP สมัครได้ที่นี่...   หรือทาง Line ID: k.sonchai

    ออนไลน์ Auto Man

    • Administrator
    • หัวหน้าศูนย์ซ่อมสร้าง
    • *****
    • เจ้าของกระทู้
    • Joined: ก.ย. 2558
    • กระทู้: 37519
    • สมาชิกลำดับที่ : 1
    • เพศ: ชาย
    • มือผู้ให้ย่อมสูงกว่ามือผู้รับ
      • เว็บชุมชนคนรักช่างยนต์
      • อีเมล์
    เปลี่ยน Icon หน้าบอร์ด Board Icons SMF
    « ตอบกลับ #1 เมื่อ: 29 เมษายน 2559, 10:21:26 »
  • ขึ้นบน
  • ลงล่าง
  • เป็น Mod ที่ใช้เปลี่ยน icon ของบอร์ดให้เป็นรูปภาพสื่อความหมายของบอร์ดนั้นๆ ใช้ได้หลายเวอร์ชั่น ดูรูปภาพตัวอย่างที่ไฟล์แนบ

    Mod Name: cbi v0.5 (Custom Board Icons)
    Created By: Bigguy
    Latest Version: cbi175
    Compatible With: 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.12, 1.1.14, 2.0 Beta 3 Public, 2.0 Beta 3.1 Public, 2.0 RC1-1, 2.0 RC2, 2.0 RC4, 2.0 RC5, 2.0, 2.0.1, 2.0.2
    ดาวน์โหลดได้ที่
    http://custom.simplemachines.org/mods/index.php?mod=511

    ติดตั้งแล้วให้ไปสร้างโฟล์เดอร์ของบอร์ด
    webboard & forum/Themes/defaultธีมที่ใช้ปัจจุบัน/images/icons/1/on.png
    1 คือโฟลเดอร์ของบอร์ด ให้เอาเมาท์ไปชี้ที่ icon board จะเห็นพาธไฟล์ของบอร์ด
    หรือคลิกเข้าไปที่บอร์ดก็จะเห็น number ของบอร์ด
    ตัวอย่าง คลิกที่บอร์ด We Love The King จะได้พาธไฟล์ของบอร์ดดังนี้
    http://www.welovethailand.com/webboard/index.php/board,10.0.html
    board,10.0.html << เอาเลข 10 ไปสร้างเป็นชื่อของโฟล์เดอร์ แล้วสร้างภาพชื่อ on.png ,off.png ,on2.png
    (on2.png คือ บอร์ดย่อย) ใส่ไปในโฟล์เดอร์นั้น
     forum/Themes/default/images/icons/board_id/on.png
     forum/Themes/default/images/icons/board_id/on2.png
     forum/Themes/default/images/icons/board_id/off.png
    ***board_id*** คือ number ของบอร์ด

    ถ้าติดตั้ง mod และใส่โฟล์เดอร์รวมทั้งรูปแล้วไม่มีอะไรเกิดขึ้นให้ไปดูไฟล์ BoardIndex.template.php ที่ธีมปัจจุบันว่ามีโค้ดเติมเข้ามาถูกต้องหรือไม่

    ส่วนใหญ่ BoardIndex.template.php จะถูกติดตั้งเฉพาะธีม default

    ติดตั้งแบบแมนวล SMF 2.0.2

    เปิดไฟล์./Themes/default/BoardIndex.template.php
    Find: ค้นหา
    โค๊ด: [Select]
             /* Each board in each category's boards has:
             new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
             children (see below.), link_children (easier to use.), children_new (are they new?),
             topics (# of), posts (# of), link, href, and last_post. (see below.) */
             foreach ($category['boards'] as $board)
             {
                echo '
                <tr id="board_', $board['id'], '" class="windowbg2">
                   <td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>
                      <a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';

                // If the board or children is new, show an indicator.
                if ($board['new'] || $board['children_new'])
                   echo '
                         <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
                // Is it a redirection board?
                elseif ($board['is_redirect'])
                   echo '
                         <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                // No new posts at all! The agony!!
                else
                   echo '
                         <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

                echo '
                      [/url]
                   </td>

    Replace With: แทนที่ด้วย
    โค๊ด: [Select]
             /* Each board in each category's boards has:
             new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
             children (see below.), link_children (easier to use.), children_new (are they new?),
             topics (# of), posts (# of), link, href, and last_post. (see below.) */
             foreach ($category['boards'] as $board)
             {
                echo '
                <tr id="board_', $board['id'], '" class="windowbg2">
                   <td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>
                      <a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';
                // If the board or children is new, show an indicator.
                if ($board['new'] || $board['children_new'])
                {
                   if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'on.png'))
                      $board_new_img = '/icons/' . $board['id'];
                   else
                      $board_new_img = '';
                   echo '
                         <img src="', $settings['images_url'], $board_new_img, '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
                }
                // Is it a redirection board?
                elseif ($board['is_redirect'])
                {
                   if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'redirect.png'))
                      $board_redirect_img = '/icons/' . $board['id'];
                   else
                      $board_redirect_img = '';
                   echo '
                         <img src="', $settings['images_url'], $board_redirect_img, '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                }
                // No new posts at all! The agony!!
                else
                {
                   if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'off.png'))
                      $board_nonew_img = '/icons/' . $board['id'];
                   else
                      $board_nonew_img = '';
                   echo '
                         <img src="', $settings['images_url'], $board_nonew_img, '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
                }
                echo '
                      [/url]
                   </td>


    เปิดไฟล์ ./Themes/default/MessageIndex.template.php
    Find: ค้นหา
    โค๊ด: [Select]
             // If the board or children is new, show an indicator.
             if ($board['new'] || $board['children_new'])
                echo '
                         <img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
             // Is it a redirection board?
             elseif ($board['is_redirect'])
                echo '
                         <img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
             // No new posts at all! The agony!!
             else
                echo '
                         <img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

             echo '
                      [/url]
                   </td>
                   <td class="info">
                      <a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '[/url]';

    Replace With: แทนที่ทั้งหมด
    โค๊ด: [Select]
             // If the board or children is new, show an indicator.
             if ($board['new'] || $board['children_new'])
             {
                if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'on.png'))
                   $board_new_img = '/icons/' . $board['id'];
                else
                   $board_new_img = '';
                echo '
                         <img src="', $settings['images_url'], $board_new_img, '/' .$context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
             }
             // Is it a redirection board?
             elseif ($board['is_redirect'])
             {
                if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'redirect.png'))
                   $board_redirect_img = '/icons/' . $board['id'];
                else
                   $board_redirect_img = '';
                echo '
                         <img src="', $settings['images_url'], $board_redirect_img, '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
             }
             // No new posts at all! The agony!!
             else
             {
                if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'off.png'))
                   $board_nonew_img = '/icons/' . $board['id'];
                else
                   $board_nonew_img = '';
                echo '
                         <img src="', $settings['images_url'], $board_nonew_img, '/' .$context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
             }
             echo '
                      [/url]
                   </td>
                   <td class="info">
                      <a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '[/url]';
                

    นำมาถ่ายทอดอีกที โดย ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ

    ขอบคุณเจ้าของบทความต้นฉบับ และเพื่อนสมาชิกเว็บ www.auto-nkp.com ทุกท่านครับ
    « แก้ไขครั้งสุดท้าย: 29 เมษายน 2559, 10:24:49 โดย Auto Man »
    สวัสดีคุณ...ผู้เยี่ยมชม  กด ❤ ถูกใจโพสท์นี้ หรือยัง...
    ต้องการสมัครสมาชิก VIP สมัครได้ที่นี่...   หรือทาง Line ID: k.sonchai

    ออนไลน์ Auto Man

    • Administrator
    • หัวหน้าศูนย์ซ่อมสร้าง
    • *****
    • เจ้าของกระทู้
    • Joined: ก.ย. 2558
    • กระทู้: 37519
    • สมาชิกลำดับที่ : 1
    • เพศ: ชาย
    • มือผู้ให้ย่อมสูงกว่ามือผู้รับ
      • เว็บชุมชนคนรักช่างยนต์
      • อีเมล์
    เปลี่ยน Icon หน้าบอร์ด Board Icons SMF
    « ตอบกลับ #2 เมื่อ: 29 เมษายน 2559, 10:25:47 »
  • ขึ้นบน
  • ลงล่าง
  •    แต่รู้สึกว่าเว็บ www.auto-nkp.com ไม่ได้ใช้มอด หรือวิธีการนี้ ใช้วิธีแมนวล
    แต่ใช้มอดตัวนี้น่าจะสะดวกกว่า ไปดาวน์ได้ที่เว็บ...หรือที่ไฟล์แนบ
    http://custom.simplemachines.org/mods/index.php?mod=511

    ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
    « แก้ไขครั้งสุดท้าย: 30 เมษายน 2559, 17:21:54 โดย Auto Man »
    สวัสดีคุณ...ผู้เยี่ยมชม  กด ❤ ถูกใจโพสท์นี้ หรือยัง...
    ต้องการสมัครสมาชิก VIP สมัครได้ที่นี่...   หรือทาง Line ID: k.sonchai

    เปลี่ยน Icon หน้าบอร์ด Board Icons SMF
    « ตอบกลับ #2 เมื่อ: 29 เมษายน 2559, 10:25:47 »


    ออนไลน์ Auto Man

    • Administrator
    • หัวหน้าศูนย์ซ่อมสร้าง
    • *****
    • เจ้าของกระทู้
    • Joined: ก.ย. 2558
    • กระทู้: 37519
    • สมาชิกลำดับที่ : 1
    • เพศ: ชาย
    • มือผู้ให้ย่อมสูงกว่ามือผู้รับ
      • เว็บชุมชนคนรักช่างยนต์
      • อีเมล์
    เปลี่ยน Icon หน้าบอร์ด Board Icons SMF
    « ตอบกลับ #3 เมื่อ: 03 พฤษภาคม 2559, 10:13:37 »
  • ขึ้นบน
  • ลงล่าง
  • หลังการปรับแต่ง มาดูหน้าตาของเว็บ www.auto-nkp.com

    ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ


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

    อย่างเช่น ในบอร์ดย่อย เทคโนโลยี่ระดับสูง ไม่ได้สีเหมือนที่กำหนดในหน้าแรก

    ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ

    สวัสดีคุณ...ผู้เยี่ยมชม  กด ❤ ถูกใจโพสท์นี้ หรือยัง...
    ต้องการสมัครสมาชิก VIP สมัครได้ที่นี่...   หรือทาง Line ID: k.sonchai

    ออนไลน์ Auto Man

    • Administrator
    • หัวหน้าศูนย์ซ่อมสร้าง
    • *****
    • เจ้าของกระทู้
    • Joined: ก.ย. 2558
    • กระทู้: 37519
    • สมาชิกลำดับที่ : 1
    • เพศ: ชาย
    • มือผู้ให้ย่อมสูงกว่ามือผู้รับ
      • เว็บชุมชนคนรักช่างยนต์
      • อีเมล์
    เปลี่ยน Icon หน้าบอร์ด Board Icons SMF
    « ตอบกลับ #4 เมื่อ: 03 พฤษภาคม 2559, 10:14:57 »
  • ขึ้นบน
  • ลงล่าง
  •    อาจจะเป็นปัญหากับ smf 2.0.11 ก็ได้

    สรุป  ทำได้ขนาดนี้ถือว่าเยี่ยมครับ
    สวัสดีคุณ...ผู้เยี่ยมชม  กด ❤ ถูกใจโพสท์นี้ หรือยัง...
    ต้องการสมัครสมาชิก VIP สมัครได้ที่นี่...   หรือทาง Line ID: k.sonchai

    ออฟไลน์ cyber

    • สมาชิกผู้ทำคุณประโยชน์
    • ช่างยนต์มือหนึ่ง
    • ***
    • Joined: ม.ค. 2559
    • กระทู้: 184
    • สมาชิกลำดับที่ : 241
    เปลี่ยน Icon หน้าบอร์ด Board Icons SMF
    « ตอบกลับ #5 เมื่อ: 04 กันยายน 2559, 17:28:21 »
  • ขึ้นบน
  • ลงล่าง
  • สุดยอดครับ  -OO- -OO- -OO-

    เปลี่ยน Icon หน้าบอร์ด Board Icons SMF
    « ตอบกลับ #5 เมื่อ: 04 กันยายน 2559, 17:28:21 »