เมืองพิจิตร (สระหลวง)
=> สารพันความรู้ & เทคโนโลยี => ข้อความที่เริ่มโดย: ลุงเปี๊ยก ที-เน็ตเวิร์ค (อ.สากเหล็ก) ที่ 09 เมษายน 2557, เวลา 20:27:21 น.

หัวข้อ: smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
เริ่มหัวข้อโดย: ลุงเปี๊ยก ที-เน็ตเวิร์ค (อ.สากเหล็ก) ที่ 09 เมษายน 2557, เวลา 20:27:21 น.
[attach=1]

โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)


SMF 2.0.4   ตามลิ้งค์นี้

Add Avatar To Who Is Online
http://custom.simplemachines.org/mods/index.php?mod=3655 (http://custom.simplemachines.org/mods/index.php?mod=3655)


หน้าตาก่อนติดตั้ง
(http://www.gpsteawthai.com/Themes/image-board-smf/katoo-1544_01.GIF)


หลังจากติดตั้งเสร็จ เข้าไปเปิดใช้งานที่
- ผู้ดูแลระบบ /ปรับแต่งบอร์ด /ตั้งค่าธีมปัจจุบัน /การตั้งค่าธีม
(http://www.gpsteawthai.com/Themes/image-board-smf/katoo-1544_02.GIF)


จะได้แบบนี้ อิอิ
(http://www.gpsteawthai.com/Themes/image-board-smf/katoo-1544_03.gif)


=========================
ขั้นตอนในการโมฯโค้ด


เข้าไปที่...
./Themes /default /Who.template.php


ค้นหา... จะอยู่ประมาณบรรทัดที่ 44 - 62
โค๊ด: [เลือก]
<tr class="catbg">
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';

// For every member display their name, time and action (and more for admin).
$alternate = 0;

foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">
<td>';

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.


แล้ว...เอาโค้ดนี้วางทับ
โค๊ด: [เลือก]
<tr class="catbg">';
if (!empty($settings['who_is_online_avatar_show']))
{
echo '
<th class="lefttext first_th">', $txt['who_is_avatar'], '</th><th scope="col" class="lefttext" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
}
else
{
echo '
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
}
echo '
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';

// For every member display their name, time and action (and more for admin).
$alternate = 0;

foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">';
if (!empty($settings['who_is_online_avatar_show']))
echo '
<td class="who_is_online_avatar_height'. $settings['who_is_online_avatar_height'] . '" align="center"> <span class="who_is_online_avatar_height'. $settings['who_is_online_avatar_height'] . '">
<a href="' . $member['href'] . '" title="' . $txt['profile_of'] . ' ">', $member['avatar']['image'], '</a>
                </span>
</td>';
echo '
<td>';

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.






เข้าไปที่...
./Themes /ธีมที่ใช้จริง /Settings.template.php


ค้นหา... บรรทัดที่ 261 - 265 (จะอยู่ท้ายสุดเลย)
โค๊ด: [เลือก]
array(
'id' => 'additional_options_collapsable',
'label' => $txt['additional_options_collapsable'],
),
);


แล้ว...วางก่อนหน้า
โค๊ด: [เลือก]
array(
'id' => 'who_is_online_avatar_show',
'label' => $txt['who_is_online_avatar_show'],
),
array(
'id' => 'who_is_online_avatar_height',
'label' => $txt['who_is_online_avatar_height'],
'options' => array(
0 => $txt['who_is_online_avatar_30px'],
1 => $txt['who_is_online_avatar_40px'],
2 => $txt['who_is_online_avatar_50px'],
3 => $txt['who_is_online_avatar_60px'],
4 => $txt['who_is_online_avatar_70px'],
5 => $txt['who_is_online_avatar_80px'],
6 => $txt['who_is_online_avatar_90px'],
7 => $txt['who_is_online_avatar_100px'],
),
'type' => 'number',
),
'',






เข้าไปที่...
./Themes /default /languages /Modifications.english.php


ค้นหา... บรรทัดที่ ท้ายสุด
โค๊ด: [เลือก]
?>

แล้ว...เอาโค้ดนี้ วางก่อนหน้า
โค๊ด: [เลือก]
$txt['who_is_online_avatar_show'] = 'เปิดใช้งานโชว์รูป "ดูสมาชิกกำลังออนไลน์" ';
$txt['who_is_avatar'] = 'รูปสมาชิก';
$txt['who_is_online_avatar_height'] = 'กำหนดขนาดรูป "ดูสมาชิกกำลังออนไลน์"  (px)';
$txt['who_is_online_avatar_30px'] = '30px';
$txt['who_is_online_avatar_40px'] = '40px';
$txt['who_is_online_avatar_50px'] = '50px';
$txt['who_is_online_avatar_60px'] = '60px';
$txt['who_is_online_avatar_70px'] = '70px';
$txt['who_is_online_avatar_80px'] = '80px';
$txt['who_is_online_avatar_90px'] = '90px';
$txt['who_is_online_avatar_100px'] = '100px';






เข้าไปที่...
./Themes /ธีมที่ใช้จริง /css/index.css


ค้นหา... (จะอยู่ท้ายสุด)
โค๊ด: [เลือก]
}

แล้ว...เอาโค้ดนี้ วางต่อท้าย จบข่าว
โค๊ด: [เลือก]
.who_is_online_avatar_height0 img
{
vertical-align: middle;
height: 30px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height0, .who_is_online_avatar_height0 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height1 img
{
vertical-align: middle;
height: 40px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height1, .who_is_online_avatar_height1 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height2 img
{
vertical-align: middle;
height: 50px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height2, .who_is_online_avatar_height2 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height3 img
{
vertical-align: middle;
height: 60px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height3, .who_is_online_avatar_height3 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height4 img
{
vertical-align: middle;
height: 70px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height4, .who_is_online_avatar_height4 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height5 img
{
vertical-align: middle;
height: 80px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height5, .who_is_online_avatar_height5 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height6 img
{
vertical-align: middle;
height: 90px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height6, .who_is_online_avatar_height6 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height7 img
{
vertical-align: middle;
height: 100px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height7, .who_is_online_avatar_height7 td
{
background:url(../images/noavatar.png) center center no-repeat;
}


หัวข้อ: Re: smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
เริ่มหัวข้อโดย: ลุงเปี๊ยก ที-เน็ตเวิร์ค (อ.สากเหล็ก) ที่ 09 เมษายน 2557, เวลา 20:29:15 น.
SMF 2.0.6  ตามลิ้งค์นี้

Add Avatar To Who Is Online
http://custom.simplemachines.org/mods/index.php?mod=3655 (http://custom.simplemachines.org/mods/index.php?mod=3655)




ขั้นตอนในการโมฯโค้ด


เข้าไปที่...
./Themes /default /Who.template.php


ค้นหา...  จะอยู่ประมาณบรรทัดที่ 44 - 62
โค๊ด: [เลือก]
<tr class="catbg">
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';

// For every member display their name, time and action (and more for admin).
$alternate = 0;

foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">
<td>';

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.


แล้ว...เอาโค้ดนี้วางทับ
โค๊ด: [เลือก]
<tr class="catbg">';
if (!empty($settings['who_is_online_avatar_show']))
{
echo '
<th class="lefttext first_th">', $txt['who_is_avatar'], '</th><th scope="col" class="lefttext" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
}
else
{
echo '
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
}
echo '
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';

// For every member display their name, time and action (and more for admin).
$alternate = 0;

foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">';
if (!empty($settings['who_is_online_avatar_show']))
echo '
<td class="who_is_online_avatar_height'. $settings['who_is_online_avatar_height'] . '" align="center"> <span class="who_is_online_avatar_height'. $settings['who_is_online_avatar_height'] . '">
<a href="' . $member['href'] . '" title="' . $txt['profile_of'] . ' ">', $member['avatar']['image'], '</a>
                </span>
</td>';
echo '
<td>';

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.






เข้าไปที่...
./Themes /ธีมที่ใช้จริง /Settings.template.php


ค้นหา... บรรทัดที่ 261 - 265 (จะอยู่ท้ายสุดเลย)
โค๊ด: [เลือก]
array(
'id' => 'additional_options_collapsable',
'label' => $txt['additional_options_collapsable'],
),
);


แล้ว...วางก่อนหน้า
โค๊ด: [เลือก]
array(
'id' => 'who_is_online_avatar_show',
'label' => $txt['who_is_online_avatar_show'],
),
array(
'id' => 'who_is_online_avatar_height',
'label' => $txt['who_is_online_avatar_height'],
'options' => array(
0 => $txt['who_is_online_avatar_30px'],
1 => $txt['who_is_online_avatar_40px'],
2 => $txt['who_is_online_avatar_50px'],
3 => $txt['who_is_online_avatar_60px'],
4 => $txt['who_is_online_avatar_70px'],
5 => $txt['who_is_online_avatar_80px'],
6 => $txt['who_is_online_avatar_90px'],
7 => $txt['who_is_online_avatar_100px'],
),
'type' => 'number',
),
'',






เข้าไปที่...
./Themes /default /languages /Modifications.english.php


ค้นหา... (บรรทัดที่ ท้ายสุด)
โค๊ด: [เลือก]
?>

แล้ว...เอาโค้ดนี้ วางก่อนหน้า
โค๊ด: [เลือก]
$txt['who_is_online_avatar_show'] = 'เปิดใช้งานโชว์รูป "ดูสมาชิกกำลังออนไลน์" ';
$txt['who_is_avatar'] = 'รูปสมาชิก';
$txt['who_is_online_avatar_height'] = 'กำหนดขนาดรูป "ดูสมาชิกกำลังออนไลน์" (px)';
$txt['who_is_online_avatar_30px'] = '30px';
$txt['who_is_online_avatar_40px'] = '40px';
$txt['who_is_online_avatar_50px'] = '50px';
$txt['who_is_online_avatar_60px'] = '60px';
$txt['who_is_online_avatar_70px'] = '70px';
$txt['who_is_online_avatar_80px'] = '80px';
$txt['who_is_online_avatar_90px'] = '90px';
$txt['who_is_online_avatar_100px'] = '100px';






เข้าไปที่...
./Themes /ธีมที่ใช้จริง /css/index.css


ค้นหา...(จะอยู่ท้ายสุด)
โค๊ด: [เลือก]
}

แล้ว...เอาโค้ดนี้ วางต่อท้าย จบข่าว
โค๊ด: [เลือก]
.who_is_online_avatar_height0 img
{
vertical-align: middle;
height: 30px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height0, .who_is_online_avatar_height0 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height1 img
{
vertical-align: middle;
height: 40px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height1, .who_is_online_avatar_height1 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height2 img
{
vertical-align: middle;
height: 50px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height2, .who_is_online_avatar_height2 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height3 img
{
vertical-align: middle;
height: 60px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height3, .who_is_online_avatar_height3 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height4 img
{
vertical-align: middle;
height: 70px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height4, .who_is_online_avatar_height4 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height5 img
{
vertical-align: middle;
height: 80px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height5, .who_is_online_avatar_height5 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height6 img
{
vertical-align: middle;
height: 90px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height6, .who_is_online_avatar_height6 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height7 img
{
vertical-align: middle;
height: 100px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height7, .who_is_online_avatar_height7 td
{
background:url(../images/noavatar.png) center center no-repeat;
}



ที่มา...
http://www.gpsteawthai.com/index.php/topic,1273.0.html (http://www.gpsteawthai.com/index.php/topic,1273.0.html)
หัวข้อ: Re: smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
เริ่มหัวข้อโดย: ลุงเปี๊ยก ที-เน็ตเวิร์ค (อ.สากเหล็ก) ที่ 09 เมษายน 2557, เวลา 20:30:04 น.
SMF 2.0.7  ตามลิ้งค์นี้

Add Avatar To Who Is Online
http://custom.simplemachines.org/mods/index.php?mod=3655 (http://custom.simplemachines.org/mods/index.php?mod=3655)




ขั้นตอนในการโมฯโค้ด


เข้าไปที่...
./Themes /default /Who.template.php


ค้นหา... จะอยู่ประมาณบรรทัดที่ 44 - 62
โค๊ด: [เลือก]
<tr class="catbg">
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';

// For every member display their name, time and action (and more for admin).
$alternate = 0;

foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">
<td>';

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.


แล้ว...เอาโค้ดนี้วางทับ
โค๊ด: [เลือก]
<tr class="catbg">';
if (!empty($settings['who_is_online_avatar_show']))
{
echo '
<th class="lefttext first_th">', $txt['who_is_avatar'], '</th><th scope="col" class="lefttext" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
}
else
{
echo '
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
}
echo '
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';

// For every member display their name, time and action (and more for admin).
$alternate = 0;

foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">';
if (!empty($settings['who_is_online_avatar_show']))
echo '
<td class="who_is_online_avatar_height'. $settings['who_is_online_avatar_height'] . '" align="center"> <span class="who_is_online_avatar_height'. $settings['who_is_online_avatar_height'] . '">
<a href="' . $member['href'] . '" title="' . $txt['profile_of'] . ' ">', $member['avatar']['image'], '</a>
                </span>
</td>';
echo '
<td>';

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.






เข้าไปที่...
./Themes /ธีมที่ใช้จริง /Settings.template.php


ค้นหา... ประมาณบรรทัดที่ 261 - 265 (จะอยู่ท้ายสุดเลย)
โค๊ด: [เลือก]
array(
'id' => 'additional_options_collapsable',
'label' => $txt['additional_options_collapsable'],
),
);


แล้ว...วางก่อนหน้า
โค๊ด: [เลือก]
array(
'id' => 'who_is_online_avatar_show',
'label' => $txt['who_is_online_avatar_show'],
),
array(
'id' => 'who_is_online_avatar_height',
'label' => $txt['who_is_online_avatar_height'],
'options' => array(
0 => $txt['who_is_online_avatar_30px'],
1 => $txt['who_is_online_avatar_40px'],
2 => $txt['who_is_online_avatar_50px'],
3 => $txt['who_is_online_avatar_60px'],
4 => $txt['who_is_online_avatar_70px'],
5 => $txt['who_is_online_avatar_80px'],
6 => $txt['who_is_online_avatar_90px'],
7 => $txt['who_is_online_avatar_100px'],
),
'type' => 'number',
),
'',






เข้าไปที่...
./Themes /default /languages /Modifications.english.php


ค้นหา... จะอยู่บรรทัดท้ายสุด
โค๊ด: [เลือก]
?>

แล้ว...เอาโค้ดนี้ วางก่อนหน้า
โค๊ด: [เลือก]
$txt['who_is_online_avatar_show'] = 'เปิดใช้งานโชว์รูป "ดูสมาชิกกำลังออนไลน์" ';
$txt['who_is_avatar'] = 'รูปสมาชิก';
$txt['who_is_online_avatar_height'] = 'กำหนดขนาดรูป "ดูสมาชิกกำลังออนไลน์" (px)';
$txt['who_is_online_avatar_30px'] = '30px';
$txt['who_is_online_avatar_40px'] = '40px';
$txt['who_is_online_avatar_50px'] = '50px';
$txt['who_is_online_avatar_60px'] = '60px';
$txt['who_is_online_avatar_70px'] = '70px';
$txt['who_is_online_avatar_80px'] = '80px';
$txt['who_is_online_avatar_90px'] = '90px';
$txt['who_is_online_avatar_100px'] = '100px';






เข้าไปที่...
./Themes /ธีมที่ใช้จริง /css/index.css


ค้นหา... จะอยู่บรรทัดท้ายสุด
โค๊ด: [เลือก]
}

แล้ว...เอาโค้ดนี้ วางต่อท้าย จบข่าว
โค๊ด: [เลือก]
.who_is_online_avatar_height0 img
{
vertical-align: middle;
height: 30px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height0, .who_is_online_avatar_height0 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height1 img
{
vertical-align: middle;
height: 40px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height1, .who_is_online_avatar_height1 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height2 img
{
vertical-align: middle;
height: 50px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height2, .who_is_online_avatar_height2 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height3 img
{
vertical-align: middle;
height: 60px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height3, .who_is_online_avatar_height3 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height4 img
{
vertical-align: middle;
height: 70px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height4, .who_is_online_avatar_height4 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height5 img
{
vertical-align: middle;
height: 80px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height5, .who_is_online_avatar_height5 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height6 img
{
vertical-align: middle;
height: 90px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height6, .who_is_online_avatar_height6 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height7 img
{
vertical-align: middle;
height: 100px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height7, .who_is_online_avatar_height7 td
{
background:url(../images/noavatar.png) center center no-repeat;
}




ที่มา...
http://www.gpsteawthai.com/index.php/topic,1273.0.html (http://www.gpsteawthai.com/index.php/topic,1273.0.html)