
Code :
<edit file>
$languagedir/Modifications.thai-utf8.php
</edit file>
<search for>
?>
</search for>
<add before>
$txt['uot_users_online_today']='เพื่อนของเราวันนี้';
$txt['uot_yesterday']='เมื่อวาน ';
$txt['uot_total']='ทั้งหมด';
$txt['uot_visible']='แสดงตัว';
$txt['uot_hidden']='ซ่อนตัว';
</add before> |
Code :
<edit file>
$themedir/BoardIndex.template.php
</edit file>
<search for>
// If they are logged in, but SP1 style
information is off... show a personal
message bar.
</search for>
<add before>
// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">',
$txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20"
valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif"
alt="', $txt['uot_users_online_today'], '"
border="0" />
</td>
<td class="windowbg2" width="100%">';
echo '
<div class="smalltext">';
echo $txt['uot_total'], ': <b>', $context['num_users_online_today'],
'</b>';
// 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['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info']
? '
<a href="' . $scripturl . '?action=stats">'
. $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';
</add before> |
Demo: http://www.dexmore.com/forums/index.php
|