1
這里有個BUG,上傳的壓縮包文件無法被讀取
  • 解決方法
打開/dede/file_class.php文件
找到
else if(substr($filename, -strlen($fileexp))===$fileexp)
改成
else if(preg_match("/\.(".$fileexp.")$/", $filename))
保存后,重新選擇壓縮包提交就可以了。
  • 自動獲取壓縮包里圖片的名稱
打開/dede/album_add.php文件
找到
$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";
  • 效果
2