帝国ecms文章图片自动添加下一页链接

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


相关文章

http://shang.qq.com/widget/group.php
[e:loop={91,5,0,0}] <liclass="bj_<?=$bqno?...
原文地址:帝国cms修改编辑器的预览功能作者:白头豕帝国CMS...
增加后台自定义编辑界面 当值后台界面的地址:D:...
原文地址:帝国cms调用当前栏目下所有栏目名称和链接顶级栏目...
解决方法:http://bbs.phome.net/showthread-13-148886-0.ht...