查看所有包含 上传 标签的文章
四月
18

WordPress 2.1添加自定义文件上传类型(允许上传rar文件方法)

Author Dominic    Category Web应用     Tags , , ,

注意,2.1中修改允许上传文件文件类型的的位置变了,以前的版本是wp-includes\functions-post.php,2.1之后的版本改成了wp-includes\functions.php

wordpress2.1.3默认不支持上传文件,修改方法如下:
打开wp-includes\functions.php,查找

   ‘zip’ => ‘application/zip’,

(第1106行左右),在这一行的下面加上这一行

’ => ‘application/’,

注意后面有个半角的逗号,别复制漏了,引号是半角单引号。

保存就可以了,如果是用ftp管理别忘了上传哦。

四月
12

Xoops中FCKeditor的上传文件时中文文件名解决方案

Author Dominic    Category XOOPS     Tags , , , ,

使用上传图片、Flash等文件时,文件名中的中文会显示为乱码并在在服务器上面保存有些全部为乱码文件,不能正常显示,在网上搜了一下前辈们的解决方法,没找到很好的解决办法。看来还有N多的人和我一样的困惑,但解决办法又如此的简单:

将 editor\filemanager\browser\default\frmupload.html 文件的编码改为UTF-8即可。

如果不能解决则

编辑upload.php文件

// Compose the file path.

//Modifyed By XuYong 修正UTF-8的问题

$sFileName =iconv(“utf-8″,”gbk”,$sFileName);

//End Modifyed

环境 2.0.16 UTF-8

四月
12

XOOPS中Fckeditor 在arctile模组中上传失败解决方法

Author Dominic    Category XOOPS     Tags , , ,

上传过程提示信息:

This file uploader is disabled. Please check the “editor/filemanager/upload/php/config.php” file

使用过程中可能出现问题。有以下几个地方要修改

modules\\.upload.php

中必须定义

define(“FCKUPLOAD_DISABLED”, 1);

修改class\xoopseditor\\editor\filemanager\upload\php\upload.php

文件头部为

//Modifyed By XuYong 解决有时不能顺利获取config.php等文件

$current_path =dirname(__FILE__);

if ( DIRECTORY_SEPARATOR != “/” ) $current_path = str_replace( DIRECTORY_SEPARATOR, “/”, $current_path);

require($current_path.’/config.php’) ;

require($current_path.’/util.php’) ;

/*

require(‘config.php’) ;

require(‘util.php’) ;

*/

//End Modifyed

修改class\xoopseditor\\editor\filemanager\upload\php\connector.php

文件头部为

//Modifyed By XuYong 解决有时不能顺利获取config.php等文件

$current_path =dirname(__FILE__);

if ( DIRECTORY_SEPARATOR != “/” ) $current_path = str_replace( DIRECTORY_SEPARATOR, “/”, $current_path);

require($current_path.’/config.php’) ;

require($current_path.’/util.php’) ;

require($current_path.’/io.php’) ;

require($current_path.’/basexml.php’) ;

require($current_path.’/commands.php’) ;

/*

include(‘config.php’) ;

include(‘util.php’) ;

include(‘io.php’) ;

include(‘basexml.php’) ;

include(‘commands.php’) ;

*/

//End Modifyed

环境: 2.0.16 UTF-8

专题推荐

标签

apache article CSS dotNet fckeditor Hack iOS iTouch javascript PayPal PHP rar ubuntu utf8 VMware VMware Tools weblinks Win2008 Windows Server 2008 Wordpress xajax XOOPS 上传 个人 中文 中文习惯 关键词 分享 合肥 域名 安全 工作 插件 文章管理 时区 未分类 模块 模板 模组 电子地图 界面友好 禅意花园 网速 腾讯 配置管理

分类目录

新浪微博

存档

最近文章

近期评论

友情链接

分享按钮