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:

PhpBB Countdown MOD

Post by Stoker »

kevinviet wrote:Hello Stoker

I just updated from 1.0.2 to 2.0.0 version. Everything looks fine but some how it doesn't support other language than English in ACP, the old version 1.0.2 does. How do I fix it ?
Also the html image code dosen't work too :D
this what I use :

Code: Select all

<img src='http://www.abcd.com/images/announcement.png' style='width:30px; height:30px;' alt='' /> This site will close down :
Thanks
Support other languages??? Everything can be translated.

Bugfix for the missing html
Open includes/functions.php
Find:

Code: Select all

'COUNTDOWN_TEXT'			=> (isset($config['countdown_text'])) ? $config['countdown_text'] : '',
		'COUNTDOWN_COMPLETE'		=> (isset($config['countdown_complete'])) ? $config['countdown_complete'] : '',
Replace with:

Code: Select all

'COUNTDOWN_TEXT'			=> (isset($config['countdown_text'])) ? html_entity_decode($config['countdown_text']) : '',
		'COUNTDOWN_COMPLETE'		=> (isset($config['countdown_complete'])) ? html_entity_decode($config['countdown_complete']) : '',
Board rules! No PM support
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

PhpBB Countdown MOD

Post by kevinviet »

Thanks Stoker, the html code is working now :) but it still not support in Encode UTF-8 lang when I type in VN lang in the countdown text.
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:

PhpBB Countdown MOD

Post by Stoker »

I see.
Open includes/acp/acp_countdown_config.php
Find:

Code: Select all

set_config('countdown_text', request_var('countdown_text', ''));
			set_config('countdown_complete', request_var('countdown_complete', ''));
Replace with:

Code: Select all

set_config('countdown_text', utf8_normalize_nfc(request_var('countdown_text', '', true)));
			set_config('countdown_complete', utf8_normalize_nfc(request_var('countdown_complete', '', true)));
Board rules! No PM support
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

PhpBB Countdown MOD

Post by kevinviet »

Thanks Stoker :thumb:
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

PhpBB Countdown MOD

Post by Nully »

Indeed, I made a test on line with cyrillic caracters and they do not appear (I saw ????).
I made a test also with wampserver locally and last version countdown works with cyrillic letters...but it is with phpbb versio 3.0.10
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:

PhpBB Countdown MOD

Post by Stoker »

Please run tests of the mod functions.
I would like to know if there are any bugs before I make a bugfix release tomorrow :)
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:

PhpBB Countdown MOD

Post by Nully »

Stoker wrote:Please run tests of the mod functions.
Are you talking to me? Sorry, I don't understand (my head and language are bad).
What kind of test?
Do you mean I should apply the modifications you indicated for kevinviet and run the test again?
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

PhpBB Countdown MOD

Post by Nully »

Well, I had time to make a test.
I modified only :
includes/acp/acp_countdown_config.php
cyrillic letters appear OK!
You can have a look (only today).
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

PhpBB Countdown MOD

Post by Nully »

Hello! Did I said something wrong?
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:

PhpBB Countdown MOD

Post by Stoker »

Yes, you didnt say something not correct ;)
Board rules! No PM support
Locked