I’m currently working on a small C# project with some friends. I’m very fond of Subversion and in combination with Trac, this is a real killer system. The only thing missing then happens to be a good discussion forum. Some time ago, I have considered using moreGroupWare with its forum add-on, but currently I’m thinking something very simple and clean would be the right way to go.
Regarding forum software, phpBB would be the normal choice you’d make, but lately this project has rather been known for its constant security issues. So I’ve been looking for an alternative. The best one I’ve discovered so far seems to be PunBB, a very light, fast and - as far as it seems - reasonably secure forum.
PunBB works great out of the box, unless you happen to be german, are running MySQL 5.x and require “umlaut” support (those funny vocals with two dots above them). Turns out that PunBB doesn’t handle this too well. Here’s what I’ve done to get the “umlauts” to display correctly:
First, I installed PunBB into a MySQL database whose charset was set to UTF8 General CI (created using phpMyAdmin). Then I changed include/template/main.tpl so its header says:
<?xml version=”1.0″ encoding=”utf-8″?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en_US.UTF-8″ lang=”en_US.UTF-8″ dir=”<pun_content_direction>”>
After that, I also replaced the iso-8859-1 charset with utf-8 in lang/English/common.php and any other files where it appeared. As the last step, PHP’s default_charset needed to be adjusted by adding the following line into PunBB’s config.php file:
ini_set(”default_charset”, “utf-8″);
Then, finally, my “umlauts” displayed properly and messages weren’t cut off anymore at the first non-ascii character (a phenomenon I oberserved before I did this).
For those of you who find this too complicated, I’ve packaged a special version of PunBB 1.2.12 with built-in TinyMCE and UTF-8:
PunBB 1.2.12 with TinyMCE and UTF8
Don’t forget to add ini_set(”default_charset”, “utf-8″); to your config.php once you’ve installed it!
Recent Comments