PhpBB Countdown MOD

Miscaleneous modifications from Stoker
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

PhpBB Countdown MOD

Post by Stoker »

Try read to topic at Rich place about countdown and mchat.
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

PhpBB Countdown MOD

Post 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 .
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

PhpBB Countdown MOD

Post by martin123456 »

dmzx you can read the full topic and fix here http://blades-place.dyndns.info/viewtop ... 1006#p1006 all working on mine.
User avatar
dmzx
BBCoder II
BBCoder II
Posts: 23
Joined: 02 Mar 2014, 14:30
BBCodes: 0
Contact:

PhpBB Countdown MOD

Post 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
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

PhpBB Countdown MOD

Post by Nully »

Hello,
is it possible to show only hours and seconds?
User avatar
Sniper_E
BBCoder II
BBCoder II
Posts: 44
Joined: 04 Dec 2011, 06:30
BBCodes: 1
Contact:

PhpBB Countdown MOD

Post 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>
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

PhpBB Countdown MOD

Post by Nully »

Thank you Sniper_E :D
Yes it works, now only 3 hours left on my countdown :D
tjrayner
BBCoder I
BBCoder I
Posts: 3
Joined: 16 Jul 2014, 23:02
BBCodes: 2

PhpBB Countdown MOD

Post by tjrayner »

Please could you tell me if there is a way to place this in the header box?

Thanks
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

PhpBB Countdown MOD

Post 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 :)
Board rules! No PM support
tjrayner
BBCoder I
BBCoder I
Posts: 3
Joined: 16 Jul 2014, 23:02
BBCodes: 2

PhpBB Countdown MOD

Post by tjrayner »

Sorry I meant in the header block rather than in it's own block under the header
Locked