Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.
Phorum - how to install and customize it1 January 2000
When I first asked about a discussion forum package, everyone seemed to
mention phorum. And with good reason. I'm quite pleased with it. It
seems very configurable. And it seems well put together. And when I added the Reader Forum, I made sure I documented the process so you
could use it.
-> select, insert, update,
-> create, alter, delete, drop
-> IDENTIFIED BY
Query OK, 0 rows affected (0.01 sec)
Then I modified common.inc. Here is what I changed:
$inf_path="./myconfigstuff"; // no ending slash
$include_path="./myincludes"; // no ending slash
These are to be used as a guideline and a basis for deciding where to put what.
You could always leave them in the default locations. I chose not to.
How to customize
This example shows you how to track down a particular field if you wish to
customize your phorum. I removed the host name from the message output. This
is a personal preference. Your choice.
If you want to customize a particular
aspect of phorum, the first step is to figure this out which file to look in. The
URL for any messages contains something like this:
The other point is to locate something contanst in the message which is near to what
you actually want to change. In this case, the domain name appears just to the right
of the author. I chose that as my target. The correct way to do this is to
look at your language module. In my case, that is english.lang. I
searched for "Author" and found this line:
$lAuthor = "Author";
$lAuthor is what you want to look for within read.php3. In
that file, I found this line:
That's it. The host is now gone from all messages but is still stored in the
database if you need to find it.
Follow the instructions in . For the lazy and hopeless amongst us
(that's me), here's what I did:
I didn't changed $inf_path in common.inc because it was already
correct for my setup.
You should now follow the rest of the directions in readme.txt. For
the most part, it involves browsing to admin.php3 and using that to set up your
database and forums.
Removing the <html></html> tags
Phorum allows people to post messages with embedded SQL. As phorum
is primarly designed to work with websites, embedded SQL that is a good thing.
Another good thing about phorum is that you can optionally choose to have email replies to
a thread sent to your address if you have contributed to a thread. This mail will
contains the message which was just posted to the phorum. The body of the message
will be surrounded by <html> </html> tags. This is something I didn't
want. So I modified post.php3 to remove them. Here's the patch I create to do
There are some security issues associated with phorum, but I feel they can
be adequately handled if you exercise care. The two files which we secured in the Security section can also be renamed. This will prevent people
from trying to guess the password and gives you an extra layer of security.
you are going to rename admin.php3, remember that the file contains
self-references which must also be changed. By my count, there are 10 instances
which need to be changed.
If you are going to rename forums.inf, remember to also modify the
code.php3 (both forums.inf and forums.bak.inf)
And of course, remember to change the .htaccess file to refer to the new
file names. See the Security for detail.
If I've missed anything, please add your comments.