CuteChatLobby to allow only some users of a specified group to connect

Last post 09-06-2007, 12:48 AM by MRazvan. 2 replies.
Sort Posts: Previous Next
  •  09-05-2007, 6:00 AM 33241

    CuteChatLobby to allow only some users of a specified group to connect

    Hello,
    I have a CuteChatLobby object that contains lets say one of my rooms that i want to allow only some members that are part of a specified group to connect.
    I have seen that you can only set a private password in order to protect the room from allowing some users to connect. But what i need is to protect it from not allowing some users that are not in the specified group to connect.
     
    I am also interested to know if there is a way to block a user from messaging another user using the ChatAPI.
     
    If possible some sample code.
     
    Regards,
    Razvan
  •  09-05-2007, 2:38 PM 33277 in reply to 33241

    Re: CuteChatLobby to allow only some users of a specified group to connect

    MRazvan,
    >>But what i need is to protect it from not allowing some users that are not in the specified group to connect.
     
    This feature is not supported directly. You can achieve this programmatically.
     
        ArrayList lobbies=new ArrayList();
        foreach(CuteChatLobby lobby in ChatApi.GetLobbyArray())
        {
          if(belong_to_this_role)
             lobbies.Add(lobby);
          else
             continue;
           
        }
        this.DataList_Lobbies.DataSource = lobbies;
        this.DataList_Lobbies.ItemDataBound+=new DataListItemEventHandler(rptLobbies_ItemDataBound);
        this.DataList_Lobbies.DataBind();
     
    >>I am also interested to know if there is a way to block a user from messaging another user using the ChatAPI.
     
    Please write some code populate CuteChatRelation table programmatically.
     
     

    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

  •  09-06-2007, 12:48 AM 33288 in reply to 33277

    Re: CuteChatLobby to allow only some users of a specified group to connect

    Adam,
    Hiding the room from specified users that is not part of the same group wont help much since you can enter the room by the url directly. I am thinking, what if protecting the room with a password? there should be a way to enter the room so the normal user not to see the password prompt dialog and to enter the room directly.
     
    Actually what i want to do is not to use the room screen anymore where the users have to select the room in order to enter, but when they login into the site to get automatically in theyre group room. I also want to prevent random people to just connect to the room by entering the url.
     
    In conclusion is there a way to enter a room that has a password set directly using the url address ? (so the user don't have to enter the password manually). Or maybe you have a better solution?
View as RSS news feed in XML