织梦内容页第一张https网址远程图片无法自动提取缩略图,六久阁亲测的解决方法分享:
1、打开/dede/inc/inc_archives_functions.php
大概在482行找到以下代码:
if($isremote==1 && preg_match("#^http:\/\/#i", $picname))
修改为:
if($isremote==1 && preg_match("#^http:\/\/|https:\/\/#i", $picname))
继续在503行找到:
if($litpic=='ddfirst' && !preg_match("#^http:\/\/#i", $picname))
修改为:
if($litpic=='ddfirst' && !preg_match("#^http:\/\/|https:\/\/#i", $picname))
dede目录是你的后台目录,通过以上2个修改即可实现自动提取内容页第一张https远程地图图片为缩略图。
发表评论