Page 13 of 31

PhpBB3 Countdown MOD

Posted: 06 May 2012, 08:30
by Stoker
There is no ACP control for it.

Im not sure what happens if you remove the code from this line

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_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

Posted: 06 May 2012, 09:41
by Nully
No it does not work. I tried on localhost. The text disappeared and minutes, seconds are still there.

PhpBB3 Countdown MOD

Posted: 06 May 2012, 09:54
by Stoker
Well, I just tested it too and it does work.
Make sure to remove all the code for mins and secs:

Code: Select all

%i <span class=\"cd-time\">{L_MINUTES}</span> %s <span class=\"cd-time\">{L_SECONDS}</span>

PhpBB3 Countdown MOD

Posted: 06 May 2012, 11:59
by Nully
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

Posted: 06 May 2012, 15:01
by Stoker
Are you using latest version of the mod.
I did remove sec and minute here and it wirked fine.

PhpBB3 Countdown MOD

Posted: 06 May 2012, 15:15
by Nully
Yes (I think so - Version:1.0.1).

It is online now, you can see...

PhpBB3 Countdown MOD

Posted: 06 May 2012, 16:07
by Stoker
You deleted more than I told you to :)
Only delete the part posted here: viewtopic.php?f=45&t=1595&p=12941#p12937

PhpBB3 Countdown MOD

Posted: 06 May 2012, 16:27
by Nully
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

Posted: 12 May 2012, 19:09
by Stoker
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: Select all

.timecount{
	color:#c21017;
Add after:

Code: Select all

min-height:32px;
Open: styles/prosilver/template/overall_header.html
Find:

Code: Select all

leadingZero: true,
Add after:

Code: Select all

<!-- IF COUNTDOWN_OFFSET_ENABLE -->
		offset: {COUNTDOWN_OFFSET},
		<!-- ENDIF -->
Open: includes/functions.php
Find:

Code: Select all

'COUNTDOWN_MONTH'	            => $config['countdown_month'],
Add after:

Code: Select all

 'COUNTDOWN_OFFSET_ENABLE'		=> $config['countdown_offset_enable'],
	   'COUNTDOWN_OFFSET'		        => $config['countdown_offset'],
Open: includes/acp/acp_board.php
Find:

Code: Select all

'countdown_date'				=> array('lang' => 'COUNTDOWN_DATE',			'validate' => 'string',	'type' => 'text:40:255', 'explain' => true),
Add after:

Code: Select all

'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

Posted: 12 May 2012, 19:44
by mikef35
Thank-You