PhpBB3 Countdown MOD

06 May 2012, 06:30

There is no ACP control for it.

Im not sure what happens if you remove the code from this line
Code:
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>",


There is no ACP control for it.

PhpBB3 Countdown MOD

06 May 2012, 07:41

No it does not work. I tried on localhost. The text disappeared and minutes, seconds are still there.

PhpBB3 Countdown MOD

06 May 2012, 07:54

Well, I just tested it too and it does work.
Make sure to remove all the code for mins and secs:
Code:
%i <span class=\"cd-time\">{L_MINUTES}</span> %s <span class=\"cd-time\">{L_SECONDS}</span>

PhpBB3 Countdown MOD

06 May 2012, 09:59

Yes I removed as you told me, in overall_header.
I tried online. It does not work. The text disappeared and minutes, seconds are still there and in english!
But don't worry, have a nice sunday :D

PhpBB3 Countdown MOD

06 May 2012, 13:01

Are you using latest version of the mod.
I did remove sec and minute here and it wirked fine.

PhpBB3 Countdown MOD

06 May 2012, 13:15

Yes (I think so - Version:1.0.1).

It is online now, you can see...

PhpBB3 Countdown MOD

06 May 2012, 14:07

You deleted more than I told you to :)
Only delete the part posted here: Nully @ PhpBB3 Countdown MOD

PhpBB3 Countdown MOD

06 May 2012, 14:27

Yessssssss! Sorry, I understood you told me to be sure to remove also the last code you indicated. :?

Fine. In a few days I'll put again the original code, when minutes and seconds will be necessary.
Thanks a lot.

PhpBB3 Countdown MOD

12 May 2012, 17:09

Updated to version 1.0.2

New feature!
Timezone. Set default timezone for the countdown.

js by Tom Ellis updated


Update instructions
Open: styles/prosilver/theme/colours.css
Find:
Code:
.timecount{
   color:#c21017;

Add after:
Code:
min-height:32px;


Open: styles/prosilver/template/overall_header.html
Find:
Code:
leadingZero: true,

Add after:
Code:
<!-- IF COUNTDOWN_OFFSET_ENABLE -->
      offset: {COUNTDOWN_OFFSET},
      <!-- ENDIF -->


Open: includes/functions.php
Find:
Code:
'COUNTDOWN_MONTH'               => $config['countdown_month'],

Add after:
Code:
 'COUNTDOWN_OFFSET_ENABLE'      => $config['countdown_offset_enable'],
      'COUNTDOWN_OFFSET'              => $config['countdown_offset'],


Open: includes/acp/acp_board.php
Find:
Code:
'countdown_date'            => array('lang' => 'COUNTDOWN_DATE',         'validate' => 'string',   'type' => 'text:40:255', 'explain' => true),

Add after:
Code:
'countdown_offset_enable'      => array('lang' => 'COUNTDOWN_OFFSET_ENABLE',   'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => false),
                  'countdown_offset'            => array('lang' => 'COUNTDOWN_OFFSET',         'validate' => 'int',   'type' => 'text:3:4', 'explain' => true),


Save files, upload all files and run the installer.

PhpBB3 Countdown MOD

12 May 2012, 17:44

Thank-You