PHP Nuke 8.0 Türkçe Karakter Sorunu

Cuma, Ekim 9th, 2009 @ 20:33

Çö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 :

  1. PHPNuke Mail Onaylamayı Kaldırma
  2. Türkçe WordPress Kurulumu
  3. Windows 7 Gadget Sorunu
  4. Windows 7 Gadgets Sorunu
  5. Sharepoint 2010 Error : “The type or namespace name ‘DirectoryServices’ does not exist in the namespace ‘System’”

Tags: ,
Posted in Yazılım | No Comments »

Önceki Yazı << Sonraki Yazı >>

Leave a Reply



Yeni yorumları e-posta aracılığıyla bana bildir. Ayrıca yorum yapmadan da abone olabilirsiniz.