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

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

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: Birthday on Profile Summary แสดงวันเกิดในข้อมูลส่วนตัว  (อ่าน 927 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

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

รายละเอียด
      แสดงวัน/เดือน/ปี เกิดของสมาชิกในข้อมูลส่วนตัว

ตัวอย่าง


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $themesdir/Profile.template.php

ค้นหา -->>
โค๊ด: [Select]
echo '
</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt[231], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
</tr><tr>

แก้เป็น -->>
โค๊ด: [Select]
  list ($year, $month, $day) = explode('-', $context['member']['birth_date']);
$bday = $day == '00' ? '' : ($txt['months_titles'][(int) $month] . ' ' . $day . ($year != '0000' ? ', ' . $year : ''));

echo '
</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt[231], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
</tr>';

                        // Let's show it!
                        if (!empty($bday))
                          {
          echo '
            <tr>
                <td><b>', $txt['my_birthday'] ,': </b></td>
                <td>', $bday, '</td>
            </tr>';
      }

echo '
<tr>

file $languagesdir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['my_birthday'] = 'วันเกิด';

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


!Personal

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

แก้ไขไฟล์:

file $themesdir/Profile.template.php

ค้นหา -->>
โค๊ด: [Select]
if (!isset($context['disabled_fields']['gender']))
echo '
<tr>
<td><b>', $txt['gender'], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
</tr>';

แก้เป็น -->>
โค๊ด: [Select]
if (!isset($context['disabled_fields']['gender']))
echo '
<tr>
<td><b>', $txt['gender'], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
</tr>';

list ($year, $month, $day) = explode('-', $context['member']['birth_date']);
$bday = $day == '00' ? '' : ($txt['months_titles'][(int) $month] . ' ' . $day . ($year != '0000' ? ', ' . $year : ''));

                        // Let's show it!
                        if (!empty($bday))
                          {
          echo '
            <tr>
                <td><b>', $txt['my_birthday'] ,': </b></td>
                <td>', $bday, '</td>
            </tr>';
      }

file l$anguagesdir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['my_birthday'] = 'วันเกิด';

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

Creative Commons License

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

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 19 พฤษภาคม 2555, 23:37:16

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