เป็น Mod ที่ทำเพิ่มความารถ การนับเวลาย้อนหลัง สำหรับการใช้ประโยชน์ อยู่ที่ แต่ละท่านจะประยุกต์
เช่น วันขึ้นปีใหม่ , วันเกิดผู้ดูแลล หรือ นับถอยหลังเข้าสู่กิจกรรม
พัฒนาโดย : Stoker 4.0
Version : 2.0.0
phpBB Version(s) : 3.0.11
ดาวน์โหลดได้ที่ : http://www.phpbb3bbcodes.com/viewtopic. ... rettyPhoto วิธีการติดตั้ง
เปิดไฟล์ includes/functions.php
ค้นหา
โค้ด: เลือกทั้งหมด
'U_FAQ' => append_sid("{$phpbb_root_path}faq.$phpEx"),
โค้ด: เลือกทั้งหมด
// BEGIN Countdown
'COUNTDOWN_ENABLE' => (!empty($config['countdown_enable'])) ? true : false,
'COUNTDOWN_TESTMODE' => (!empty($config['countdown_testmode'])) ? true : false,
'COUNTDOWN_DIRECTION' => (!empty($config['countdown_direction'])) ? true : false,
'COUNTDOWN_DATE' => (isset($config['countdown_date'])) ? $config['countdown_date'] : '',
'COUNTDOWN_OFFSET_ENABLE' => (!empty($config['countdown_offset_enable'])) ? true : false,
'COUNTDOWN_OFFSET' => (isset($config['countdown_offset'])) ? $config['countdown_offset'] : '',
'COUNTDOWN_YEAR' => (!empty($config['countdown_year'])) ? true : false,
'COUNTDOWN_MONTH' => (!empty($config['countdown_month'])) ? true : false,
'COUNTDOWN_TEXT' => (isset($config['countdown_text'])) ? $config['countdown_text'] : '',
'COUNTDOWN_COMPLETE' => (isset($config['countdown_complete'])) ? $config['countdown_complete'] : '',
// END Countdown
ค้นหา
โค้ด: เลือกทั้งหมด
<!-- INCLUDE overall_header.html -->
โค้ด: เลือกทั้งหมด
<!-- IF COUNTDOWN_ENABLE -->
<script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
<script src="{ROOT_PATH}script/jquery.jcountdown.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
$("#time").countdown({
date: "{COUNTDOWN_DATE}",
onComplete: function( event ) {
$(this).html("{COUNTDOWN_COMPLETE}");
},
leadingZero: true,
<!-- IF COUNTDOWN_OFFSET_ENABLE -->
offset: {COUNTDOWN_OFFSET},
<!-- ENDIF -->
<!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH -->
yearsAndMonths: true,
<!-- ENDIF -->
htmlTemplate: "<span class='cd-time'>{COUNTDOWN_TEXT}</span><!-- IF COUNTDOWN_YEAR and COUNTDOWN_MONTH --> %y <span class=\"cd-time\">{L_COUNT_YEARS}</span><!-- ENDIF --><!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH --> %m <span class=\"cd-time\">{L_COUNT_MONTHS}</span><!-- ENDIF --> %d <span class=\"cd-time\">{L_DAYS}</span> %h <span class=\"cd-time\">{L_HOURS}</span> %i <span class=\"cd-time\">{L_MINUTES}</span> %s <span class=\"cd-time\">{L_SECONDS}</span>",
direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
});
});
// ]]>
</script>
<!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<a name="start_here"></a>
โค้ด: เลือกทั้งหมด
<!-- IF not S_IS_BOT and COUNTDOWN_ENABLE -->
<!-- IF (COUNTDOWN_TESTMODE and U_ACP) or not COUNTDOWN_TESTMODE -->
<div class="navbar timecount">
<div class="inner"><span class="corners-top"><span></span></span>
<span id="time"></span>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<!-- ENDIF -->
ค้นหา
โค้ด: เลือกทั้งหมด
input.disabled {
โค้ด: เลือกทั้งหมด
.timecount{
min-height:32px;
color:#c21017;
font-size:18px;
text-align:center;
margin-top:4px;
}
span.cd-time{
color:#222222;
}
โค้ด: เลือกทั้งหมด
install_countdown.php
ตัวอย่าง domain.tld/phpBB3/install_countdown.php
- จัดการ tab mod