在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]);
这样,点击文章中的图片,就可以链接至下一页了。

声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!

原文地址:帝国ecms文章图片自动添加下一页链接发布于2023-01-27 00:51:33

相关推荐