Help Center Live Community
July 22, 2014, 02:26:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Message Length Too Short  (Read 5337 times)
rhellyer
Not too much to say...
*
Offline Offline

Posts: 3


« 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
Logged
Destro
Not too much to say...
*
Offline Offline

Posts: 26


« Reply #1 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
Logged

Destro
------------------------------------------
I'll try to help as much people as possible, so don't hestitate to ask.
But I am NOT officially a member of this project!
rhellyer
Not too much to say...
*
Offline Offline

Posts: 3


« Reply #2 on: May 06, 2009, 04:02:28 PM »

That would be good if you know what the problem is . .  thanks
Logged
Destro
Not too much to say...
*
Offline Offline

Posts: 26


« Reply #3 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
« Last Edit: May 06, 2009, 05:29:47 PM by Destro » Logged

Destro
------------------------------------------
I'll try to help as much people as possible, so don't hestitate to ask.
But I am NOT officially a member of this project!
rhellyer
Not too much to say...
*
Offline Offline

Posts: 3


« Reply #4 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.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.157 seconds with 19 queries.

Google visited last this page July 18, 2014, 06:19:25 PM