织梦图片集从ZIP压缩包中解压图片BUG修复
解决方法
打开 /dede/file_class.php 找到,大概在161行
else if(substr($filename, -strlen($fileexp))===$fileexp)
仿站改成
else if(preg_match("/\.(".$fileexp.")$/", $filename))
完成,重新选择压缩包提交就可以了
自动获取压缩包里图片的名称
如果想要让每个图片都自动获取压缩包里图片的名称的话,你可以这样做
打开 /dede/album_add.php 找到,大概在201行
$imgurls .= "{dede:img ddimg='$litpicname' text='' width='".$imginfos[0]."' height='".$imginfos[1]."'} $iurl {/dede:img}\r\n";
改成
$imginfo = gb2utf8(basename(substr($imgold, 0, strrpos($imgold, "."))));
$imgurls .= "{dede:img ddimg='$litpicname' text='$imginfo' width='".$imginfos[0]."' height='".$imginfos[1]."'} $iurl {/dede:img}\r\n";
相关仿站教程:
仿站咨询扫二维码


仿站教程推荐
- 相关链接:
- 教程说明:
织梦图片集从ZIP压缩包中解压图片BUG修复
。