在e/class/function.php相應位置添加ClickPicNext函數//替換禁用字符
function ReplaceWord($newstext){global $empire,$dbtbpre;if(empty($newstext)){return $newstext;}$sql=$empire->query("select newword,oldword from {$dbtbpre}enewswords");while($r=$empire->fetch($sql)){$newstext=str_replace($r[oldword],$r[newword],$newstext);}return $newstext;}
后邊添加
//把圖片替換成鏈接//----------------------------function ClickPicNext($newstext){// global $empire,$dbtbpre;if(empty($newstext)){return $newstext;}$newstext=preg_replace('//i', "$0",$newstext);return $newstext;}
然后,在大約1962行,即在以下代碼后:
if($public_r['opencopytext']){$add[newstext]=AddNotCopyRndStr($add[newstext]);//隨機復制字符}
添加一行
$add[newstext]=ClickPicNext($add[newstext]);
這樣,點擊文章中的圖片,就可以鏈接至下一頁了。
新聞熱點
疑難解答