Question regarding customization.

Last post 04-23-2009, 7:47 AM by gbpatel. 3 replies.
Sort Posts: Previous Next
  •  03-03-2009, 9:56 AM 49431

    Question regarding customization.

    We want to customize the cute chat module to add our own logic for who can join a chat as follows:
     
    Have a place for email address and nickname each time someone wants to join an online chat.
    If the nickname is taken and is active (not idle for XX minutes), then allow the user to join that chat room, else bouce user back.
     
    I have the logic for using our our membership db for this, etc..., but I'm having issues connecting this logic with the chat module.
     
    Once the user is is validated (using our custom validation), I have the page redirecting to another page called chat.aspx but the user is always logged in as anonoymous, and I need to have them log in as the nickname they used during the login process.
     
    Is there any API documentation?
    If not, than where is the connection made to the chat module once the user is authorized (using our membership module) to join the user xxx to chat channel yyy?
     
    On the chat.aspx is the following:
     
    This is chat.aspx
    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="chat.aspx.vb" Inherits="chat_chat" title="Untitled Page" %>
    <%@ Register TagPrefix="CuteChat" TagName="EmbedChannel" Src="~/chat/CuteSoft_Client/CuteChat/EmbedChannel.ascx" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="cphcssjs" Runat="Server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="cphMain" Runat="Server">
        <script language="javascript">
            //set up the parameters
            //Embed_Location='Lobby'
            //Embed_LocationId='1'
            Embed_Place='Lobby-1'
        </script>
        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        <CuteChat:EmbedChannel id="EmbedChannel1" runat="server"></CuteChat:EmbedChannel>

    </asp:Content>

  •  03-03-2009, 2:16 PM 49449 in reply to 49431

    Re: Question regarding customization.

    tickerme,
     
    How did you integrate your own membership with Cute Chat?
     
    Have you chekced the following article Direct Login using your existing membership information?
     
    The following method will tell Cute Chat how to get the username from your own memership.
     
    a. Create a class that inherits CuteChat.ChatProvider and implement these methods:

    public override string GetConnectionString()
    {
            return the connection string , for the CuteChat
    }

     

    public override string FindUserLoginName(string nickName)
    {
            find the login username from the display name or null if the user is not found.
    }
    public override AppChatIdentity GetLogonIdentity()
    {
        need to find the information of current user. Return null if user is anonymous.

        string loginname=...
        string nickname=...
        return new AppChatIdentity(nickname, false, ToUserId(loginname), HttpContext.Current.Request.UserHostAddress);
    }
    public override bool GetUserInfo(string loginName, ref string nickName, ref bool isAdmin)
    {
           return false , if the loginName is invalid.
           otherwise set the nickName and isAdmin , and return ture
    }
    public override bool ValidateUser(string loginName, string password)
    {
            check the username/password . 
            if valid , set the cookie.
    }


    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

  •  03-03-2009, 4:00 PM 49451 in reply to 49449

    Re: Question regarding customization.

    Adam, thanks for the quick reply, I've got it figured out.
    You're right, just had to create my own provider.
     

  •  04-23-2009, 7:47 AM 51422 in reply to 49451

    i want to implement Embeded chat into my existing appliction who can it do that.

    hi !
     
    i want to implement cut chat chatting application into Embed mode into my existing site.
    can you tell me which classes, and pages is required for that.
     
    also i want to show user which is added into login user contact list into right side 'DIV' of the Embed.aspx page insted of all user which is login into application.
     
    Is there any function which can be override and take user list from login user contact list when chatting application run into Embeded mode.
     
     Regards
    Gaurav 
View as RSS news feed in XML