• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Admin

Well-Known Member
Staff member
Administrator
Hướng dẫn:
Bước 1:
Mở forum/index.php tìm
PHP:
$headmod = $id ? 'forum,' . $id : 'forum';
Thêm bên dưới
PHP:
$postres = mysql_fetch_assoc(mysql_query("SELECT `forum`.* FROM `forum` LEFT JOIN `users` ON `forum`.`user_id` = `users`.`id` WHERE `forum`.`type` = 'm' AND `forum`.`refid` = '$id' ORDER BY `forum`.`id` ASC LIMIT 1"));
 $tukhoa = $textl;
 $mota = bbcode::notags($postres['text']);
Xong
Bước 2:
Mở incfiles/head.php tìm
PHP:
$headmod = isset($headmod) ? mysql_real_escape_string($headmod) : '';
Thêm bên dưới
PHP:
if (strlen($tukhoa) < 5)
 $tukhoa = $set['meta_key'];
if (strlen($mota) < 5)
 $mota = $set['meta_desc'];
$mota = html_entity_decode($mota, ENT_QUOTES, 'UTF-8');
$tukhoa = html_entity_decode($tukhoa, ENT_QUOTES, 'UTF-8');

Tìm tiếp:
PHP:
 (!empty($set['meta_key']) ? "\n" . '<meta name="keywords" content="' . $set['meta_key'] . '" />' : '') .
 (!empty($set['meta_desc']) ? "\n" . '<meta name="description" content="' . $set['meta_desc'] . '" />' : '') .

Thay tất cả thành:

PHP:
 "\n" . '<meta name="keywords" content="'.mb_substr($tukhoa, 0, 160).'" />' .
 "\n" . '<meta name="description" content="'.mb_substr($mota, 0, 160).'" />' .
Xong
Nguồn: GMT
 

Facebook Comments

New posts New threads New resources

Back
Top