很久没写新文章了,原因是现在很多事情做,我不但做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盘根目录的几个隐藏的系统启动文件覆盖进去,就能用了。是上次我把他们不小心删了。

我的淘宝店开业三个月了,现在也装修的差不多,叫衣食乐衣服零食店(http://yishile.taobao.com),配套网站叫衣食乐(http://www.yishile.com),欢迎大家光临和指导。有问题可以在那联系上我的。谢谢!

作者: kuphp 发表于 2011-06-29 14:30 原文链接

推荐.NET配套的通用数据层ORM框架:CYQ.Data 通用数据层框架
新浪微博粉丝精灵,刷粉丝、刷评论、刷转发、企业商家微博营销必备工具"