Mở file: \templates\default\header.htm
<meta name="keywords" content="{$metakeywords}$seokeywords" />
<meta name="description" content="$metadescription $bbname $seodescription - Discuz! Board" />
<meta name="generator" content="Discuz! $version" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2007 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
Sẽ thấy
<meta name="generator" content="Discuz! $version" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2007 Comsenz Inc." />
Sửa theo website của bạn
content="nội dung đặc tả"
2. Mở file: viewthread.php
Tìm
while($post = $db->fetch_array($query)) {
Thêm dưới đó
if($post['first']==1)
$s_message=$post;
Tìm tiếp
include template('viewthread');
Thêm trước đó
if($s_message['participle']==''){
$messlist = trim(strip_tags($s_message['message']));
require("./php_s/lib_splitword_full.php");
$sp = new SplitWord();
$strarr=$sp->FindNewWord($sp->SplitRMM($messlist));
$strarr=$sp->GetAlabNum($strarr);
$sp->Clear();
$strarr=explode(' ',$strarr);
foreach ($strarr as $val)
{
if(mb_strlen($val)>3&&!ereg('[0-9]+|[a-z]+',$val)&&!eregi("(0|1|2|3|A|B|C|D|F|W|S|\|"|,|.|?|<|>|{|}|[|]|*|&|^|%|#|@|!|~|(|)|+|-|||:|;|”|。|“)",$val)){
$arraylist[]=$val;
$metakeywords .=$val.' | ';
}
if(count($arraylist)>9)
break;
}
if($metakeywords != '')
$db->query("UPDATE `{$tablepre}posts` SET `participle` = '{$metakeywords}' WHERE `pid` ='{$s_message['pid']}' LIMIT 1 ;");
}else {
$metakeywords = $s_message['participle'];
$seokeywords = $navtitle;
$metadescription = strip_tags($metadescription);
$seodescription = preg_replace('/\s/isU','',strip_tags($seodescription));
}
Chạy truy vấn SQL
ALTER TABLE `cdb_posts` ADD `participle` VARCHAR( 255 ) NOT NULL COMMENT 'participle_char';
hoặc
ALTER TABLE `cdb_posts` DROP `participle`;
ALTER TABLE `cdb_posts` ADD `participle` VARCHAR( 255 ) NOT NULL COMMENT 'participle_char';
Giải nén và upload folder php_s lên thư mục chứa folder