dedecms织梦文章内容图片显示绝對路径修改
修改目录include下的文件extend.func.php,在最后面添加I.个函数方法
functionreplac
更多精彩就在: 51免费论文网|www.jxszl.com
eurl($newurl)
{
$newurl=str_replace(src="/uploads/allimg/,src="http://你的域名/uploads/allimg/,$newurl);
return$newurl;
}
另外调用文章正文内容的标签{dede:field.body/}
需要改成:{dede:field.bodyfunction=replaceurl(@me)/}
此方法对解决II级域名图片不显示I.样有效
原文链接:http://www.jxszl.com/biancheng/dedecms/73943.html
最新推荐
热门阅读