แก้ไขไฟล์ Themes/default ธีมที่ใช้/BoardIndex.template.php
ค้นหา
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<dl id="ic_recentposts" class="middletext">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>';
echo '
</dl>';
Replace With: ทับของเดิมที่หา
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="1" width="100%" border="0">
<tr>
<td class="catbg2" style="text-align:left;" colspan="2">',$txt['recent_title'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_views'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_replies'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_boardname'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_by'],'</td>
<td class="catbg2" style="text-align:right;">',$txt['recent_time'],'</td>
</tr>';
$cnt = 0;
foreach ($context['latest_posts'] as $post){
$cnt++;
$class = ($cnt % 2) ? 'windowbg' : 'windowbg2';
echo '
<tr>
<td></td>
<td class="', $class, '" title="', $post['preview'] ,'">', $post['link'], ' <img src="' . $settings['lang_images_url'] . '/new.gif"</td>
<td class="', $class, '" style="text-align:center;">', $post['views'], '</td>
<td class="', $class, '" style="text-align:center;">', $post['replies'], '</td>
<td class="', $class, '" style="text-align:center;">',$post['board']['link'], '</td>
<td class="', $class, '" style="text-align:center;">',$post['poster']['link'], '</td>
<td class="', $class, '" style="text-align:right;" nowrap="nowrap">', $post['time'], '</td>
</tr>';
}
echo '
</table>';
* พวกคลาส <td class="catbg2" และ <td class="', $class, '" เราสามารถเปลี่ยนและตกแต่งรูปแบบให้เป็นของเราได้ตามใจชอบแต่ถ้าไม่เปลี่ยนก็จะใช้ค่าของ default หรือธีมปัจจุบันของเราโดยอัตโนมัติ