PHP Chat Script - Maximum number of rows and words

Place for comments, problems, questions, or any issue related to the JavaScript / PHP scripts from this site.
hups
Posts: 7

PHP Chat Script - Maximum number of rows and words

One last questions.
Maximum number of rows what do you mean by that? the letters or words?
when i set rows to 30 i can write 35 words is this not exact the words.

Admin
Hi,
If you refer to this line of code in setchat.php:

Code: Select all

define('MAXROWS', 30);    // Maximum number of rows registered for chat   
MAXROWS represents the maximum number of lines /rows with chat saved in the text file for a chat-room.
There is no setting for number of words in this chat script, but you can set the maximum number of characters (default 200).
In the chat_form.php file modify the value of "maxlength" in this line of code:

Code: Select all

<input type="text" name="adchat" id="adchat" size="88" maxlength="200" />
And in the class.ChatSimple.php file, line 95:

Code: Select all

if(strlen($adchat)>1 && strlen($adchat)<201) 

Similar Topics