飞龙博客

妙法莲华经

WordPress论坛插件mingleforum在php4安装小修改

feilong.org 修订于2010-07-03 04:31:36 387 次浏览

mingleforum是WordPress的论坛插件,飞龙尝试mingleforum好几次没有成功,出现BBCode.php 58行有错误。问了mingleforum插件的作者,原来是我的主机空间php不是5.2版本。今天碰运气自己修改代码,哈成功了。本日志更新网址:http://feilong.org/mingle-forum-wordpress-cn 飞龙第4次修订于20100517

方法很简单,找到BBCode.php 的58行
$subjectTwo = str_ireplace($findQ, $replaceQ, $subject);

你把str_ireplace换为str_ireplace即可。

查了php手册,比较str_ireplace与str_ireplace的区别。看懂英文了吗?

str_ireplace (PHP 5)
str_ireplace — Case-insensitive version of str_replace().
飞龙解释:str_ireplace适用于PHP 5,是str_replace()的大小写敏感版本。

str_replace (PHP 4, PHP 5)
str_replace — Replace all occurrences of the search string with the replacement string
飞龙解释:str_replace适用于PHp4和phP5,作用是查找和替换,找到字符,就全部替换。

mingleforum的下载介绍和地址:http://feilong.org/mingle-forum-wordpress

更新网址:https://feilong.org/mingle-forum-wordpress-cn
最初发布:20100703 04:31:36 feilong.org 于广州

加入收藏夹,查看更方便。

所在分类: wordpress

新作:

旧文: