22 พฤษภาคม 2555, 16:36:12
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. +668-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: Special Member เปลี่ยนสี - เปลี่ยนขนาด ให้รายชื่อคนพิเศษ  (อ่าน 1511 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
  • ชื่อ: Special Member Name
  • ผู้เขียน: Fovist
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: New Feature
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 11 มีนาคม 2552
  • ต้นฉบับ: Special Member Name

รายละเอียด
      ฟีเจอร์หรือลูกเล่นของ Mod นี้จะช่วยให้คุณเปลี่ยนสีและเปลี่ยนขนาดชื่อ ให้กับสมาชิกบางคนได้ (คล้ายๆกับแอดมินใช้ชื่อเป็น HTML ได้)

ตัวอย่าง


แก้ไขไฟล์:

file Source.ModSetting.php

ค้นหา -->>
โค๊ด: [Select]
// Who's online.
array('check', 'who_enabled'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'',
// Special Member Name. by www.gorselsanatlar.org
array('check', 'special_member_name_enable'),
array('text', 'memberid'),
array('text', 'member_name_background'),
array('text', 'member_name_font_size'),

file Sources/BoardIndex.php

ค้นหา -->>
โค๊ด: [Select]
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';

แก้เป็น -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

file Themes/default/languages/Modifications.thai-utf8.php

ค้นหา -->>
โค๊ด: [Select]
?>

เพิ่มไว้ก่อน -->>
ขออภัย! ส่วนนี้สงวนไว้เฉพาะสมาชิกเท่านั้น กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

ลิงค์หัวข้อ: http://dexmore.com/topic/229
Windows XP    Firefox 3.5.7   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 23 มิถุนายน 2553, 20:35:22
สำหรับ SMF 2.0.xx

แก้ไขไฟล์:

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Who's online.
array('check', 'who_enabled'),

แก้เป็น -->>
โค๊ด: [Select]
// Who's online.
array('check', 'who_enabled'),
'',
// Special Member Name. by www.gorselsanatlar.org
array('check', 'special_member_name_enable'),
array('text', 'memberid'),
array('text', 'member_name_background'),
array('text', 'member_name_font_size'),

file $sourcedir/Subs-MembersOnline.php

ค้นหา -->>
โค๊ด: [Select]
// Some basic color coding...
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>';

แก้เป็น -->>
โค๊ด: [Select]
// Special Member Name by www.gorselsanatlar.org
if (!empty($modSettings['special_member_name_enable']) && (in_array($row['id_member'], explode(",",$modSettings['memberid']))))
{ $modSettings['member_name_font_size'] = empty($modSettings['member_name_font_size']) ? 10 : $modSettings['member_name_font_size'];
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . '; font-size: ' .$modSettings['member_name_font_size']. 'px; background-color: #' .$modSettings['member_name_background']. ';">' . $row['real_name'] . '</a>';
}
elseif (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>';

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
//Special Member Name by www.gorselsanatlar.org
$txt['special_member_name_enable'] = 'Special Member Name Enable?';
$txt['memberid'] = 'Member Id:<br /><span class="smalltext">Sample: <b>1,2,14,153</b> (You can enter more than one member id.)</span>';
$txt['member_name_background'] = 'Member Name Backround:<br /><span class="smalltext">Sample: <b>FFG</b> or <b>FFFGGF</b> (Just enter the 3 or 6 digit.)</span>';
$txt['member_name_font_size'] = 'Member Name Text Size(px):<br /><span class="smalltext">Sample: <b>15</b> (Forum standard 10(px). It is recommended that you do not enter the exaggerated values.)</span>';

ลิงค์หัวข้อ: http://dexmore.com/topic/229
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 17 พฤษภาคม 2555, 04:22:26

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla