ถ้าต้องการปรับแต่งบอร์ด SMF 2.0.11 แบบแมนวล ทำได้ตามนี้เลย
File Edits
./Sources/BoardIndex.php
Find:
$context += getMembersOnlineStats($membersOnlineOptions);
Add After:
// Get the user online today list.
$context += getUsersOnlineTodayStats();
./Themes/default/BoardIndex.template.php
Find:
// If they are logged in, but statistical information is off... show a personal message bar.
Add Before:
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': ', $context['num_users_online_today'], '';
if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'[br /]', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';