-
AuthorPosts
-
January 11, 2008 at 2:16 am #124936
Tried to solve the problem myself (didn’t want to bore somebody else) but failed. I’m trying to customize template for Russian language. The problem is with text in Flashnews module: first time or when being reload it shows header and text (news) correct (Russian header and Russian text) BUT only the first one. Next news load with the same header and “abracadabra” instead of Russian text. Next news – correct header and “abracadabra” in text area. When I put english texts – everything was Ok. With Russian – only first shown and headers (all of them).
Here is the link to see what I’m talking about: http://new.astrey-design.ru/What I did already:
1/ Change in index.php of template:
[PHP]
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1251″ />
<meta http-equiv=”Content-Type” content=”text/html; <?php echo _ISO; ?>” />
[/PHP]2/ Change in ja-newsflashloader.php:
[PHP]$current_charset = isset($charset) ? $charset : “WINDOWS-1251”;[/PHP]Nothing happened at all :((
Any help would be great.
Thanks In Advance.mfcphil Friendmfcphil
- Join date:
- September 2007
- Posts:
- 2866
- Downloads:
- 3
- Uploads:
- 218
- Thanks:
- 211
- Thanked:
- 388 times in 133 posts
January 11, 2008 at 12:22 pm #236226Seems odd that the first one works ok! how many item do you have published….try and do a few more, just in case its only the one that plays up.
you could do another five and they all work fine, you could then just delete the bad oneJanuary 11, 2008 at 3:49 pm #236234<em>@mfcphil 36700 wrote:</em><blockquote>Seems odd that the first one works ok! how many item do you have published….try and do a few more, just in case its only the one that plays up.
you could do another five and they all work fine, you could then just delete the bad one</blockquote>I have 3 items and the problem is that NOT the only one works good – the same item in next time shows bad too. When it is time to show the first item again – header is Ok and text is “abracadabra”. That what I’m trying to understand – WHY it is ok at firt time and than – not Ok at all? When I’m looking at the page trough index.txt file – I see this text in right way but it displays bad. So no matter how items I would have – they will show good first time and all the next time – bad. This problem is with non-English lang. only.
January 14, 2008 at 9:46 pm #236414Well, no ideas at all about the problem I have? :((
January 25, 2008 at 10:34 pm #2372262 weeks passed and no answer from support teem… Hello? Is there anybody who woyld hav any idea what to do with this problem? TIA
February 10, 2008 at 1:38 am #238773I have same problem in Thai charater.
I change this code:
1.add “CHARSET=TIS-620” => “TIS-620” in array charset.
2.chance line:
$current_charset = isset($charset) ? $charset : “ISO8859-1”;
to
$current_charset = isset($charset) ? $charset : “TIS-620”;
3.change line:
if ($current_charset == “UTF-8”) return $string;
to
if ($current_charset == “TIS-620”) return $string;Now, I can use JA Newsflash in Thai charset.
(my server default charset is TIS-620)February 13, 2008 at 4:08 pm #239086Thank you, psaingtong.
I looked at ja-newsflashloader.php file in module ja-newsflash and did what you sad (my charset is windows-1251) and it did help. I had no idea where to see and change charset in module, but now I do 🙂May 28, 2008 at 12:24 pm #250859Hi, I have the same problem with the French language,
Here is my code :[PHP] $current_charset = isset($charset) ? $charset : “UTF-8”;
$my = $mainframe->getUser();
$gid = intval( $my->gid );
$db = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix );$query = “SELECT params FROM #__modules WHERE module = ‘mod_janewsflash’;”;
$database->setQuery($query);
$params = $database->loadResult();
$params = new mosParameters ($params);function textprocess($string) {
global $current_charset;
if ($current_charset == “UTF-8”) return $string;[/PHP]Thank you for your help.
-
AuthorPosts
This topic contains 8 replies, has 4 voices, and was last updated by interclass 16 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum