ติดต่อลงโฆษณา [email protected]

ผู้เขียน หัวข้อ: ช่วยผมที ปิดsub_boardไม่ได้  (อ่าน 33888 ครั้ง)

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

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
ช่วยผมที ปิดsub_boardไม่ได้
« เมื่อ: 9/01/06, 14:20:53 »
ผมใส่บอร์ดย่อยแต่ไม่อยากโชว์ดูแล้วมันรกๆไงก้อไม่รู้ อยากปิด ผมลองไปหาในcpแล้วไม่มี เลยจะลองแก้โค๊ดเอาแต่ก้อหาไม่เจอ

[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #1 เมื่อ: 9/01/06, 15:01:40 »
อยากปิดบอร์ดไปเลย
หรือว่าแค่ว่าไม่อยากโชว์ชื่อบอร์ดย่อยไว้ที่หน้าแรกคะ??


Don't laugh everytime you win, but smile when you be a loser.

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #2 เมื่อ: 9/01/06, 15:17:10 »
ไม่อยากโชว์บอร์ดย่อย ให้เห็นแต่บอร์ดใหญ่

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #3 เมื่อ: 9/01/06, 15:41:12 »
เราลองเดาดูนะคะ  พอดีเว็บเราไม่มีบอร์ดย่อยเลยทดลองโค้ดไม่ได้
ดูที่ไฟล์ BoardIndex.template.php ค่ะ
หาโค้ดนี้


โค้ด: [เลือก]
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}

ลองหยุดการใช้งานโค้ดส่วนนี้โดยแก้เป็นแบบนี้ค่ะ

โค้ด: [เลือก]
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
/*
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
*/
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
/*
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}
}*/

เราไม่ได้ทดสอบโค้ดก่อนน่ะค่ะ  ถ้าหากผิดพลาดก็ต้องขออภัยด้วยนะคะ


Don't laugh everytime you win, but smile when you be a loser.

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #4 เมื่อ: 9/01/06, 16:07:31 »
เออเร่อครับ  ;D

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #5 เมื่อ: 9/01/06, 16:11:35 »
งั้นรอท่านอื่นมาตอบให้นะคะ :P


Don't laugh everytime you win, but smile when you be a loser.

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #6 เมื่อ: 9/01/06, 16:13:48 »
คร๊าบผม ขอบคุณครับ

ออฟไลน์ HackPro

  • Global Moderator
  • *****
  • กระทู้: 59
  • หนุ่ม SA พเนจร
    • ดูรายละเอียด
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #7 เมื่อ: 9/01/06, 18:10:08 »
ผมว่าโค้ดของเจ้ถูกแล้วอ่ะครับ

ลองรีมาร์คโดยใช้เครื่องหมาย //

หน้าบรรทัดแทน

ตั้งแต่บรรทัดหมายเลข 165 ถึง 184

ใช้ Edit+ เปิด จะได้ดูโค้ดได้ง่าย

Mr.Hackalot

  • บุคคลทั่วไป
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #8 เมื่อ: 9/01/06, 21:36:32 »
ช่วยแก้ให้ครับ

โค้ด: [เลือก]
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
/*
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
*/
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
/*
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}*/

ยังไม่ได้ลองทีนะครับ

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #9 เมื่อ: 10/01/06, 00:30:14 »
เรียบร้อยครับ ตามรูปเลย ???
ผมว่าโค้ดของเจ้ถูกแล้วอ่ะครับ

ลองรีมาร์คโดยใช้เครื่องหมาย //

หน้าบรรทัดแทน

ตั้งแต่บรรทัดหมายเลข 165 ถึง 184

ใช้ Edit+ เปิด จะได้ดูโค้ดได้ง่าย

[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]

ออฟไลน์ HackPro

  • Global Moderator
  • *****
  • กระทู้: 59
  • หนุ่ม SA พเนจร
    • ดูรายละเอียด
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #10 เมื่อ: 10/01/06, 01:23:35 »
เรียบร้อยครับ ตามรูปเลย ???

ก้าก ๆ ๆ

