修改e/class/functions.php,搜索“function ReplaceKey(”
搜索到了
//替换关键字
function ReplaceKey($newstext){
global $empire,$dbtbpre;
if(empty($newstext))
{return $newstext;}
$sql=$empire->query("select keyname,keyurl from {$dbtbpre}enewskey");
while($r=$empire->fetch($sql))
{
$newstext=str_replace($r[keyname],"<a href='".$r[keyurl]."' target='_blank' class='infotextkey'>".$r[keyname]."</a>",$newstext);
}
return $newstext;
}
修改为
//替换关键字
function ReplaceKey($newstext){
global $empire,$dbtbpre;
if(empty($newstext))
{return $newstext;}
$sql=$empire->query("select keyname,keyurl from {$dbtbpre}enewskey");
while($r=$empire->fetch($sql))
{
$newstext=str_replace($r[keyname],"<a href='".$r[keyurl]."' target='_blank' class='infotextkey'>".$r[keyname]."</a>",$newstext);
}
return $newstext;
}
修改为
$newstext=str_replace($r[keyname],"<b> <a href='".$r[keyurl]."' target='_blank' class='infotextkey'>".$r[keyname]."</a></b>",$newstext);