SMF Thailand.

SMF Development => SMF Coding Discussion => ข้อความที่เริ่มโดย: DtTvB the CoderZ ที่ 5/02/06, 19:25:37

หัวข้อ: [DtTvB's Second SMF MOD] กระทู้เมื่อเร็วๆนี้ แบบเปิดและเลืŭ
เริ่มหัวข้อโดย: DtTvB the CoderZ ที่ 5/02/06, 19:25:37
(http://img397.imageshack.us/img397/4223/recentposto0dt.gif)

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. เซฟครับ
หัวข้อ: Re: [DtTvB's Second SMF MOD] กระทู้เมื่อเร็วๆนี้ แบบเปิดและเลืŭ
เริ่มหัวข้อโดย: beowolf ที่ 17/02/06, 13:24:02
รบกวนหน่อยคัรบ ถ้าผมจะเปลียน จากบอร์ดที่โชว์หน้าแรก จาก หัวข้อล่าสุด เป็น โพส์ล่าสุด แทนได้ไหมครับ จะต้องไปแก้อะไรตรงส่วนใหนครับ
ปัญหาคือผม ไม่อยากให้ หัวข้อเดียวกัน โพส ซ้ำ ๆ กัน ในกระทู้ที่แสดง ครับ เพียงแค่ ให้มันโชว์ ขึ้นบนสุดแทนก้พอแล้วครับ