ไม่ได้ลองอ่ะ เหอ ๆ ผมยังไม่ได้ลง rc2 เยย เอ้ก ๆ

ลองของพี่ Mr.Hackalot หรือยัง ลองดูให้ครบ อิอิ

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #11 เมื่อ: 10/01/06, 10:21:45 »
ลองเอาอีกบอร์ดของเรามาทดสอบแล้วได้แบบนี้

ก่อนแก้โค้ด  จะเห็นว่ามีโชว์บอร์ดย่อยอยู่



แก้โค้ดแล้วได้แบบนี้  บอร์ดย่อยไม่โชว์ที่หน้าเว็บแล้ว



คลิกเข้าไปที่บอร์ดแรกแล้วก็จะเห็นบอร์ดย่อยอยู่ข้างใน



ลิงค์เว็บที่ทดสอบ  ลองไปดูก่อนก็ได้นะ

http://www.tinacat.net/justmineforum/index.php?theme=1
« แก้ไขครั้งสุดท้าย: 10/01/06, 10:33:50 โดย TinaCat »


Don't laugh everytime you win, but smile when you be a loser.

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #12 เมื่อ: 10/01/06, 10:31:45 »
แก้โค้ดตามนี้นะ
เปิดไฟล์ BoardIndex.template.php  แล้วหาโค้ดนี้


โค้ด: [เลือก]
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}
}
echo '
</table>';
}
echo '
</div>';
}

if ($context['user']['is_logged'])


Replace

โค้ด: [เลือก]
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
/* --------- Stop Code ----------
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
---------- End --------- */
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
/* ---------- Stop Code ----------
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}
---------- End --------- */
}
echo '
</table>';
}
echo '
</div>';
}

if ($context['user']['is_logged'])


อันนี้เรายกโค้ดมาให้ทั้งชุดเลยน่ะ
ตั้งใจก็อปส่วนที่ไม่เกี่ยวข้องเกินมานิดหน่อยด้วย  จะได้แน่ใจว่าแก้โค้ดได้ถูกที่
(โค้ดอันนี้สำหรับ SMF 1.1 RC2 The Core Theme นะ  ถ้าเป็นธีมอื่นหรือเวอร์ชั่นอื่น  รู้สึกว่าโค้ดจะไม่เหมือนกัน)

ถ้าแก้โค้ดแล้วยังไม่ได้ตามแบบตัวอย่างในเว็บที่เราทำให้ดู
คงหมายถึงว่า  ไม่ได้แก้โค้ดตามที่เราบอก  เลยทำให้ผิดพลาด
ลองดูก่อนละกัน

(แต่ก็สงสัยนะ  เปิดบอร์ดย่อยมา  แล้วไม่โชว์
คนอื่นมองจากหน้าแรกจะรู้เหรอว่าห้องนี้มีบอร์ดย่อย)


Don't laugh everytime you win, but smile when you be a loser.

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #13 เมื่อ: 10/01/06, 12:26:04 »
ขอบคุณครับที่ช่วยสละเวลาทำให้ผม
ผมจะลองแก้ดูนะครับ ได้หรือไม่อย่างไรจะบอกนะครับ
ปล.อยากรู้ว่ามีบอร์ดย่อยก้อกดเอา  ;D

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #14 เมื่อ: 10/01/06, 12:37:33 »
เรียบร้อยครับ ผลการทดสอบล่าสุด

