Cách sửa (fix) lỗi font chữ tiếng việt trên tiêu đề rất đơn giản tao chỉ cần thêm1 đoạn code vào 2 file forum/index.php và incfiles/head.php
Mở forum/index.php
tìm
- Mã: Chọn tất cả
- if (empty($id)) {
 $textl = '' . $lng['forum'] . '';
 } else {
 $req = mysql_query("SELECT `text` FROM `forum` WHERE `id`= '" . $id . "'");
 $res = mysql_fetch_assoc($req);
 $textl = ''.$res['text'].' - Vina4z.tk';
 }
thay thành
- Mã: Chọn tất cả
- if (empty($id)) {
 $textl = '' . $lng['forum'] . '';
 } else {
 $req = mysql_query("SELECT `text`, `type` FROM `forum` WHERE `id`= '" . $id . "' LIMIT 1;");
 $res = mysql_fetch_assoc($req);
 $hdr = strtr($res['text'], array (
 '"' => '',
 '&' => '',
 '<' => '',
 '>' => '',
 ''' => ''
 ));
 $hdr=html_entity_decode($hdr,ENT_QUOTES,'UTF-8'); ////fix lỗi font title
 $hdr = mb_substr($hdr, 0, 100);
 $hdr = functions::checkout($hdr);
 $textl = mb_strlen($res['text']) > 100 ? $hdr . '...' : $hdr .' - '.$set['copyright'];
 }
Mở incfiles/head.php
Tìm
- Mã: Chọn tất cả
- defined('_IN_JOHNCMS') or die('Error: restricted access');
Thêm Bên Dưới
- Mã: Chọn tất cả
- $headmod = isset($headmod) ? mysql_real_escape_string($headmod) : '';
 $textl = html_entity_decode($textl,ENT_QUOTES,'UTF-8'); ////fix lỗi font title
 $textl = isset($textl) ? $textl : $set['copyright'];
- Save and test
- Chúc thành công!



 gửi bởi
 gửi bởi 







 
	


