Page 29 of 31

PhpBB Countdown MOD

Posted: 06 Apr 2014, 10:52
by Stoker
Try read to topic at Rich place about countdown and mchat.

PhpBB Countdown MOD

Posted: 06 Apr 2014, 12:14
by martin123456
Find and delete

Code: Select all

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
Find

Code: Select all

<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
Add after

Code: Select all

<script type="text/javascript" src="{ROOT_PATH}script/jquery-1.8.3.min.js"></script>
<script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
<!-- IF COUNTDOWN_ENABLE -->
<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_COUNT_DAYS}</span> %h <span class=\"cd-time\">{L_COUNT_HOURS}</span> %i <span class=\"cd-time\">{L_COUNT_MINUTES}</span> %s <span class=\"cd-time\">{L_COUNT_SECONDS}</span>",
      direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
   });
});
// ]]>
</script>
<!-- ENDIF -->
make sure you have jquery-1.8.3.min.js in the script folder in your root .

PhpBB Countdown MOD

Posted: 06 Apr 2014, 14:08
by martin123456
dmzx you can read the full topic and fix here http://blades-place.dyndns.info/viewtop ... 1006#p1006 all working on mine.

PhpBB Countdown MOD

Posted: 07 Apr 2014, 20:54
by dmzx
martin123456 wrote:dmzx you can read the full topic and fix here http://blades-place.dyndns.info/viewtop ... 1006#p1006 all working on mine.
working thanks martin123456

PhpBB Countdown MOD

Posted: 24 Jun 2014, 11:26
by Nully
Hello,
is it possible to show only hours and seconds?

PhpBB Countdown MOD

Posted: 24 Jun 2014, 16:21
by Sniper_E
Try taking this code:

Code: Select all

      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_COUNT_DAYS}</span> %h <span class=\"cd-time\">{L_COUNT_HOURS}</span> %i <span class=\"cd-time\">{L_COUNT_MINUTES}</span> %s <span class=\"cd-time\">{L_COUNT_SECONDS}</span>",
And remove this section of that line:

Code: Select all

<!-- 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_COUNT_DAYS}</span>

PhpBB Countdown MOD

Posted: 24 Jun 2014, 17:03
by Nully
Thank you Sniper_E :D
Yes it works, now only 3 hours left on my countdown :D

PhpBB Countdown MOD

Posted: 16 Jul 2014, 23:03
by tjrayner
Please could you tell me if there is a way to place this in the header box?

Thanks

PhpBB Countdown MOD

Posted: 17 Jul 2014, 04:57
by Stoker
tjrayner wrote:Please could you tell me if there is a way to place this in the header box?

Thanks
It is in the header :)

PhpBB Countdown MOD

Posted: 17 Jul 2014, 08:36
by tjrayner
Sorry I meant in the header block rather than in it's own block under the header