Re: Getting total of users in chatroom

  •  07-19-2011, 7:49 AM

    Re: Getting total of users in chatroom

    Hi Greetings,
     
    Please try the code below, it shows you how to get all online users of the  chat room.
     
      protected override void OnLoad(EventArgs e)
            {
                CuteChat.ChatPortal portal = CuteChat.ChatSystem.Instance.GetCurrentPortal();
                lock (portal)
                {
                    //Lobby_2 is the querystring find at the end of the chat room url
                    foreach (CuteChat.ChatPlaceUser user in portal.GetPlace("Lobby-2").GetAllUsers())
                    {
                        //label1.Text += user.DisplayName;
                    }

                }
                base.OnLoad(e);
            }
     
    Regards,
     
    ken
View Complete Thread