เอาฟังก์ชั่นนี้ เพิ่มไว้ที่ไฟล์ SSI.php
เวลาเรียกให้ใส่ id ของบอร์ดที่จะเอาไว้ที่ argument ตัวที่สอง เ็ป็น array
ssi_recentTopics2(5,array(1,2,3,4,5)); => เอาไปใส่ใน BoardIndex.template.php ใช่หรือเปล่าครับ
พวกบอร์ดที่เ็ป็น child คงต้องหา id มาใส่รวมไปด้วย => อันนี้ คงไม่มี บอร์ดย่อยครับ
ไม่ได้ลองนะ เน่าหรือเอ๋อ มะยู้ด้วย => ไม่เน่าแต่เหมือนเดิมครับ
วิธีใส่ก็คือต้องไปลบ ตั้งแต่ตรงไหนเหรอครับ
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
echo '
</span>
</td>
</tr>';