PhpBB Countdown MOD

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

Save files, upload all files and run the installer
Is it necessary to run the installer ?
Is it'nt it enough just to modify and upload the files ?
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 »

Do I use to lie to you guys Nully? :D
Board rules! No PM support
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

PhpBB3 Countdown MOD

Post by kevinviet »

Hello Stoker

Can you please check this code? I think there might be something wrong in it. Because when I use it, it doesn't display the time right its display this %

This code is original from the install .xml

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>",
		direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
If I replaced the code above with the old code from version 1.0.0 then the time is display right.

Code: Select all

htmlTemplate: "<span class='cd-time'>{COUNTDOWN_TEXT}</span>  %{d} <span class=\"cd-time\">{L_DAYS}</span> %{h} <span class=\"cd-time\">{L_HOURS}</span> %{m} <span class=\"cd-time\">{L_MINUTES}</span> %{s} <span class=\"cd-time\">{L_SECONDS}</span>",
		direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
Well, but the old code, there is no display countdown year or month
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:

PhpBB3 Countdown MOD

Post by martin123456 »

Thanx it installs and works perfect.

Note if you use auto mod some edits get missed ;) so just take 5 and recheck
User avatar
mikef35
BBCoder III
BBCoder III
Posts: 147
Joined: 23 Feb 2012, 21:45

PhpBB3 Countdown MOD

Post by mikef35 »

I am also having trouble, the timezone option does not seem to work. It should display the same countdown to all no matter what timezone you are in, if it is enabled. When I enabled the timezone users still see different times according to what time zone they are in.
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 »

Stoker wrote:Do I use to lie to you guys Nully? :D
No, no. Never :D
But I need strong and repeated instructions for my (stupid) mind. :lol:

I will update next week, after my countdown online will end.
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 »

kevinviet wrote:Hello Stoker

Can you please check this code? I think there might be something wrong in it. Because when I use it, it doesn't display the time right its display this %

This code is original from the install .xml

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>",
		direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
If I replaced the code above with the old code from version 1.0.0 then the time is display right.

Code: Select all

htmlTemplate: "<span class='cd-time'>{COUNTDOWN_TEXT}</span>  %{d} <span class=\"cd-time\">{L_DAYS}</span> %{h} <span class=\"cd-time\">{L_HOURS}</span> %{m} <span class=\"cd-time\">{L_MINUTES}</span> %{s} <span class=\"cd-time\">{L_SECONDS}</span>",
		direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
Well, but the old code, there is no display countdown year or month
You might have forgotten to uploaded the new included js countdown file.

mikef35 wrote:I am also having trouble, the timezone option does not seem to work. It should display the same countdown to all no matter what timezone you are in, if it is enabled. When I enabled the timezone users still see different times according to what time zone they are in.
mikef35 wrote:I am also having trouble, the timezone option does not seem to work. It should display the same countdown to all no matter what timezone you are in, if it is enabled. When I enabled the timezone users still see different times according to what time zone they are in.
Weird, check your edits. Or as usual, post a link so I can have a look.
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 »

Got I figured out, I did not update the js script.
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 »

Hello,
I have some troubles.
I edited the files to add the modification for last version 1.0.2.
I replaced jquery.min.js and jquery.jcountdown.min.js

Then, you said to run the install file, so I did.
1) I had the errors :

Code: Select all

ERREUR : la variable de configuration countdown_testmode existe déjà. (already exist)
ERREUR : la variable de configuration countdown_offset_enable existe déjà.
ERREUR : la variable de configuration countdown_offset existe déjà
On the last line it was written SUCCESS.

2) Question: in the ACP, in front of COUNTDOWN_OFFSET:, what do I have to write?

This is on localhost.

Edit
I noticed that on overall_header I had:

Code: Select all

<script src="{ROOT_PATH}script/jquery.jcountdown1.3.3.min.js" type="text/javascript"></script>
instead of jquery.jcountdown.min.js.
May be this was the cause of the error.
If so, please just tell me what to write in front of countdown_offset (sorry I do not understand what it means) :)
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 »

1. Doesnt matter.
2. Yes, I forgot to write that in the instructions. Must be: jquery.jcountdown.min.js
Board rules! No PM support
Locked