X7 Chat Support Board
Welcome, Guest. Please login or register.
July 31, 2010, 07:24:57 PM

Login with username, password and session length
Search:     Advanced search
X7 Chat Version 3.0.0 Alpha 2 is now available (http://x7chat.com/support_forum/index.php?topic=3198.msg11497#new).
13036 Posts in 3760 Topics by 66531 Members
Latest Member: yurapro1982
* Home Help Search Login Register
+  X7 Chat Support Board
|-+  X7 Chat Development
| |-+  X7 Chat 3 Bug Reports
| | |-+  bug & fix: force div word wrap and length of message limit
« previous next »
Pages: [1] Reply Send this topic Print
Author Topic: bug & fix: force div word wrap and length of message limit  (Read 2663 times)
greedwind
Member
*
Offline Offline

Posts: 2


View Profile
« on: August 03, 2008, 06:57:13 AM »
Reply with quote

Word warp for IE explorer(to correct chat room display properly when a user input long words without space , ' etc):

find
Code:
id='message_window'
in tpl_chat.php, replace with this:

Code:
<!-- Greedwind add force wordk-break!!important-->
<div style='height: 300px; overflow: auto;word-break:break-all;' id='message_window'></div>
find
Code:
<textarea id='msg'
in  tpl_chat.php, replace with this

Code:
<!--Greedwind add col limit-->
<textarea id='msg' col='50' style='height: 65px; width: 570px;'></textarea>

add message lenght limiation:
in tpl_chat.php

original code:
Code:
function msgboxSubmit(){
if(document.getElementById('msg').value == '') return;

Code:
function msgboxSubmit(){
if(document.getElementById('msg').value == '') return;
<!--greedwind message length limitation-->
var limitlength = 250;
if (document.getElementById('msg').value.length > limitlength) {
alert("Too much word input, leght of word should not exceed  "+limitlength +" charaters.");
return;
}
Report to moderator   Logged
Pages: [1] Reply Send this topic Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.073 seconds with 17 queries.