Help Center Live Community

Support => Installation Help & Software Support => Topic started by: rhellyer on March 25, 2009, 05:50:03 PM



Title: Message Length Too Short
Post by: rhellyer on March 25, 2009, 05:50:03 PM
We are finding that there is a 100-150 character limit on the length of messages.  This question has been posted earlier on the forum but no solution was given at that time.

Does anyone know how to relieve the limit of in order to allow longer chat messages?

This is  a severe restriction at present on the usability of the software

Many thanks in advance


Title: Re: Message Length Too Short
Post by: Destro on May 06, 2009, 02:53:25 PM
Hello,

Do you still need help with this issue, as I think I can fix it?

Destro


Title: Re: Message Length Too Short
Post by: rhellyer on May 06, 2009, 04:02:28 PM
That would be good if you know what the problem is . .  thanks


Title: Re: Message Length Too Short
Post by: Destro on May 06, 2009, 05:21:02 PM
Hello,

I have already tried to fix this for version 2.1.7, the things you need to do:
1. Open the templates/<your templatename>/chat_send.tpl, and edit the line that says
   
Code:
<input type="text" autocomplete="off" name="chat_box" id="chat_box" size="30" maxlength="150" onkeypress="parent.window.Chat.typing();" />
Remove the maxlength="150" part, or edit the value of this parameter to your choice.

2. Open the class/js/chat.php file, and search the following code:
   
Code:
if (this.chat_message.length > 300) { alert('<?php echo($GLOBALS['lang']['str_too_long']); ?>'); this.chat_message = this.chat_message.substring(0,300); parent.window.chat_send.document.getElementById('chat_box').value = this.chat_message.substring(300, (this.chat_message.length - 300));}
If you want to completely remove the check for message length, remove it, otherwise, just edit the places where it says 300 to the new limit.

If you happen to have another version: You could try to do the same and ask me if it won't work out, or just say which version you have and I'll try to fix it for that specific version.

Please say if this has helped you.

Destro


Title: Re: Message Length Too Short
Post by: rhellyer on June 15, 2009, 04:55:21 AM
Thank you for this information . .  I will try this out and hopefully it will work
I much appreciate your response and my apologies for taking so long to get back to you.