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

เว็บพิจิตรบ้านเราฯ  (7 พ.ย. 60) เราได้ปรับเป็นเว็บสาธารณะเต็มรูปแบบ

สมาชิกสารพัดโพสเชิญตามสะดวก ยกเว้นการพนันทุกชนิดเราไม่ต้อนรับ
theterraceview-khaokho แนชเชอรัล รีสอร์ต (Nat's Resort) พิจิตร Welcome to JustUsers.net เว็บทรีโอแมส

....:::: คำขวัญจังหวัดพิจิตร :   ถิ่นประสูติพระเจ้าเสือ แข่งเรือยาวประเพณี พระเครื่องดีหลวงพ่อเงิน เพลิดเพลินบึงสีไฟ ศูนย์รวมใจหล่วงพ่อเพชร รสเด็ดส้มท่าข่อย ข้าวเจ้าอร่อยลือเลื่อง ตำนานเมืองชาละวัน ::::....         "เว็บพิจิตรบ้านเราดอทคอม"   เว็บบ้านเรา เพื่อคนบ้านเรา    (สามารถสมัครสมาชิกเว็บ ผ่านเฟซบุ๊ค ผ่านเมล์ยาฮู ผ่านบัญชีกูเกิล)         แล้งน้ำ, น้ำท่วม, ลดโลกร้อน เพื่อแก้ปัญหาในระยะยาวในเรื่องดังกล่าว ทางเว็บพิจิตรบ้านเรา ขอร่วมรณรงค์ให้พี่น้องช่วยกันปลูกป่าทั่วแผ่นดินเพื่อแก้ปัญหาระยะยาว เช่น ท่านที่อยู่ต้นน้ำตามภูเขาที่ลาดชัน หรือตามท้องไร่ท้องนาหัวคันนา ปลูกเท่าที่ทำได้ ทำตอนนี้ลูกหลานเราจะได้ไม่เดือดร้อน ...         เรา..ทำเว็บในรูปแบบสาธารณะสำหรับพิจิตรบ้านเรา เพื่อเป็นสื่อกลางแลกเปลี่ยน นำเสนอสิ่งต่างๆสู่สังคมภายนอก ท่านใดต้องการเสนอแนะติชม เพิ่มเติม/ลดหัวข้อต่างๆ ภายในเว็บ เรายินดีรับฟัง ทุกความเห็น         ขณะนี้...ทางเว็บ เปิดรับ "นักข่าวอาสา และผู้ดูแลบอร์ด" ที่มีจิตอาสาไม่จำกัดจำนวน มีความรู้การใช้กล้องประจำตัวได้ดีพอควร สนใจข่าวสารต่างๆในท้องถิ่น หรือใช้เวลาว่างๆตอนไหนก็ได้เพื่อป้อนข่าวสารต่างๆลงเว็บ ท่านใดสนใจสมัครเป็นสมาชิกและแจ้งความประสงค์ให้ทางเว็บ หรืออีเมล์ของเว็บก็ได้...

E23MQX

ยินดีต้อนรับสู่..     "เว็บพิจิตรบ้านเราดอทคอม"     "เว็บสาธารณะบ้านเรา เพื่อคนบ้านเรา"
กลุ่มเว็บ GPStt.com     กลุ่มเว็บลูกหลานชาวพิจิตร
เชิญพี่น้องพิจิตรบ้านเราทุกท่านเข้าไปใช้ประโยชน์ตามสะดวก หรือต้องการให้ปรับปรุงแก้ไข เพิ่ม/ลดอะไร กรุณาแจ้งได้ที่ ลุงยอด ณ สามง่าม มือถือ 095-3949895
  การโพสต์ฝากประชาสัมพันธ์ต่างๆ ที่ไม่เกี่ยวกับจังหวัดพิจิตร และพี่น้องชาวพิจิตรทุกชนิด กรุณาไปใช้บอร์ด หมวดบอร์ดฝากประชาสัมพันธ์ต่างๆ เท่านั้น...  
จะมีบางบอร์ดเท่านั้น ที่ผู้ดูแลเว็บอนุญาตเฉพาะรายบุคคลเข้าไปโพสต์


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

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

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

  • Administrator 2
  • กดนิ้วโป้ง.! แทนคำขอบคุณ
  • -มอบให้: 77
  • -จึงได้รับ: 48

  • ไม่อยู่
  • *
  • ลูกพ่อหลิม-แม่อ่อน ทางเข้า วัดท่าคล้อ อ.สากเหล็ก จ.พิจิตร HS6LPZ

  • 665
  • กำลังใจ :
    +12/-0
    • เว็บจีพีเอสเที่ยวไทยดอทคอม
  • สมาชิกลำดับที่: 2
smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
« เมื่อ: 09 เมษายน 2557, เวลา 20:27:21 น. »
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;
}




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





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


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

  • Administrator 2
  • กดนิ้วโป้ง.! แทนคำขอบคุณ
  • -มอบให้: 77
  • -จึงได้รับ: 48

  • ไม่อยู่
  • *
  • ลูกพ่อหลิม-แม่อ่อน ทางเข้า วัดท่าคล้อ อ.สากเหล็ก จ.พิจิตร HS6LPZ

  • 665
  • กำลังใจ :
    +12/-0
    • เว็บจีพีเอสเที่ยวไทยดอทคอม
  • สมาชิกลำดับที่: 2