[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #15 เมื่อ: 10/01/06, 13:08:08 »
แล้วทำไมช่องมันไปเบียดกันอย่างนั้นล่ะึคะ??
ก่อนหน้านี้คุณเคยแก้ไฟล์ BoardIndex.template.php ที่จุดไหนบ้างคะ??


Don't laugh everytime you win, but smile when you be a loser.

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #16 เมื่อ: 10/01/06, 13:28:28 »
ผมอ่านทีแก้ที เจออะไรเด็ดๆผมก้อแก้ไปตามที่ผมอ่านเจอ
ต้องขออภัยอย่างสูงที่ไม่สารถบอกได้ว่าแก้อะไรไปบ้าง ผมยังงงกับตัวเองอยู่เลย
เท่าที่จำได้นะ ผมไม่เคยแก้ไฟล์นี้เลย ผมถนัดแก้ index.tempate.phpมากกว่า

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #17 เมื่อ: 10/01/06, 14:08:14 »
ลองเอาไฟล์จากชุด Install ไปแก้และอัพขึ้นไปแทนไฟล์เดิมบนโฮสต์ดูนะคะ
(ไฟล์ BoardIndex.template.php เดิมก็เปลี่ยนเป็นชื่ออื่นชั่วคราวก่อน  เช่น BoardIndex.template-001.php  ไม่ต้องลบนะคะ)

ถ้าใช้ไฟล์จากต้นฉบับแก้ไขได้  ก็คงแสดงว่าไฟล์เดิมของคุณมีโค้ดเพี้ยนนิดหน่อย

เวลาจะแก้ไขโค้ดอะไรในไฟล์  ควรจะแบคอัพอันเดิมเก็บไว้ก่อนน่ะค่ะ
และก็เขียนกำกับไว้ด้วยก็ดีว่าเราได้แก้ไขอะไรไปแล้ว

ถ้าเขียนกำกับบรรทัดเดียว  ก็พิมพ์ // .. ไว้ที่หน้าบรรทัดค่ะ
ถ้าเขียนกำกับมากกว่า 1 บรรทัด  ให้ใช้ /* ... */ ปิดหัวปิดท้ายค่ะ

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


Don't laugh everytime you win, but smile when you be a loser.

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #18 เมื่อ: 10/01/06, 15:20:18 »
ขอบคุณครับสำหรับคำสั่ง ผมจะลองดูนะ คงต้องใช้เวลาสักพัก แล้วผมจะบอกนะว่ามันเกิดอะไรขึ้น
ปล.ขอทวนคำสั่งอีกที
 //  <<<ปิดการรันภาษา ณ. แหน่งนั้น
/*  ถึง */ <<<< ปิดการรันภาษาที่ตำแห่ง /* จนถึง */
หมายเหตุ การใช้งาน = นำเครื่องหมาย ตัวปิดการรัน ไปวางใว้หน้าสุดของการเริ่มคำสั่งภาษา นั้นๆ
 ;D TinaCat :D
« แก้ไขครั้งสุดท้าย: 10/01/06, 15:35:42 โดย ต่ำต้อย »

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #19 เมื่อ: 10/01/06, 15:49:07 »
// -- เพื่อให้ระบบไม่อ่านคำสั่งในบรรทัดนั้นๆ  (เฉพาะคำสั่งบรรทัดเดียว  ไม่มีการกด Enter ขึ้นบรรทัดใหม่)
/* .. */ -- ระบบจะไม่อ่านคำสั่งทั้งหมดภายในโค้ดนี้  (ในกรณีที่มีหลายๆบรรทัด)

ถ้าไม่แน่ใจก็ใช้แต่ /* .. */ ปิดหัวปิดท้ายแหละ


Don't laugh everytime you win, but smile when you be a loser.

Mr.Hackalot

  • บุคคลทั่วไป
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #20 เมื่อ: 10/01/06, 22:08:34 »
 ??? แสดงว่าไม่ดูโค้ดผมเลย อุตสาห์ช่วยตอบ  :'(

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #21 เมื่อ: 10/01/06, 22:56:18 »
??? แสดงว่าไม่ดูโค้ดผมเลย อุตสาห์ช่วยตอบ  :'(
ผมดูแล้วแต่มันก้อไม่ได้ มันเออเร่อ

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #22 เมื่อ: 10/01/06, 23:01:32 »
ตอนนี้ผมแก้ได้แล้วครับ
วิธีการ
หา
อ้างถึง
{
            echo '
         <tr>
            <td ' , !empty($board['children']) ? 'rowspan="1"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

แก้จาก
อ้างถึง
'rowspan="1"' เป็น2


อีกจุดนึง.

หา

อ้างถึง
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            if (!empty($board['children']))
            {
               // Sort the links into an array with new boards bold so it can be imploded.
               $children = array();
               /* Each child in each board's children has:
                     id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
               foreach ($board['children'] as $child)
               {
                     $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '[/url]';
                     $children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
               }

               echo '
         <tr>
            <td colspan="3" style="display:none">
               <!--span class="smalltext">', $txt['parent_boards'], ': ', implode(', ', $children), '</span-->
            </td>
         </tr>';
         
            }
         }

แทนด้วย

อ้างถึง
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            if (!empty($board['children']))
            {
               // Sort the links into an array with new boards bold so it can be imploded.
               $children = array();
               /* Each child in each board's children has:
                     id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
               foreach ($board['children'] as $child)
               {
                     $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '[/url]';
                     $children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
               }
/*
               echo '
         <tr>
            <td colspan="3" style="display:none">
               <!--span class="smalltext">', $txt['parent_boards'], ': ', implode(', ', $children), '</span-->
            </td>
         </tr>';
         */
            }
         }

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #23 เมื่อ: 10/01/06, 23:03:43 »
อันแรกคือการรวมเซลเพื่อใม่ให้ผลเป็นแบบนี้

[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #24 เมื่อ: 10/01/06, 23:08:56 »
อันที่2 คือคำสั่ง ไม่ต้องแสดง ข้อความ หัวข้อในบอร์ดย่อย
สรุปผลตามรูป หรือไปดูที่เวบ www.filewall.org

[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #25 เมื่อ: 10/01/06, 23:11:42 »
จบการรายงานข่าวแต่เพียงเท่านี้
filewall - ภาพ
filewall - รายงาน

ออฟไลน์ TinaCat

  • Global Moderator
  • *****
  • กระทู้: 306
  • เพศ: หญิง
  • { Cat.Mazta }
    • ดูรายละเอียด
    • JustUsers.net
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #26 เมื่อ: 10/01/06, 23:59:59 »
อาการแปลกๆนะ  ไฟล์ของคุณ ต่ำต้อย อ่ะ
ดูโค้ดแล้ว  ของ Mr.Hackalot เหมือนโค้ดที่เราโพสต์ครั้งที่สองนะ  ก็คือโค้ดนั้นใช้ได้
แต่ทำไมใช้กับบอร์ดคุณ ต่ำต้อย ไม่ได้??

คุณ ต่ำต้อย ลองเอาไฟล์ต้นฉบับจากเว็บ SMF ไปแก้ดูรึยังคะ??
เราว่าคุณเคยแก้ไฟล์นี้  แต่จำไม่ได้เองมั้งคะ

ไฟล์ต้นฉบับจากเว็บ SMF  โค้ดส่วนนี้ก็เป็น 2 อยู่แล้วค่ะ


โค้ด: [เลือก]
echo '
<tr>
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="center"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

ลองโหลดไฟล์ต้นฉบับมาเก็บไว้อีกชุดไว้สำหรับเช็คโค้ดน่าจะดีกว่านะคะ


Don't laugh everytime you win, but smile when you be a loser.

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #27 เมื่อ: 11/01/06, 00:19:11 »
ผมพิมพ์ผิด แก้จาก2 เป็น1 ครับ ผมใช้codeนี้ทำได้แล้วครับ

ออฟไลน์ КёngЯacing

  • Administrator
  • *****
  • กระทู้: 284
    • ดูรายละเอียด
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #28 เมื่อ: 11/01/06, 01:12:34 »
พยายามดันทุรังทำมันจนได้ อิอิ ทีแรกนึกว่าจะไปไม่รอดแล้ว ;D

ออฟไลน์ น้ำพริก

  • เจ๊สั่งให้มาลุย
  • Full Member
  • ***
  • กระทู้: 137
    • ดูรายละเอียด
    • www.korkwai.com
Re: ช่วยผมที ปิดsub_boardไม่ได้
« ตอบ #29 เมื่อ: 11/01/06, 08:57:49 »
 ;Dนึกว่าจะไม่มาเยี่ยมผมซะแล้ว พี่เก่ง