PhpBB Countdown MOD

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

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']) : '',

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.

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)));

PhpBB Countdown MOD

Post by kevinviet »

Thanks Stoker :thumb:

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

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

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?

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).

PhpBB Countdown MOD

Post by Nully »

Hello! Did I said something wrong?

PhpBB Countdown MOD

Post by Stoker »

Yes, you didnt say something not correct ;)