PHP Nuke 8.0 Türkçe Karakter Sorunu
Çözümü aşağıdaki linkin yorumlarında buldum
Link : http://www.dmry.net/phpnuke-veritabani-turkce-karakter-problemi/arsiv/yorum/sayfa/2
Çözüm :
PHP-Nuke Türkçe Karakter Sorunu
PHP-Nuke 7.9 kullanmaya çalışanlar gerek blok başlıklarında,
gerek bazı yerlerde Türkçe karakterlerin bozulmasından şikayet
ediyorlar. 7.9 sürümlerinde bu sorunun nedeni mainfile.php
dosyasıdır. Çözümü ise aşağıdaki gibidir.mainfile.php dosyasını açın.
function filter($what, $strip=””, $save=””, $type=””) {
if ($strip == “nohtml”) {
$what = check_html($what, $strip);
$what = htmlentities(trim($what), ENT_QUOTES);
// If the variable $what doesn’t comes from a preview screen should
be converted
if ($type != “preview” AND $save != 1) {
$what = html_entity_decode($what, ENT_QUOTES);
}
}
if ($save == 1) {
$what = check_words($what);
$what = check_html($what, $strip);
$what = addslashes($what);
} else {
$what = stripslashes(FixQuotes($what));
$what = check_words($what);
$what = check_html($what, $strip);
}
return($what);}
Yazan yeri bulun ve komple silin. Yerine aşağıda verdiğim kodu
ekleyin.function filter($what, $strip=””, $save=””, $type=””) {
if ($strip == “nohtml”) {
$what = check_html($what, $strip);
$what = trim($what);
// If the variable $what doesn’t comes from a preview screen should be converted
if ($type != “preview” AND $save != 1) {
$what = $what;
}
}
if ($save == 1) {
$what = check_words($what);
$what = check_html($what, $strip);
$what = addslashes($what);
} else {
$what = stripslashes(FixQuotes($what));
$what = check_words($what);
$what = check_html($what, $strip);
}
return($what);}
İlişkili Yazılar :
Tags: Error, PHP Nuke
Posted in Yazılım | No Comments »
| Önceki Yazı << Cebit | Sonraki Yazı >> PHPNuke Mail Onaylamayı Kaldırma |



