最新活动:电脑PC端+手机端+微网站+自适应网站高端定制5888元起价!!!
当前位置:主页 > 网站建设 > 织梦图片集从ZIP压缩包中解压图片BUG修复织梦技

织梦图片集从ZIP压缩包中解压图片BUG修复织梦技

时间:2023-05-25 10:05:25 阅读: 文章分类: 网站建设 作者: 建站小能手

导读:织梦技巧织梦技巧解决方法 打开 /dede/file_class.php 找到,大概在161行 else if ( substr ($filename, -strlen($fi网站seo优化诊断工具网站建设哪家好。

网站seo优化诊断工具网站建设哪家好解决方法 打开 /dede/file_class.php 找到,大概在161行 else if ( substr ($filename, -strlen($fileexp))===$fileexp) 改成 else if (preg_match( /\.( .$fileexp. )$/ , $filename)) 完成,重新选择压缩包提交就可以了 自动获取压缩包里图片的名称 如果想要让每个图片都自动获取压缩包里图片的名称的话,你可以这样做 打开 /dede/album_add.php 找到,大概在201行 seo网站排名优化软件[…]

解决方法

打开 /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";

改成

$网站seo优化课程imginfo = gb2utf8(basename(substr($imgold, 0, strrpos($imgold, ".")))); $imgurls .= "{dede:img ddimg='$litpicname' text=建设网站公司9;$imginfo' width='".$imginfos[0]."' height='".$imginfos[1]."'} $iurl {/dede:img}\r\n";

如图

最终效果

相关网站seo优化诊断工具网站建设哪家好。

关键词标签: IP 图片集 包中

声明: 本文由我的SEOUC技术文章主页发布于:2023-05-25 ,文章织梦图片集从ZIP压缩包中解压图片BUG修复织梦技主要讲述图片集,包中,IP网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: /article/web_8057.html

我的IDC 企业建站吧
企业建站吧专业网站建设,SEO,微信小程序开发,APP开发等业务!

最新热门源码技术文章