Thai Year

Started by PaePae, January 08, 2006, 03:16:41 AM

Previous topic - Next topic

PaePae

Link to Mod

Quotev1.1a (maybe also v1.1) - Problem occurs when using Opera. Recommend to use v1.0 until next update.
> hxxp:smf.rcweb.net/index.php?topic=281.msg976#msg976 [nonactive] (in Thai)
Invalid Bug: I did not found the reported problem with Opera 8.51 build 7712 (latest version).


This mod converts year from Common/Christian Era (CE/AD) into Buddhist Era (BE, aka Thai year) which is officially used in Thailand. Only do conversion just before displaying on-screen, do nothing with real data stored in database. Birthdate on profile modification page is also in BE.

== New message string ==
$txt['thai_year_profile_birthdate_year']
- 'ปี พ.ศ. (YYYY)', if $txt['lang_character_set'] is set to 'TIS-620', the standard Thai character set.
- 'B.E. Year (YYYY)', if otherwise.
- You can change this for you own by setting the variable $txt['thai_year_profile_birthdate_year'] somewhere. (e.g. language file)

== Revision History ==
2006-01-09 v1.1a
- Experimental enforced user to specify birthdate in BE.

2006-01-09 v1.1
- Added feature, user can now specify birthdate in both CE and BE.

2006-01-05 v1.0
- Original version.
- Converted generated date strings from CE into BE.


ลิงก์ไปยัง mod

Quoteรุ่น 1.1a (และอาจรวมถึงรุ่น 1.1 ด้วย) - มีปัญหาในการใช้งานกับ Opera ขอให้ใช้รุ่น 1.0 ไปก่อนนะครับ
> hxxp:smf.rcweb.net/index.php?topic=281.msg976#msg976 [nonactive]
รายงานบั๊กไม่ถูกต้อง: จากการทดสอบด้วย Opera 8.51 build 7712 (รุ่นล่าสุด) แล้วไม่พบปัญหาตามที่มีการรายงานมาแต่อย่างใด


mod นี้จะเปลี่ยนปี ค.ศ. ให้กลายเป็นปี พ.ศ. ซึ่งจะเปลี่ยนเฉพาะการแสดงผล โดยไม่มีการแก้ไขข้อมูลจริงในฐานข้อมูลแต่อย่างใด และเปลี่ยนการระบุวันเกิดในหน้าแก้ไข profile ให้ใช้ปี พ.ศ.

== ข้อความใหม่ ==
$txt['thai_year_profile_birthdate_year']
- 'ปี พ.ศ. (YYYY)', หากกำหนดค่าตัวแปร $txt['lang_character_set'] เป็น 'TIS-620' ซึ่งเป็นค่ามาตรฐานการเข้ารหัสอักขระสำหรับภาษาไทย
- 'B.E. Year (YYYY)', หากเป็นค่าอื่น ๆ
- คุณสามารถกำหนดข้อความใหม่ได้ตามต้องการ โดยการเพิ่มการกำหนดค่าตัวแปร $txt['thai_year_profile_birthdate_year'] ไว้ที่ใดที่หนึ่ง (เช่น ในไฟล์ภาษา)

== ประวัติการปรับปรุง ==
9 มกราคม 2549 รุ่น 1.1a
- ทดลองเปลี่ยนการระบุวันเกิดในหน้า profile ให้ใช้ปี พ.ศ. เท่านั้น

9 มกราคม 2549 รุ่น 1.1
- เพิ่มวิธีการระบุวันเกิดให้ผู้ใช้งานสามารถใช้ได้ทั้งปี พ.ศ. และ ค.ศ.

5 มกราคม 2549 รุ่น 1.0
- เปลี่ยนวันที่ในข้อความของฟอรัมจากปี ค.ศ. เป็นปี พ.ศ.




Request for comment
The way you specify user's birthdate in v1.1 and v1.1a is different, which version do you prefer?
So I could make a decision to drop one or continue to build both versions for alternative preference.

