Contents of this Tutorial

Warning: Netscape users must define their language as the default encoding or else each character in messages will be replace by a '?'.
This can be done as follows: View/CharacterSet/your language Auto-Detect, then View/CharacterSet/SetDefault.

Choosing a language
Logging into the Chat
Modifying/deleting your profile
Creating a room
Sending a Message
Understanding the users list
Leaving the chat room
Knowing who is chatting without being logged in

Customizing the Chat View

Features and Commands:
    Help command
    Graphical smilies
    Text Formatting
    Invite an user to join your current chat room
    Changing from one chat room to another
    Private Messages
    Ignoring other Users
    Getting Public Information about other Users
    Save messages

Special commands for moderators and/or the administrator:
    Send an announcement
    Kicking an user
    Promote an user to moderator

Choosing a language:

You may choose a language among those in which phpMyChat have been translated by clicking on one of the flags at the start page. In the example bellow, an user selects the French language:

Flags for language selection

Back to the top


If you have already registered, simply log in by entering your username and password. Then select which chat room you would like to enter and press the Chat button.

Else you can register first or simply enter a room but your nick won't be reserved (an other user may use the same nick once you have logged out).

Back to the top

To Register:

If you have not yet registeredand would like to, please choose the registration option. A small pop-up window will appear.

Of course, registered users would be able to modify/delete their own profile by clicking on the appropriate links.

Back to the top

To create a room:

Registered users can create rooms. Private ones can only be accessed by users who know their name and will never been displayed except for users that are in.

Room's name cannot contain comma or backslash (\).

Back to the top

Sending messages:

To post a message to the chat room, type your text into the text box in the lower left corner and then press the Enter/Return key to send it. Messages from all users scroll in the chat box.

You may change the color of the text of your messages by choosing a new color from the list of choices to the right of the text box.

Back to the top

Understanding the users list (not for users popup window):

    Two basic rules have been defined for the users list:
  1. a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the whois popup for this user), while unregistered users have nothing but blank spaces displayed before their nick;
  2. the nick of the administrator or of a moderator is italicized.

For example, from the snapshot bellow you can conclude that:
users list
  • Nicolas is the admin or one of the moderators of the phpMyChat room;

  • alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;

  • lolo is a simple unregistered user.

Back to the top

Leaving the chat room:

To exit the chat, simply click once on "Exit". Alternatively, you may also enter the one of the following commands into your text box:
/quit These commands may be completed with a message to be sent before you leave the chat room. For example : /quit CU soon!

will sent the message "CU soon!" in the main frame then log you out.

Back to the top

Knowing who is chatting without being logged in:

You may click on the link that shows the number of connected users at the start page, or, if you are chatting, click on the image Users popup at the top-right of the screen to open a independent window that will display the list of connected users, and the rooms they are in, in near real time.
The title of this window contains the usernames, if they are less than three, the numbers of users and opened rooms else.

Clicking on the Beeps icon at the top of this popup will enable/disable beeping sounds at user entrance.

Back to the top

Customizing the Chat View:

There are many different ways to customize the look of the Chat. To change settings, simply type the appropriate command into your text box and press the Enter/Return key.

Back to the top

Features and Commands

Help command:

Once inside a chat room, you can lauch a help popup by clicking on the ? image that sits just before the message box. You can also type the "/help" or "/?" commands in the message box.

Back to the top

array("smile1.gif", "15", "15"), ":D" => array("smile2.gif", "15", "15"), ":o" => array("smile3.gif", "15", "15"), ":\(" => array("smile4.gif", "15", "15"), ";\)" => array("smile5.gif", "15", "15"), ":p" => array("smile6.gif", "15", "15"), "8\)" => array("smile7.gif", "15", "15"), ":\[" => array("smile8.gif", "15", "15"), ":kill:" => array("smile9.gif", "50", "15") ); $MaxWidth = "50"; // Set the maximum width among similes $MaxHeight = "15"; // Set the maximum height among similes // ---- DO NOT MODIFY BELOW ---- // Slashes ' and " characters function SpecialSlash(&$Str) { return str_replace("\"",""",str_replace("'","\\'",$Str)); } // Replace smilies code by gif URLs in messages function Check4Smilies(&$string,&$Table) { $tmp_tbl = split("", " ".$string." "); $i = "0"; for (reset($tmp_tbl); $substring=current($tmp_tbl); next($tmp_tbl)) { // $substring is one of the trailing spaces added above -> do nothing if($substring == " ") { } // $substring is not an HTTP link -> do the work for smilies elseif (($i % 2) == "0") { while(list($key, $prop) = each($Table)) { $substring = ereg_replace($key, " \"".str_replace("\"",""", ", $substring); }; $tmp_tbl[$i] = $substring; } // $substring is an HTTP link -> just restore HTML tags for links else { $tmp_tbl[$i] = ""; } $i++; }; $string = trim(join("",$tmp_tbl)); unset($tmp_tbl); } // Display smilies in the help popup and in the tutorials function DisplaySmilies(&$ToDisplay,&$Table,&$TblSize,$Target) { global $MaxWidth, $MaxHeight; $i = 0; $Str1 = ""; $Str2 = ""; $PerLines = floor(600/$MaxWidth); while(list($key, $prop) = each($Table)) { $i++; if ($Target == "help") $Str1 .= "\t\t\"".str_replace("\"",""",\n"; else $Str1 .= "\t\t\"".str_replace("\"",""",\n"; $Str2 .= "\t\t".stripslashes($key)."\n"; if (is_integer($i/$PerLines) || $i == $TblSize) { $ToDisplay[] = $Str1; $ToDisplay[] = $Str2; $Str1 = ""; $Str2 = ""; }; }; }; ?>