ข้ า พ ร ะ พุ ท ธ เ จ้ า    ~    ก ลุ่ ม เ ว็ บ จี พี เ อ ส เ ที่ ย ว ไ ท ย ด อ ท ค อ ม   (กลุ่มเว็บลูกหลานชาวพิจิตร)

fillgoods.co ระบบจัดการร้านค้าออนไลน์ theterraceview-khaokho เว็บทรีโอแมส Welcome to JustUsers.net
วิทยาลัยเทคโนโลยีชื่นชม ไทย-เยอรมัน สระบุรี แนชเชอรัล รีสอร์ต (Nat's Resort) พิจิตร เม็ดบัวอบกรอบ มาย ฟีเกอ มีจําหน่ายที่ supermarket & 7-Eleven ทุกสาขา (10/12/60) เว็บ justusers.net
ลิ้ ง ค์ ก า ร พ นั น ..!!     แ บ น เ น อ ร์ ก า ร พ นั น ..!!     ไ ม่ ต้ อ ง พ ย า ย า ม ติ ด ต่ อ ม า     ไ ม่ ต้ อ น รั บ ..??

....:::: ::::....         แล้งน้ำ, น้ำท่วม, ลดโลกร้อน เพื่อแก้ปัญหาในระยะยาวในเรื่องดังกล่าว ทางเว็บขอร่วมรณรงค์ให้พี่น้องช่วยกันปลูกป่าทั่วแผ่นดินเพื่อแก้ปัญหาระยะยาวตามพระราชดำริของพ่อ เช่น ท่านที่อยู่ต้นน้ำตามภูเขาที่ลาดชัน หรือตามท้องไร่ท้องนาหัวคันนา ปลูกเท่าที่ทำได้ ทำตอนนี้ลูกหลานเราจะได้ไม่เดือดร้อน ...             เว็บจีพีเอสเที่ยวไทยดอทคอม     "เว็บท่องเที่ยว-ถ่ายภาพ และพิกัดGPS"       ....:::: ::::....

  สังคมแห่งการแบ่งปันนี้จะไม่มีสิ่งที่เพื่อนต้องการ    เมื่อเพื่อนๆ มาแวะเยี่ยมแล้วไม่ฝากสิ่งใดไว้..!!     กลุ่มเว็บนี้..   ดำรงไว้ซึ่ง คุณธรรม จริยธรรม ศีลธรรม จรรยาบรรณ ไม่เอาเปรียบเพื่อนมนุษย์ ไม่เห็นแก่ตัว ไม่ตักตวงผลประโยชน์เข้าตน..  


ผู้เขียน หัวข้อ: smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)  (อ่าน 5507 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

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

  • ผู้ใหญ่บ้าน..น๊ะจ๊ะ
  • Administrator
  • *
  • กดนิ้วโป้ง.! แทนคำขอบคุณ
  • -มอบให้: 52
  • -จึงได้รับ: 33
  • กระทู้: 5796
  • กำลังใจ : +266/-0
  • Tel/Line 0818462316 (วทพ.24, HS6LPZ)
  • ระบบปฏิบัติการ:
  • Windows XP Windows XP
  • เบราเซอร์:
  • Chrome 34.0.1847.131 Chrome 34.0.1847.131
  • กลุ่มพิเศษ.. กลุ่มผู้ดูแลเว็บ
    • http://www.gpsteawthai.com
    • <b>กลุ่มพิเศษ..</b>
  • สมาชิกลำดับที่: 1
smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
« เมื่อ: 12 พฤษภาคม 2557, เวลา 14:25:55 น. »
Share: โพสกระทู้นี้ลงใน Twitter ของคุณ  โพสกระทู้นี้ลงใน Facebook ของคุณ...                                 

โชว์รูปสมาชิกในโหมด 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;
}




ข  อ  เ  ป็  น  ข้  า  ร  อ  ง  บ  า  ท  ทุ  ก  ช  า  ติ  ไ  ป

พิจิตรบ้านเรา ดอทคอม   "เว็บบ้านเรา เพื่อคนบ้านเรา"
จีพีเอสเที่ยวไทย ดอทคอม  เว็บท่องเที่ยว-ถ่ายภาพ และพิกัดGPS
และอีกมากเว็บ ...!?

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

  • ผู้ใหญ่บ้าน..น๊ะจ๊ะ
  • Administrator
  • *
  • กดนิ้วโป้ง.! แทนคำขอบคุณ
  • -มอบให้: 52
  • -จึงได้รับ: 33
  • กระทู้: 5796
  • กำลังใจ : +266/-0
  • Tel/Line 0818462316 (วทพ.24, HS6LPZ)
  • ระบบปฏิบัติการ:
  • Windows XP Windows XP
  • เบราเซอร์:
  • Chrome 34.0.1847.131 Chrome 34.0.1847.131
  • กลุ่มพิเศษ.. กลุ่มผู้ดูแลเว็บ
    • http://www.gpsteawthai.com
    • <b>กลุ่มพิเศษ..</b>
  • สมาชิกลำดับที่: 1
Re: smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
« ตอบ #1 เมื่อ: 12 พฤษภาคม 2557, เวลา 14:29:09 น. »
Share: โพสกระทู้นี้ลงใน Twitter ของคุณ  โพสกระทู้นี้ลงใน Facebook ของคุณ...                                 
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;
}
ข  อ  เ  ป็  น  ข้  า  ร  อ  ง  บ  า  ท  ทุ  ก  ช  า  ติ  ไ  ป

