Creating chat rooms via my program

Last post 03-26-2007, 3:47 PM by Adam. 2 replies.
Sort Posts: Previous Next
  •  03-26-2007, 12:40 PM 27747

    Creating chat rooms via my program

    Hi!

    My application needs to create chat rooms dynamically. Here are a few questions:

    1. It looks like I can add a row to the CuteChatLobby table to create a new chat room. Is this correct? My test case seems to work fine, just want to make sure that there are no "gotchas" on this.

    2. We need to have the room to be created as not Public and Hidden. Our application will then need to add the permitted users to the room. How do we add users to the room? Is there a table or a column in an existing table we need to do this?

    3. How do I create a url from our application to the appropriate chat room, given that we have the lobbyid assigned in step 1 above?

    Thanks!

    Pete

  •  03-26-2007, 1:51 PM 27749 in reply to 27747

    Re: Creating chat rooms via my program

    Ok, after some digging, here is what I have found. Please confirm this when you can.

    1. My program adds a row to CuteChatLobby, IsPublic = false, IsEnable = true, IsHidden = true, AllowAnonymous = false, ManagerList = '1,2'  where the list values are the userid numbers from the CuteChatUser table, comma separated.

    2. The missing info was the ManagerList field, described in item 1 above.

    3. The url should be something list this:    http://localhost/Chat/CuteSoft_Client/CuteChat/CH_MainForm.Aspx?Location=Lobby&LocationId=3

    Hope this is correct and is helpful to others...

    Pete


  •  03-26-2007, 3:47 PM 27766 in reply to 27749

    Re: Creating chat rooms via my program

    Pete,
     
    It looks Ok. Please check the following file for details.
     
    LobbyItem.ascx
     
     

    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

View as RSS news feed in XML