安装mysql4.0.x joomla1.5RC2下的yvcomment插件小记…
安装mysql4.0.x joomla1.5RC2下的yvcomment插件小记…
首先用zip方式从本地上传安装,不成功~~~发现是权限问题…
需要将网页目录下的如下几个目录修改为777权限:
- tmp/
- components/
- administrator/components/
- language/
- administrator/language/
- plugins/
- cache/
如果你能用ssh进入服务器的shell模式,也可以这样直接修改:
- chmod -R 777 tmp/
- chmod -R 777 components/
- chmod -R 777 administrator/components/
- chmod -R 777 language/
- chmod -R 777 administrator/language/
- chmod -R 777 plugins/
- chmod -R 777 cache/
修改好了,上传依然不成功,这次报告错误是 CREATE TABLE xxxxx (LIKE ….) 这个sql语句有错误…
于是乎上网搜索,得知,CREATE TABLE *** (LIKE ***)是myql4.1以上版本才有的功能,我这个mysql4.0用户当然无福消受了啊~~~
于是打开安装文件:
也就是你从网站下载后解压缩的:www/administrator/components/com_yvcomment/install.com_yvcomment.php
这个文件,找到如下代码:
- $query = 'CREATE TABLE #__yvcomment (LIKE #__content)';
修改成:
- //$query = 'CREATE TABLE #__yvcomment (LIKE #__content)';
- $FromTableName = $db->replacePrefix('#__content');
- $FromTableResult = $db->getTableCreate(array($FromTableName));
- $query = str_replace($FromTableName, $TableName, $FromTableResult[$FromTableName]);
再安装,成功了….真tmd不容易…
好事儿多磨啊~~~接着打算试用下这个功能,先打算再后台设置下,好了…紧接着麻烦又来了,提示我:
Fatal error: Undefined class name ‘joutputfilter’ in /html/joomlatest/plugins/content/yvcomment.php on line 124
没办法,在整个目录搜索joutputfilter这个关键字,呵呵,在CHANGELOG搜索到了如下内容:
17-Jul-2007 Johan Janssens
^ Changed template _system directory to system for consistency reasons
+ Added storage parameter to JFactory::getCache to allow different stores to be used
^ Renamed JOutputFilter classname to JFilterOutput to adhere to naming conventions
^ Renamed JInputFilter classname to JFilterInput to adhere to naming conventions
其中第四行就说把JOutputFilter这个类名已经重命名为:JFilterOutput
靠,难怪搜索不到,于是乎改呗,这个问题需要修改的有两个文件
www/components/com_yvcomment/controller.php
搜索到:
- $url = JOutputFilter::ampReplace( $url );
修改成:
- //$url = JOutputFilter::ampReplace( $url );
- $url = JFilterOutput::ampReplace( $url );
www/plugins/content/yvcomment.php
搜索到:
- $url = JOutputFilter :: ampReplace($url);
修改成:
- //$url = JOutputFilter :: ampReplace($url);
- $url = JFilterOutput :: ampReplace($url);
重新安装~~~
再进入后台,没问题,设置允许评论的单元和分类…成功
再去前台发个评论试试看,也没问题…发出去了,后台也看到了…
hoho~~~安装成功,使用成功…
顺便提供下载 :)
yvCommentComponent_v1.05.000_chinese_utf-8_forMysql4.0And1.5RC2.zip
yvCommentPlugin_v1.05_chinese_utf-8_forMysql4.0And1.5RC2.zip

我顶偶自己~~~
换了个插件,再顶下,hoho~~~
我顶你~~~
顶一下试试
唉~~~我老了啊。。。
新装了回复留言的插件,顺便测试下,嘻嘻~~~
居然还在4.0环境下工作,强,我们现在都是5.0了。