手机
当前位置:查字典教程网 >CMS教程 >dedecms >织梦DedeCMS V5.7缩略图站内上传修正
织梦DedeCMS V5.7缩略图站内上传修正
摘要:看了下/include/dialog下的涉及图片上传的两个逻辑处理文件select_images.php和select_images_pos...

看了下/include/dialog 下的涉及图片上传的两个逻辑处理文件 select_images.php 和 select_images_post.php,其中对编辑器和文本框上传的不同处理有一个判断的BUG

这里给出修正方法:

在 /include/dialog/select_images.php 文件

第 257行

<form action='select_images_post.php' method='POST' enctype="multipart/form-data" name='myform'>

后添加一行,内容如下:

<?php $noeditor = !empty($noeditor)?"<input type='hidden' name='noeditor' value='yes'>":''; echo $noeditor;//(2011.08.25 根据用户反馈修正图片上传回调 by:织梦的鱼)?>

修改 /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());

}

懒人覆盖包(GBK版本,UTF手动转一下编码):include.rar

将附件中的文件上传至 include/dialog/ 下即可

【织梦DedeCMS V5.7缩略图站内上传修正】相关文章:

织梦dedecmsv5.x自动登录的方法

DedeCMS 5.1 版缩略图修改补充

dedecms 5.1 官方网站 演示地址 缩略图有无判断代码

织梦dedecms简略标题调用标签用法指南

DedeCMS系统301重定向配置方法详解

织梦DedeCMS v5.7全文检索使用说明(sphinx)

dedecms列表页缩略图大小控制的方法

dedecms 5.3网站备份该备份哪些内容

织梦DEDECMS缓存文件时间长度的修改方法

DedeCMS V5.3自定义模型使用教程详解

精品推荐
分类导航