Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Miscaleneous modifications from Stoker
Stoker
Site Admin
Posts: 3536 Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:
Post
by Stoker » 13 Mar 2013, 07:34
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
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
kevinviet
BBCoder III
Posts: 123 Joined: 06 Mar 2010, 04:52
Post
by kevinviet » 13 Mar 2013, 09:06
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.
Stoker
Site Admin
Posts: 3536 Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:
Post
by Stoker » 13 Mar 2013, 13:36
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
Nully
Donator
Posts: 258 Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:
Post
by Nully » 15 Mar 2013, 21:01
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
Stoker
Site Admin
Posts: 3536 Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:
Post
by Stoker » 16 Mar 2013, 08:30
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
Nully
Donator
Posts: 258 Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:
Post
by Nully » 16 Mar 2013, 13:23
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?
Nully
Donator
Posts: 258 Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:
Post
by Nully » 16 Mar 2013, 14:13
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).
Nully
Donator
Posts: 258 Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:
Post
by Nully » 17 Mar 2013, 21:18
Hello! Did I said something wrong?
Stoker
Site Admin
Posts: 3536 Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:
Post
by Stoker » 17 Mar 2013, 21:55
Yes, you didnt say something not correct
Board rules! No PM support