Đăng kí thành viên · Quên MK?

Lần hoạt động

Diễn đàn | Wap Web | Mod Johncms
Tìm kiếm
  Fix lỗi ký tự tiếng việt trên tiêu đề bài viết cho johncms.
admin  Admin [FOUNDER]
 
PRO
(13.12.2015 / 12:27) TOP
Mở Forum/index.php
Tìm
PHP CODE :
if (empty($id)) {
$textl = '' . $lng['forum'] . '';
} else {
$req = mysql_query("SELECT `text` FROM `forum` WHERE `id`= '" . $id . "'");
$res = mysql_fetch_assoc($req);
$hdr = strtr($res['text'], array(
'"' => '',
'&' => '',
'<' => '',
'>' => '',
''' => ''
));
$hdr = mb_substr($hdr, 0, 30);
$hdr = functions::checkout($hdr);
$textl = mb_strlen($res['text']) > 30 ? $hdr . '...' : $hdr;
}

Thay Thành
PHP CODE :
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'].' - NDVCMS';
}

Đính kèm nhé!
Đã chỉnh sửa. Admin (13.03.2021 / 06:52) [1]
139 Lượt xem chủ đề  Tổng số: 1 Comment

Cùng chuyên mục
Lọc theo tác giả
Xem chủ để ngoại tuyến (Offline)

Trong diễn đàn

Sắp xếp theo thứ tự từ trên xuống
Forum.GiaiTri321.Info
Trang chủ
0 / 1

DucVuVip.Pro - Diễn Đàn DucVuVip.Pro, Chia Sẻ Code, Thủ Thuật Wap/Webmaster 6.2.1

© Forum.GiaiTri321.Info