how to show more than 100 messages in CH_MainForm.aspx ?

  •  03-05-2007, 2:59 AM

    how to show more than 100 messages in CH_MainForm.aspx ?

    Here is the story...
    My users... demand to see more than 100 messages in the chat board when the talk !
    So i opened CH_MainForm.aspx found the ChatUI.xml and trying to edit it right !
    I found there somewhere in ChatUI.xml at line 1020:

    <Method Modifiers="public virtual" Name="ShowMessageHtml" Arguments="msgHtml">
     
        if(element.childNodes.length > CHATUI_MAX_MESSAGE_ITEM_COUNT)
        {
         for(var i=0;i<100;i++)
         {
          element.removeChild(element.firstChild);
         }
        }
     
    and changed it to...
     
        if(element.childNodes.length > CHATUI_MAX_MESSAGE_ITEM_COUNT)
        {
         for(var i=0;i<1000;i++)
         {
          element.removeChild(element.firstChild);
         }
        }
     
     
    also changed at line 1045...
     
    <Method Modifiers="public virtual" Name="ShowMessageItem" Arguments="msg,noblock">
     
        if(element.childNodes.length > CHATUI_MAX_MESSAGE_ITEM_COUNT)
        {
         for(var i=0;i<100;i++)
         {
          element.removeChild(element.firstChild);
         }
        }
     
    to...
     
        if(element.childNodes.length > CHATUI_MAX_MESSAGE_ITEM_COUNT)
        {
         for(var i=0;i<1000;i++)
         {
          element.removeChild(element.firstChild);
         }
        }
     
    am i doing the right thing here ???
    I wonder...
    :)
     

    Visit...
    http://www.kanenas.net
    News and ideas about programming
View Complete Thread