PhpBB Countdown MOD

Miscaleneous modifications from Stoker
Locked
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:

PhpBB3 Countdown MOD

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

PhpBB3 Countdown MOD

Post by Nully »

No it does not work. I tried on localhost. The text disappeared and minutes, seconds are still there.
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:

PhpBB3 Countdown MOD

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

PhpBB3 Countdown MOD

Post 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
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:

PhpBB3 Countdown MOD

Post by Stoker »

Are you using latest version of the mod.
I did remove sec and minute here and it wirked fine.
Board rules! No PM support
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

PhpBB3 Countdown MOD

Post by Nully »

Yes (I think so - Version:1.0.1).

It is online now, you can see...
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:

PhpBB3 Countdown MOD

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

PhpBB3 Countdown MOD

Post 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.
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:

PhpBB3 Countdown MOD

Post 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.
Board rules! No PM support
User avatar
mikef35
BBCoder III
BBCoder III
Posts: 147
Joined: 23 Feb 2012, 21:45

PhpBB3 Countdown MOD

Post by mikef35 »

Thank-You
Locked