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

ผู้เขียน หัวข้อ: [DtTvB's Second SMF MOD] กระทู้เมื่อเร็วๆนี้ แบบเปิดและเลืŭ  (อ่าน 5336 ครั้ง)

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

ออฟไลน์ DtTvB the CoderZ

  • New Member
  • *
  • กระทู้: 7
    • ดูรายละเอียด


1. เปิดไฟล์ Themes/default/BoardIndex.template.php

2. หาข้อความนี้ครับ
      echo '
            <tr>
               <td class="titlebg" colspan="2">'
, $txt[214], '</td>
            </tr>
            <tr>

3. แก้เป็น
      echo '
            <tr>
               <td class="titlebg" colspan="2" onClick="document.getElementById(\'recentpostbar\').style.display=\'\'; document.getElementById(\'recentposttxt\').style.display=\'none\'">'
, $txt[214], ' <span id="recentposttxt">(คลิกเพื่อแสดง)</span></td>
            </tr>
            <tr id="recentpostbar" style="display: none">


4. หาข้อความนี้ครับ
      elseif (!empty($context['latest_posts']))
      {
         echo '
                  <table cellpadding="0" cellspacing="0" width="100%" border="0">'
;

5. เปลี่ยนเป็นข้อความนี้ครับ
      elseif (!empty($context['latest_posts']))
      {
         echo '
                  <div style="overflow:auto; height: 120px; padding-right: 10px;"><table cellpadding="0" cellspacing="0" width="100%" border="0">'
;


6. หาข้อความนี้ครับ
                     </tr>';
         echo '
                  </table>'
;

7. เปลี่ยนเป็นข้อความนี้ครับ
                  </tr>';
         echo '
                  </table></div>'
;


8. เซฟครับ
« แก้ไขครั้งสุดท้าย: 6/02/06, 18:18:06 โดย DtTvB the CoderZ »

ออฟไลน์ beowolf

  • New Member
  • *
  • กระทู้: 26
    • ดูรายละเอียด
รบกวนหน่อยคัรบ ถ้าผมจะเปลียน จากบอร์ดที่โชว์หน้าแรก จาก หัวข้อล่าสุด เป็น โพส์ล่าสุด แทนได้ไหมครับ จะต้องไปแก้อะไรตรงส่วนใหนครับ
ปัญหาคือผม ไม่อยากให้ หัวข้อเดียวกัน โพส ซ้ำ ๆ กัน ในกระทู้ที่แสดง ครับ เพียงแค่ ให้มันโชว์ ขึ้นบนสุดแทนก้พอแล้วครับ