หมวด บอร์ดทั่วไป
> สารพันความรู้ - เทคโนโลยี

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

(1/1)

ลุงเปี๊ยก ที-เน็ตเวิร์ค (อ.สากเหล็ก):

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

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

Add Avatar To Who Is Online
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;
}
--- ปิดโค้ด ---


ลุงเปี๊ยก ที-เน็ตเวิร์ค (อ.สากเหล็ก):
SMF 2.0.6  ตามลิ้งค์นี้

Add Avatar To Who Is Online
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;
}
--- ปิดโค้ด ---

ลุงเปี๊ยก ที-เน็ตเวิร์ค (อ.สากเหล็ก):
SMF 2.0.7  ตามลิ้งค์นี้

Add Avatar To Who Is Online
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;
}
--- ปิดโค้ด ---

นำร่อง

[0] ดัชนีข้อความ

ไปที่เวอร์ชันเต็ม
Powered by SMFPacks Social Login Mod