พิจิตรบ้านเรา ดอทคอม   "เว็บบ้านเรา เพื่อคนบ้านเรา"
จีพีเอสเที่ยวไทย ดอทคอม  เว็บท่องเที่ยว-ถ่ายภาพ และพิกัดGPS
และอีกมากเว็บ ...!?

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

  • ผู้ใหญ่บ้าน..น๊ะจ๊ะ
  • Administrator
  • *
  • กดนิ้วโป้ง.! แทนคำขอบคุณ
  • -มอบให้: 52
  • -จึงได้รับ: 33
  • กระทู้: 5796
  • กำลังใจ : +266/-0
  • Tel/Line 0818462316 (วทพ.24, HS6LPZ)
  • ระบบปฏิบัติการ:
  • Windows XP Windows XP
  • เบราเซอร์:
  • Chrome 34.0.1847.131 Chrome 34.0.1847.131
  • กลุ่มพิเศษ.. กลุ่มผู้ดูแลเว็บ
    • http://www.gpsteawthai.com
    • <b>กลุ่มพิเศษ..</b>
  • สมาชิกลำดับที่: 1
Re: smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
« ตอบ #2 เมื่อ: 12 พฤษภาคม 2557, เวลา 14:29:51 น. »
Share: โพสกระทู้นี้ลงใน Twitter ของคุณ  โพสกระทู้นี้ลงใน Facebook ของคุณ...                                 
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;
}

ข  อ  เ  ป็  น  ข้  า  ร  อ  ง  บ  า  ท  ทุ  ก  ช  า  ติ  ไ  ป

พิจิตรบ้านเรา ดอทคอม   "เว็บบ้านเรา เพื่อคนบ้านเรา"
จีพีเอสเที่ยวไทย ดอทคอม  เว็บท่องเที่ยว-ถ่ายภาพ และพิกัดGPS
และอีกมากเว็บ ...!?

 

                             
GPStt.com จะแสดงผลถูกต้อง ฟ้อนต์สวยงาม เข้าเว็บได้เร็ว เมื่อท่านใช้เบราเซอร์ Chrome และ Firefox เท่านั้น ไม่รองรับ Internet Explorer  

กลุ่มท่องเที่ยว การท่องเที่ยว (ททท.) | ททท.ภาคกลาง | ททท.ภูมิภาคภาคตะวันออก | กรม อช.สัตว์ป่าและพันธุ์พืช | จองที่พัก อช.ระบบออนไลน์ | จังหวัดแม่ฮ่องสอน | ททท. สนง.แม่ฮ่องสอน | ศูนย์ศิลปาชีพ จ. แม่ฮ่องสอน | กระทรวงวัฒนธรรม | ศูนย์ข้อมูลมรดกโลก(ก.วัฒนธรรม) | สำนักอุทยานแห่งชาติ | เว็บโครงการหลวงฯ | แหล่งน้ำพุร้อนธรรมชาติ (สำนักงานพัฒนาการท่องเที่ยว)
การเดินทาง, เครื่องนำทาง การบินไทย | โอเรี่ยนไทย | แอร์เอเชีย | Solar Air | บางกอกแอร์เวย์ | บริษัทขนส่งจำกัด (บขส.) | การรถไฟแห่งประเทศไทย | สมบัติทัวร์ | สยามเฟิสท์ทัวร์ | นครชัยแอร์ | รถทัวร์ไทยดอทคอม | ฟรี.. แผนที่GPS ลาว กัมพูชา พม่า (ทั่วโลก) แบบเทพๆ | ดูกล้อง CCTV ทางหลวง 1 | ดูกล้อง CCTV ทางหลวง 2
ลิ้งค์ที่น่าสนใจทั่วไป.. ติดตามการส่งพัสดุEMS | ตรวจผลสลาก.. | speedtest.adslthailand.com | บอร์ดนักวิทยุสมัครเล่น | ตรวจสอบการเป็นนักวิทยุสมัครเล่นจากชื่อหรือนามเรียกขาน |ตรวจสอบนามเรียกขานที่ถูกยกเลิก | กสทช.กิจการวิทยุสมัครเล่น (เค้าอัพเดทแล้วนะ 31/1/60) | Checkdomain.com | ดาวน์โหลดวีดีโอจากเฟซบุ๊ค | ร้านซ่อมดอทคอม | แปลงไฟล์ออนไลน์ youtube เป็น mp3 ลิ้งค์1, ลิ้งค์2, ลิ้งค์3 | convert PDF to JPG | ตระกูลแปลงไฟล์ | แปลงไฟล์ ภาพ webp เป็น jpg | หมากรุกออนไลน์ | ทีวีออนไลน์ | แปลงไฟล์เสียงออนไลน์ | ศูนย์ต่อต้านข่าวปลอม ประเทศไทย | หมากรุกออนไลน์ | เว็บแปลงค่า-1 | เว็บแปลงค่า-2 | ค้นหาและแบ่งปันหมายเลขโทรศัพท์ที่ไม่รู้จัก | แปลงลิ้งค์ URL ให้สั้นลง | โปรแกรม PhotoRoom ลบฉากหลังของภาพออนไลน์ | เช็คคีย์บอร์ดออนไลน์ ก่อนเสียเงินซื้อใหม่ |