给zencart 1.39h安装fckeditor编辑器成功实战

简介:这是给zencart 1.39h安装fckeditor编辑器成功实战的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=339664' scrolling='no'>

很久没写新文章了,原因是现在很多事情做,我不但做zencart还做wordpress等的。

今天新网站用的是1.39h而不用1.38a,我用的免费模板是estorenow,两个版本都兼容。然后装上fast and easy checkout for zen cart 1.9.3,装法和以前一样的,请看我以前的一篇文章。

然后我就开始装fckeditor。

我按照如下步骤赚装了个2.6.4.1版本的fckeditor:

刚刚给 Zen Cart 安装了 FCKeditor ,将安装步骤记录如下:

首先到官方网站下载 FCKeditor ,解压后上传到 Zen Cart 安装目录下的 editors/fckeditor/ 文件夹中。
打开 Zen Cart 安装目录下的 editors/fckeditor/_samples/default.html ,选择 PHP 的 sample 测试 FCKeditor能否正常提交。
确定 Zen Cart 安装目录下的 editors/fckeditor/fckconfig.js 文件中
var _FileBrowserLanguage = ‘php’ ;
var _QuickUploadLanguage = ‘php’ ;
打开 Zen Cart 安装目录下 editors/fckeditor/editor/filemanger/connectors/php/config.php,修改 $Config['Enabled'] 值为 true。
打开 Zen Cart 安装目录下 editors/fckeditor/editor/filemanger/connectors/php/config.php,设置附加的上传目录,例如:
$Config['UserFilesPath'] = ‘/up/’ ;
把 Zen Cart 安装目录下的 admin/includes/init_includes/init_html_editor.php 中的
// $editors_list['FCKEDITOR'] = array(’desc’ => EDITOR_FCKEDITOR, ‘handler’ => ‘fckeditor.php’, ’special_needs’ => ”);
这句的注释去掉,即删掉前面的“//”。
到此FCKeditor已安装完成。

但是编辑器不成功。

1,试editors\fckeditor\_samples\default.html成功。

2,调试admin\includes\init_includes\init_html_editor.php把最后几行false改为true输出,正常。

3,调试admin\includes\fckeditor.php在前面输出或FCKeditor里面中断,发现该文件根本没执行。

4,把admin\includes\fckeditor.php复制到editors目录下,成功了。

5,再分析admin/product.php的代码,找到这一行:

<?php if ($action != 'new_product_meta_tags' && $editor_handler != '') include ($editor_handler); ?>

问题的关键是fckeditor.php,大家可以结合product.php看它是如何实例化的。

今天还有个电脑问题,就是开机时提示NTLDR文件丢失,不能启动。我用winpe系统进入后把ghost.iso打开,把c盘根目录的几个隐藏的系统启动文件覆盖进去,就能用了。是上次我把他们不小心删了。

如果大家也有如上问题,可以留言或者加我QQ71780795讨论一下的。

爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

http://biancheng.dnbcw.info/php/339664.html pageNo:7

posted on 2011-11-11 08:59  圣者  阅读(198)  评论(0编辑  收藏  举报

导航