ต้องการความเห็น
อยากทราบว่า ระหว่างวิธีการในรุ่น 1.1 และ 1.1a คุณจะเลือกใช้วิธีการระบุปีเกิดแบบไหน?
ถ้าหากมีคนใช้ทั้งสองแบบ ก็อาจจะทำทั้งสองแบบควบคู่กันไปเลย

OnceAgain


ขอบคุณท่าน PaePae มากครับ :)
hxxp:www.it-th.net [nonactive]

Tactics

Thank you  &  ขอบคุณครับ   :D

ADUL

ขอบคุณมากๆครับอิๆๆ

PaePae

#4
2006-01-09 v1.1
- Added feature, user can now specify birthdate in both CE and BE.

9 มกราคม 2549 รุ่น 1.1
- เพิ่มวิธีการระบุวันเกิดให้ผู้ใช้งานสามารถใช้ได้ทั้งปี พ.ศ. และ ค.ศ.


PaePae

2006-01-09 v1.1a
- Experimental enforced user to specify birthdate in BE.

9 มกราคม 2549 รุ่น 1.1a
- ทดลองเปลี่ยนการระบุวันเกิดในหน้า profile ให้ใช้ปี พ.ศ. เท่านั้น




Request for comment
The way you specify user's birthdate in v1.1 and v1.1a is different, which version do you prefer?
So I could make a decision to drop one or continue to build both versions for alternative preference.

ต้องการความเห็น
อยากทราบว่า ระหว่างวิธีการในรุ่น 1.1 และ 1.1a คุณจะเลือกใช้วิธีการระบุปีเกิดแบบไหน?
ถ้าหากมีคนใช้ทั้งสองแบบ ก็อาจจะทำทั้งสองแบบควบคู่กันไปเลย

OnceAgain

#6

สุดยอดครับ



บังคับไปเลยว่าใช้แบบนี้ก็ดีครับ จะได้ไม่สับสน  และถ้าไม่ยุ่งยากมากนัก อยากให้ทำแบบไทยๆ คือ วันที่-เดือน-พ.ศ. ครับ

ผมใช้ธีมเดิม ก็เลยต้องนำ Mod มาแก้ไขเอง  ขอบคุณมากครับ

hxxp:www.it-th.net [nonactive]

win8070

:) Thank You Very Much → Mr. PaePae :)

:) ขอบคุณมากค่ะ ท่าน PaePae :)

PaePae

#8
v1.1a (maybe also v1.1) - Problem occurs when using Opera. Recommend to use v1.0 until next update.

รุ่น 1.1a (และอาจรวมถึงรุ่น 1.1 ด้วย) - มีปัญหาในการใช้งานกับ Opera ขอให้ใช้รุ่น 1.0 ไปก่อนนะครับ

hxxp:smf.rcweb.net/index.php?topic=281.msg976#msg976 [nonactive]


ขอบคุณสำหรับความเห็นนะครับ คุณ OnceAgain คิดจะลองเปลี่ยนเป็น วัน-เดือน-ปี อยู่เหมือนกันครับ ;)

PaePae

#9
Quote from: PaePae on January 10, 2006, 01:40:05 PM
v1.1a (maybe also v1.1) - Problem occurs when using Opera. Recommend to use v1.0 until next update.

รุ่น 1.1a (และอาจรวมถึงรุ่น 1.1 ด้วย) - มีปัญหาในการใช้งานกับ Opera ขอให้ใช้รุ่น 1.0 ไปก่อนนะครับ

hxxp:smf.rcweb.net/index.php?topic=281.msg976#msg976 [nonactive]

Invalid Bug: I did not found the reported problem with Opera 8.51 build 7712 (latest version).

รายงานบั๊กไม่ถูกต้อง: จากการทดสอบด้วย Opera 8.51 build 7712 (รุ่นล่าสุด) แล้วไม่พบปัญหาตามที่มีการรายงานมาแต่อย่างใด

ncknight

Hi there,

Would there be a way to AUTO-SELECT the calendar based on:

- the user's location (ie. if location is specified as Thailand)
- the user's choice during registration (to view dates in Thailand calendar)
- sensing the user's browser encoding

Many thanks!

lionnoil

รอของ1.1.2อยู่นะขอบคุณ

avth

ขอบคุณคร้า

Advertisement: