Hudzilla.org - the homepage of Paul Hudson
Contents > Practical PHP > Creating a messageboard Wish List | Report Bug | About Me ]

22.3.5     Messageboard v2

This is NOT the latest copy of this book; click here for the latest version.

Although we've just spent a large number of pages looking solely at messageboards, we've literally just scratched the surface as far as functionality goes - if you have the time to go ahead and try writing version two of this messageboard system, there is a lot more for you to try out.

Here is a short list of ideas you could try:

  • Have symbols such as :) and ;) replaced with their equivalent smiley emoticon pictures. There are quite a few emoticons out there for you to use in your system!

  • Allow people to insert special codes such as :bold: and :endbold: to their messages, which you convert to HTML codes as necessary. This circumvents the strip_tags() issue - you strip out all HTML first, then convert the special codes to the equivalent HTML.

  • Allow people to add polls to their messages that others can take part in

  • Let people give their messages an image, which can be shown on mbindex.php - e.g. a light bulb if the message is about an idea. Similarly, allow people to give their message a priority - use a down arrow for low priority, and a red, upwards arrow for high priority.

  • Allow people to lock their thread so that no other replies can be posted to it.

  • Let people check a box "Email me when a reply is posted", that notifies them when people reply to one of their checked posts.

  • Store a "LastEdited" date in mbmsgs so that people who edit their posts get "Last edited on July 14th 2004" or the like on the bottom of their message.

  • Change read.php to show a list of replies, threaded as in mbindex.php, so that people can navigate around a thread easily. For extra points, have the message currently being viewed displayed as bold in the list.

  • Tell people what messages have been posted since their last visit. This is most easily accomplished by storing a cookie of the highest ID number in mbmsgs, then checking against that with each visit.

That should be enough to get you started. If you implement all that and also find the time to give the system an attractive design, you will have a truly excellent messageboard system on your hands that is powerful, flexible, and should keep visitors to your site returning time and time again.

Remember, the advantage to messageboards is that they generate content for you free of charge, courtesy of your visitors - play this card to the full, and your community will look after itself!





<< 22.3.4 Making Messageboard v1.1   22.3.6 Making an object-oriented messageboard >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
Be the first to add a comment to this chapter!



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is eight plus six?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow