DEDECMS织梦V5.7文章缩略图站内上传错误的修改方法
DEDECMS模板团来说说DEDECMS织梦V5.7文章缩略图站内上传错误的修改方法:这个修改办法是我们泡了论坛很久搜集到的,内容缩略图选择为"站内选择"方式上传图片,上传成功后,点击标红的图片链接地址时无反应!
看了下/include/dialog 下的涉及图片上传的两个逻辑处理文件 select_images.php 和 select_images_post.php,其中对编辑器和文本框上传的不同处理有一个判断的BUG
这里给出修正方法:
在 /include/dialog/select_images.php 文件
后添加一行,内容如下:
":''; echo $noeditor;
?>
继续修改 /include/dialog/select_images_post.php 文件 中 第 115行
ShowMsg("成功上传一幅图片!","select_images.php?imgstick=$imgstick;comeback=".urlencode($filename_name).";v=$v;f=$f;CKEditorFuncNum=$CKEditorFuncNum;activepath=".urlencode($activepath)."/$mdir;d=".time());
把这个修改为:
if(!empty($noeditor)){
//(2011.08.25 根据用户反馈修正图片上传回调 by:织梦模板团)
ShowMsg("成功上传一幅图片!","select_images.php?imgstick=$imgstick;comeback=".urlencode($filename_name).";v=$v;f=$f;CKEditorFuncNum=$CKEditorFuncNum;noeditor=yes;activepath=".urlencode($activepath)."/$mdir;d=".time());
}else{
ShowMsg("成功上传一幅图片!","select_images.php?imgstick=$imgstick;comeback=".urlencode($filename_name).";v=$v;f=$f;CKEditorFuncNum=$CKEditorFuncNum;activepath="
.urlencode($activepath)."/$mdir;d=".time());
}
好了,到这里就修改成功了。
页:
[1]