Page 19 of 31

PhpBB Countdown MOD

Posted: 13 Mar 2013, 07:34
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']) : '',

PhpBB Countdown MOD

Posted: 13 Mar 2013, 09:06
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.

PhpBB Countdown MOD

Posted: 13 Mar 2013, 13:36
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)));

PhpBB Countdown MOD

Posted: 14 Mar 2013, 01:15
by kevinviet
Thanks Stoker :thumb:

PhpBB Countdown MOD

Posted: 15 Mar 2013, 21:01
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

PhpBB Countdown MOD

Posted: 16 Mar 2013, 08:30
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 :)

PhpBB Countdown MOD

Posted: 16 Mar 2013, 13:23
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?

PhpBB Countdown MOD

Posted: 16 Mar 2013, 14:13
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).

PhpBB Countdown MOD

Posted: 17 Mar 2013, 21:18
by Nully
Hello! Did I said something wrong?

PhpBB Countdown MOD

Posted: 17 Mar 2013, 21:55
by Stoker
Yes, you didnt say something not correct ;)