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

Last post 03-05-2007, 3:37 AM by kanenas.net. 1 replies.
Sort Posts: Previous Next
  •  03-05-2007, 2:59 AM 27140

    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
  •  03-05-2007, 3:37 AM 27141 in reply to 27140

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

    It seems to me that is working !!!
    ;-)

    Visit...
    http://www.kanenas.net
    News and ideas about programming
View as RSS news feed in XML