Category Archives: WordPress

Rocks! WordPress MU + HyperDB

Indeed it’s very easy to get WPMU installed and up, but you’ll find the number of tables in WPMU database increases every time a new blog is created. If you’re providing public blogging service, the number of tables is going … Continue reading

Posted in WordPress | 27 Comments

WordPress MU Local Installation

Resovling Domain Names Locally Wanna try WPMU on local machine? If you use localhost or 127.0.0.1 as the server address directly, you always get a message similar to the following: Do not use an IP address (like 127.0.0.1) as your … Continue reading

Posted in WordPress | 6 Comments

Upgrade TinyMCE for WordPress

WP 中内置了 TinyMCE 作为它的 rich editor ,这很好, 恰巧 TinyMCE 也是我最喜欢的 editor ,而且 WP 团队还很认真地开发了一个 plugin for TinyMCE ,算得上严谨负责,可惜的是,他们依然过于小心了。大约是为了防止用户在编辑中使用一些特殊字符, WP 在初始化 TinyMCE 时作了很多过滤和严格的限制。这导致了无法在 WP 的内置 TinyMCE 中直接写 xml/html 代码。还有一个问题就是, WP 的内置 TinyMCE 版本太老,居然是2005年12月发布的 2.0 RC 版。 基于以上理由,我决定抛弃 WP 内置的 TinyMCE ,使用最新的 … Continue reading

Posted in WordPress | Leave a comment

WordPress 的过度转换

用了一段时间的 WordPress,总体感觉很好,是一个不错的个人 blogging 工具,但是 WordPress 对于特殊字符的处理似乎有点过于小心了,比如在命令行中经常有的 “–” , WordPress 在呈现时会将其替换成 “–” ,这样在浏览器中展示的就不再是两条短线、而是一条略长的线了 “–” ,丧失了其原义。所以,我修改了一下 functions-formatting.php ,注销了转换的几行,在我使用的 WordPress 2.0.5 版本中,是第13、14、15行。 类似这样的问题还不少,比如单引号也如此,相应地,我注销了第31、36行。

Posted in WordPress | 1 Comment

WordPress 2.0.5 Installation

WordPress 极易安装,不过也有些需要注意的地方。 编辑 $WP_HOME/wp-config.php 若无此文件,就复制相同目录下的 wp-config-sample.php 新建一个。在该文件中指定数据库名、用户名、密码、数据库服务器主机名或IP即可。很简单的。唯一需要指出的是,若你的 MySQL 不是监听默认的 3306 端口,那么在指定 DB_HOST 是需要指出其端口,比如: define('DB_HOST', 'localhost:3366'); 字符集问题 为了避免出现乱码现象,创建 MySQL 数据库时需要使用 utf8 作为默认字符集。 另外还需要修改 $WP_HOME/wp-includes/wp-db.php 文件,强制 WP 在连接数据库时使用 utf8找到如下一行 $this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword);应该是在第 43 行。在该行下加一行$this->query("set names 'utf8'");即可。 控制板 当进入 WP 的控制板时,它会自动从 … Continue reading

Posted in WordPress | Leave a comment