This tutorial shows you how to make a ChatterBlock. ChatterBlocks are small windows where users can type in messages. They're also called Shout Boxes or TagBoards and are kind of like miniature chat rooms.
The code above creates an iframe code, and a small form for users to enter their name, url and messages. This will also be the code that you can cut and paste into part of your navigation.
This code can be inserted into your own Web pages as well. We use the same code here at QuickPipe for our ChatterBlock.
Before we go any further, we must create the database schema for MySQL for the ChatterBlock entries. Cut and paste the following code into MySQL either via Telnet, PhpmyAdmin or any other means of communicating with MySQL.
CREATE TABLE chatterblock( id INT (4) not null AUTO_INCREMENT, name VARCHAR (32), msg VARCHAR (100), url VARCHAR (32) , entered DATETIME, ip varchar(16), PRIMARY KEY (id));
CREATE TABLE blocked_ips( id INT (4) not null AUTO_INCREMENT, ip varchar(16), PRIMARY KEY (id));
CREATE TABLE blocked_nicks( id INT (4) not null AUTO_INCREMENT, name varchar(32), PRIMARY KEY (id));
As we start off, the msg variable in the 'chatterblock' table only allows 100 characters. If you find your chatterblock too limiting, you can increase the number of characters in the schema. Don't forget to update the HTML code and set maxlength to your new limit.