PhpBB Countdown MOD

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

PhpBB3 Countdown MOD

Post by Stoker » 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: 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
Sure, I can install the mod for you ;)


User avatar
Nully
BBCoder IV
BBCoder IV
Posts: 248
Joined: 14 Mar 2010, 22:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria

PhpBB3 Countdown MOD

Post by Nully » 06 May 2012, 07:41

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: 3378
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

PhpBB3 Countdown MOD

Post by Stoker » 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: Select all

%i <span class=\"cd-time\">{L_MINUTES}</span> %s <span class=\"cd-time\">{L_SECONDS}</span>
Board rules! No PM support
Sure, I can install the mod for you ;)

User avatar
Nully
BBCoder IV
BBCoder IV
Posts: 248
Joined: 14 Mar 2010, 22:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria

PhpBB3 Countdown MOD

Post by Nully » 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

User avatar
Stoker
Site Admin
Site Admin
Posts: 3378
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

PhpBB3 Countdown MOD

Post by Stoker » 06 May 2012, 13:01

Are you using latest version of the mod.
I did remove sec and minute here and it wirked fine.
Board rules! No PM support
Sure, I can install the mod for you ;)


User avatar
Nully
BBCoder IV
BBCoder IV
Posts: 248
Joined: 14 Mar 2010, 22:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria

PhpBB3 Countdown MOD

Post by Nully » 06 May 2012, 13:15

Yes (I think so - Version:1.0.1).

It is online now, you can see...

User avatar
Stoker
Site Admin
Site Admin
Posts: 3378
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

PhpBB3 Countdown MOD

Post by Stoker » 06 May 2012, 14:07

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
Sure, I can install the mod for you ;)

User avatar
Nully
BBCoder IV
BBCoder IV
Posts: 248
Joined: 14 Mar 2010, 22:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria

PhpBB3 Countdown MOD

Post by Nully » 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.

User avatar
Stoker
Site Admin
Site Admin
Posts: 3378
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

PhpBB3 Countdown MOD

Post by Stoker » 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: 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
Sure, I can install the mod for you ;)

User avatar
mikef35
BBCoder III
BBCoder III
Posts: 147
Joined: 23 Feb 2012, 19:45

PhpBB3 Countdown MOD

Post by mikef35 » 12 May 2012, 17:44

Thank-You


Return to “Misc”

Who is online

Users browsing this forum: No registered users and 0 guests