Re: smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
« ตอบ #1 เมื่อ: 09 เมษายน 2557, เวลา 20:29:15 น. »
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;
}



ที่มา...
http://www.gpsteawthai.com/index.php/topic,1273.0.html
" ข อ เ ป็ น ข้ า ร อ ง บ า ท ทุ ก ช า ติ ไ ป "





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


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

  • Administrator 2
  • กดนิ้วโป้ง.! แทนคำขอบคุณ
  • -มอบให้: 77
  • -จึงได้รับ: 48

  • ไม่อยู่
  • *
  • ลูกพ่อหลิม-แม่อ่อน ทางเข้า วัดท่าคล้อ อ.สากเหล็ก จ.พิจิตร HS6LPZ

  • 665
  • กำลังใจ :
    +12/-0
    • เว็บจีพีเอสเที่ยวไทยดอทคอม
  • สมาชิกลำดับที่: 2
Re: smf _ โชว์รูปสมาชิกในโหมด Online (ผู้ดูแลเว็บฯ)
« ตอบ #2 เมื่อ: 09 เมษายน 2557, เวลา 20:30:04 น. »
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;
}




ที่มา...
http://www.gpsteawthai.com/index.php/topic,1273.0.html
" ข อ เ ป็ น ข้ า ร อ ง บ า ท ทุ ก ช า ติ ไ ป "





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


 

แนชเชอรัล รีสอร์ต (Nat's Resort) พิจิตร
เว็บนี้ จะแสดงผลถูกต้อง ฟ้อนต์สวยงาม เข้าเว็บได้เร็ว เมื่อท่านใช้เบราเซอร์ Chrome และ Firefox เท่านั้น ไม่รองรับ Internet Explorer  
แลกลิ้งค์ / ติดต่อเรา web.phichitbaanrao@gmail.com © สงวนลิขสิทธิ์ข้อมูลในเว็บนี้ตามกฎหมาย ท่านสามารถนำไปเผยแพร่ได้แต่ต้องทำลิ้งค์กลับมา
                                                     

เว็บส่วนราชการ เว็บจังหวัดพิจิตร | สนง.ประชาสัมพันธ์พิจิตร | สนง.เทศบาลเมืองพิจิตร | สนง.เทศบาลตำบลสากเหล็ก | สนง.ขนส่งพิจิตร | สนง.วัฒนธรรมพิจิตร | ศูนย์อุทกวิทยาและบริหารน้ำภาคเหนือตอนล่าง | ระบบตรวจวัดสถานะภาพน้ำทางไกลอัตโนมัติ ลุ่มน้ำยมและน่าน | ศูนย์ดำรงธรรมพิจิตร
เว็บสถานศึกษา วิทยาลัยเทคนิคพิจิตร | โรงเรียนพิจิตรพิทยาคม | โรงเรียนหัวดงรัฐชนูปถัมภ์ | โรงเรียนตะพานหิน | โรงเรียนบางมูลนากภูมิวิทยาคม | โรงเรียนท่าเสาพิทยาคม | โรงเรียนเขาทรายทับคล้อพิทยา | โรงเรียนดงเจริญพิทยาคม | โรงเรียนสากเหล็กวิทยา | โรงเรียนวังทรายพูนวิทยา | โรงเรียนสามง่ามชนูปถัมภ์ | โรงเรียนวชิรบารมีพิทยาคม | โรงเรียนวังโมกข์พิทยาคม | โรงเรียนบ้านวังอ้อ (ต.ท่าเยี่ยม)
เว็บทั่วไป สวนมะนาวแป้นท้ายไร่บ้านวังกระทึง ต.เนินปอ อ.สามง่าม | เว็บเกษตรพอเพียงดอทคอม | เว็บเรือยาว ไทยลองโบ้ท | เว็บหลวงปู่จันทา ถาวโร | ฟรี.. แผนที่GPS ลาว กัมพูชา พม่า (ทั่วโลก) แบบเทพๆ | ดูกล้อง CCTV ทางหลวง 1 | ดูกล้อง CCTV ทางหลวง 2 | เช็คความเร็วเน็ต - adslthailand.com | บอร์ดนักวิทยุสมัครเล่น | ตรวจสอบการเป็นนักวิทยุสมัครเล่นจากชื่อหรือนามเรียกขาน | ตรวจสอบนามเรียกขานที่ถูกยกเลิก | เว็บโหลด youtube เป็น mp3 หรือ VCD ลิ้งค์1 ลิ้งค์2 | ตรวจผลสลาก.. | ติดตามการส่งพัสดุ EMS | กสทช.กิจการวิทยุสมัครเล่น (เค้าอัพเดทแล้วนะ 31/1/60) | ทีปบางพลัดดอทคอม หรือ ทีป อิเล็คทรอนิคส์ | ร้านซ่อมดอทคอม
เว็บกลุ่มเดินทาง การบินไทย | โอเรี่ยนไทย | แอร์เอเชีย | Solar Air | บางกอกแอร์เวย์ | บริษัทขนส่งจำกัด (บขส.) | การรถไฟแห่งประเทศไทย | สมบัติทัวร์ | สยามเฟิสท์ทัวร์ | นครชัยแอร์ | รถทัวร์ไทยดอทคอม

หน่วยงานรัฐ-เอกชนใน จ.พิจิตร ต้องการฝากลิ้งค์ ติดต่อ     น้ายอด สามง่าม   มือถือ 095-3949895     อีเมล์: web.phichitbaanrao@gmail.com