Atakan KOC
06-12-2007, 10:00 PM
Rss Turkish character Problem Fix
By H.Atakan KO?
http://www.onsayfa.com/ - http://www.sonkonu.com/
Sanırım Bu Sorunada ??z?m Bulduk
Open File forum/includes/cron/rssposter.php
Find
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
Add Below
function trtrans ($str)
{
$trans = array("ğ" => "ğ",
"?".chr(158) => "Ğ",
"ı" => "ı",
"İ" => "İ",
"ç" => "?",
"Ç" => "?",
"ü" => "?",
"Ü" => "?",
"ö" => "?",
"Ö" => "?",
"?".chr(158) => "Ş",
"ş" => "ş",
"ß" => "?",
"ä" => "?",
"?".chr(132) => "?"
);
$out = strtr($str, $trans);
// $out = $str;
$badwordchars=array(
"\xe2\x80\x98","\xe2\x80\x99","\xe2\x80\x9a",
"\xe2\x80\x9b","\xe2\x80\xb2","\xe2\x80\xb5",
"\xe2\x80\x9c","\xe2\x80\x9d","\xe2\x80\x9e",
"\xe2\x80\x9f","\xe2\x80\xb3","\xe2\x80\xb6",
"\xe2\x80\xa6","\xe2\x82\xac","\xe2\x86\x92",
"\xe2\x86\x90","\xe2\x86\x91","\xe2\x86\x93",
"\xe2\x80\x94"
);
$fixedwordchars=array(
"?","?","?",
"‛","′","‵",
"?","?","?",
"‟","″","‶",
"?","?","→",
"←","↑","↓",
"—"
);
$out=str_replace($badwordchars,$fixedwordchars,$ou t);
return $out;
}
There 2 codes same from the given below so please change both of them.
Find
$itemdata->set('title', strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item))));
Replace
$itemdata->set('title', trtrans(strip_bbcode(convert_wysiwyg_html_to_bbcod e($feed['xml']->parse_template($feed['titletemplate'], $item)))));
find
$itemdata->set('pagetext', $pagetext);
replace
$itemdata->set('pagetext', trtrans($pagetext));
Find
$itemdata->set('title', strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item))));
Replace
$itemdata->set('title', trtrans(strip_bbcode(convert_wysiwyg_html_to_bbcod e($feed['xml']->parse_template($feed['titletemplate'], $item)))));
find
$itemdata->set('pagetext', $pagetext);
replace
$itemdata->set('pagetext', trtrans($pagetext));
TvPano (http://www.tvpano.com/) - Yabancı Dizi (http://www.tvpano.com/yabanci-dizi/) - Yerli Dizi (http://www.tvpano.com/yerli-dizi/) - Anime (http://www.tvpano.com/anime/)
By H.Atakan KO?
http://www.onsayfa.com/ - http://www.sonkonu.com/
Sanırım Bu Sorunada ??z?m Bulduk
Open File forum/includes/cron/rssposter.php
Find
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
Add Below
function trtrans ($str)
{
$trans = array("ğ" => "ğ",
"?".chr(158) => "Ğ",
"ı" => "ı",
"İ" => "İ",
"ç" => "?",
"Ç" => "?",
"ü" => "?",
"Ü" => "?",
"ö" => "?",
"Ö" => "?",
"?".chr(158) => "Ş",
"ş" => "ş",
"ß" => "?",
"ä" => "?",
"?".chr(132) => "?"
);
$out = strtr($str, $trans);
// $out = $str;
$badwordchars=array(
"\xe2\x80\x98","\xe2\x80\x99","\xe2\x80\x9a",
"\xe2\x80\x9b","\xe2\x80\xb2","\xe2\x80\xb5",
"\xe2\x80\x9c","\xe2\x80\x9d","\xe2\x80\x9e",
"\xe2\x80\x9f","\xe2\x80\xb3","\xe2\x80\xb6",
"\xe2\x80\xa6","\xe2\x82\xac","\xe2\x86\x92",
"\xe2\x86\x90","\xe2\x86\x91","\xe2\x86\x93",
"\xe2\x80\x94"
);
$fixedwordchars=array(
"?","?","?",
"‛","′","‵",
"?","?","?",
"‟","″","‶",
"?","?","→",
"←","↑","↓",
"—"
);
$out=str_replace($badwordchars,$fixedwordchars,$ou t);
return $out;
}
There 2 codes same from the given below so please change both of them.
Find
$itemdata->set('title', strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item))));
Replace
$itemdata->set('title', trtrans(strip_bbcode(convert_wysiwyg_html_to_bbcod e($feed['xml']->parse_template($feed['titletemplate'], $item)))));
find
$itemdata->set('pagetext', $pagetext);
replace
$itemdata->set('pagetext', trtrans($pagetext));
Find
$itemdata->set('title', strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item))));
Replace
$itemdata->set('title', trtrans(strip_bbcode(convert_wysiwyg_html_to_bbcod e($feed['xml']->parse_template($feed['titletemplate'], $item)))));
find
$itemdata->set('pagetext', $pagetext);
replace
$itemdata->set('pagetext', trtrans($pagetext));
TvPano (http://www.tvpano.com/) - Yabancı Dizi (http://www.tvpano.com/yabanci-dizi/) - Yerli Dizi (http://www.tvpano.com/yerli-dizi/) - Anime (http://www.tvpano.com/anime/)