หมวดไฟฟ้า/อิเล็กทรอนิกส์/คอมพิวเตอร์ => ห้อง SMF 2.0.X => Programming => ห้องคอมพิวเตอร์ => ห้อง MOD => ข้อความที่เริ่มโดย: Auto Man ที่ 21 เมษายน 2559, 13:18:37
-
ของผมเห็นมันแสดงแต่ ปฏิทินเร็วๆ นี้อย่างเดียว ไม่เห็นจะแสดงวันเกิดเร็วๆ นี้เลยครับ
ได้ภาพ วิธีด้วยจะดีมากครับผม
รบกวนผู้รู้ด้วยครับ
ขอบคุณครับ
ไปดูต่อที่นี่เลย มันเยอะ :(
http://www.justusers.net/forum/index.php/topic,2724.0.html
-
แหล่งที่มา http:custom.simplemachines.org/mods/index.php?mod=892
/Sources/Subs.php
ค้นหา
$high_date = strftime('%Y-%m-%d', forum_time(false) + $modSettings['cal_days_for_index'] * 24 * 3600);
ใส่หลังที่ค้นหา
// Prevent errors from occurring.
if(empty($modSettings['cal_bdays_for_index']))
$modSettings['cal_bdays_for_index'] = 7;
ค้นหา
$bday = calendarBirthdayArray($low_date, $high_date);
วางทับที่ค้นหา
$bday = calendarBirthdayArray($low_date, strftime('%Y-%m-%d', forum_time(false) + $modSettings['cal_bdays_for_index'] * 24 * 3600));
/Themes/default/ManageCalendar.template.php
ค้นหา
</tr><tr class="windowbg2">
<td align="right">', $txt['setting_cal_days_for_index'], ':</td>
<td><input type="text" name="cal_days_for_index" value="', $modSettings['cal_days_for_index'], '" size="40" /></td>
ใส่หลังที่ค้นหา
</tr><tr class="windowbg2">
<td align="right">', $txt['setting_cal_bdays_for_index'], ':</td>
<td><input type="text" name="cal_bdays_for_index" value="', (!empty($modSettings['cal_bdays_for_index']) ? $modSettings['cal_bdays_for_index'] : 7) , '" size="40" /></td>
/Themes/default/languages/Modifications.english.php
ค้นหา
?>
วางก่อนที่ค้นหา
$txt['setting_cal_bdays_for_index'] = 'Days in advance to show birthdays';
/Themes/default/languages/Modifications.thai.php
ค้นหา
?>
วางก่อนที่ค้นหา
$txt['setting_cal_bdays_for_index'] = 'แสดงวันเกิดล่วงหน้า';
-
แต่สำหรับ SMF 2.0.11 ไม่เหมือนใน 2 ไฟล์แรก
จะแก้ที่ไฟล์
1. ./Sources/ManageCalendar.php กับ
2. ./Sources/Subs-Calendar.php ส่วนไฟล์ที่เหลืออีกสองไฟล์ คงเหมือนกัน
:-*
แต่ค้นไปค้นมา ใน SMF 2.0.11 มันมีความสามารถนี้อยู่แล้ว เพียงแต่ไปเปิดใช้งาน
โดยแอดมิน เข้าไปที่ ผู้ดูแลบอร์ด --> ปฏิทิน อะไรประมาณนี้ล่ะ
แต่ของเขานี่ แจ่มไปเลย
ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
(http://upic.me/show/58366744)