Dosyayı Editör Problemi İle Açın forum/includes/cron/rssposter.php
Aşağıdaki Kodu Arayın
PHP- Kodu:
Kod: // ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
Altına Bu Kodu Ekleyin
PHP- Kodu:
Kod: [b]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,$out);
return $out;
}[/b]
Aşağıda verilen kodlardan ikişer tane bulunmakta. Her ikisinide değiştirin.
Aşağıdaki Kodu Bulun
PHP- Kodu:
Kod: $itemdata->set('title', strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item))));
Altdaki Kod İle Değiştirin
PHP- Kodu:
Kod: $itemdata->set('title', trtrans(strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item)))));
Aşağıdaki Kodu Bulun
PHP- Kodu:
Kod: $itemdata->set('pagetext', $pagetext);
Aşağıdaki Kod İle Değiştirin
PHP- Kodu:
Kod: $itemdata->set('pagetext', trtrans($pagetext));
Aşağıdaki Kodu Bulun
PHP- Kodu:
Kod: $itemdata->set('title', strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item))));
Aşağıdaki Kod İle Değiştirin
PHP- Kodu:
Kod: $itemdata->set('title', trtrans(strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item)))));
Aşağıdaki Kodu Bulun
PHP- Kodu: Kod:
$itemdata->set('pagetext', $pagetext);
Aşağıdaki Kod ile Değiştirin
PHP- Kodu:
Kod: $itemdata->set('pagetext', trtrans($pagetext)); |