Show how many chatting

Last post 06-14-2011, 7:45 AM by RafalL. 5 replies.
Sort Posts: Previous Next
  •  06-08-2006, 10:52 AM 19918

    Show how many chatting

    Hi there, I would like to show on my website how many people are chatting in the chat rooms, or a single chat room... does anyone have the source code for this?  Including any include references for the aspx
     
    thanks
    kristan
  •  06-08-2006, 2:55 PM 19940 in reply to 19918

    Re: Show how many chatting

    kristan,
     
       String sOnlineChater = "";
       int len=0;

       foreach(CuteChatClient chater in ChatApi.GetLobbyClientArray(lobby.LobbyId))
       {
        if(chater.ActiveTime > DateTime.Now-TimeSpan.FromSeconds(30) )
        {
         sOnlineChater += chater.DisplayName + "  ";
         len++;
        }
       }
     
     
     
    lobby: (CuteChatLobby)
     
    len: how many users
     
    sOnlineChater : who are in the chat room?
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-08-2006, 5:36 PM 19952 in reply to 19940

    Re: Show how many chatting

    thanks very much
  •  09-22-2010, 1:54 PM 64146 in reply to 19940

    Re: Show how many chatting

    I can't get this to work any more. I downloaded 5.1 (standalone and integration) for a site refresh and none of the CuteChat functions work anymore. I referenced the Chat.dll that downloaded (used to be Cutesoft.Chat.dll) but the obects seem to have all changed.
     
    Is there a new API reference that will help be figure out all the changes?
     

    Wayne
  •  09-23-2010, 4:08 AM 64157 in reply to 64146

    Re: Show how many chatting

    Hi rwayneross,
     
    foreach(LobbyInfo lobby in ChatApi.GetLobbyInfoArray())
        {
                        //lobby.ClientCount is the number of chatting in that chat room
                        Response.Write(lobby.ClientCount);
        }
     
    Regards,
     
    ken
  •  06-14-2011, 7:45 AM 67950 in reply to 64157

    Re: Show how many chatting

    Hello!
     
    Can this number of chatters be refreshed with each change of users number, eg. extra position on top of the User List i chat window?
View as RSS news feed in XML