DisplayName not updating with Membership Records

Last post 05-02-2009, 4:38 AM by CuteRigel. 6 replies.
Sort Posts: Previous Next
  •  01-22-2007, 3:27 PM 26014

    DisplayName not updating with Membership Records

    I've integrated the CuteChat client with our site and have managed to get it going.  However, when our users update their display name in their member profile (our database), this is not coming through in the chat client.  Instead it uses their previous display name, as this is what is in the User table in cutechat, despite the fact that the GetUserDisplayName in Global.asax returns the current nickname from the user's profile in our database.
     
    What is the purpose of the GetUserIdentity function in Global.asax and should we be passing the display name through at this stage?
    Why is CuteChat not using the information I provide through GetUserDisplayName?
    How can I forcefully sync the user information in the CuteChat tables?
     
     
    Also, is there a class reference document for CuteChat?  Lots of talk of being extensible, etc, but no real documentation that I can find?  Or is this limited to people who have purchased the product?  I need to get this working before we can make a purchase... would really appreciate some help here.
     
    Cheers
    Ren.
  •  01-22-2007, 7:37 PM 26027 in reply to 26014

    Re: DisplayName not updating with Membership Records

    To integrate Cute Chat with your member profile, you need to implement the following method:
     
    //Return user's display name
    public string GetUserDisplayName(string useruniquename)
    {
    }
     
    Before you get started, you need to understand the 'UniqueName' in CuteChat. In CuteChat, UniqueName means the unique data of your user. Depending on how you implement the user system, in some systems, the best unique data is the user ID; in some system, every user have a unique account name; some systems like MSN, the unique data is the user email. It could be string(username, email), integer(user ID) or GUID.
     
    >>However, when our users update their display name in their member profile (our database), this is not coming through in the chat client. 
     
    Has the 'UniqueName' changed? Has the logic changed?

    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

  •  01-22-2007, 9:35 PM 26029 in reply to 26027

    Re: DisplayName not updating with Membership Records

    No the uniquename hasnt changed... we have userid (just a number) which never changes for a user.  This is the current user.identity.name value.  However, their displayname CAN change, and does change.
     
    Function GetUserDisplayName(useruniquename as String) as String
    'The useruniquename in this case will be a number, such as 100022
     
    Dim myLocalUser as User = GetUser(useruniquename) 'This gets the user from my database
    Return myLocalUser.Nickname
    End Function
     
    Basically that is what I have for the function.  This DOES return the correct displayName from our membership records.  When the member first uses chat, it shows the correct display name.  Now, if the user goes and changes their profile nickname, and then opens chat again, it doesnt load the latest value, it loads the old value.  It's being cached somewhere. 
     
    What is the purpose of ChatApi.SyncContact????  I've tried using this and it does nothing whatsoever, except update the last update time.
  •  01-22-2007, 9:58 PM 26031 in reply to 26029

    Re: DisplayName not updating with Membership Records

    I know what you mean now.
     
    The data is cached in table CuteChatUser.
     
    By this way, Cute Chat doesn't need to call your DB every time when need to get displayName.
     
    To fix your issue, please delete the entry in CuteChatUser table whenever the displayName is changed.

    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

  •  01-22-2007, 10:08 PM 26033 in reply to 26031

    Re: DisplayName not updating with Membership Records

    I've been manually deleting the user from that table to see what effect it has.  Removing the user from that table, or even manually changing the displayName in that table, has NO effect.  The information is still being cached somewhere... its like the user's displayName is being stored in a session or global variable....
  •  01-22-2007, 10:13 PM 26034 in reply to 26033

    Re: DisplayName not updating with Membership Records

    Annnnd, can you update the displayName using the ChatApi? I've had no luck so far.... please provide an example if possible...
  •  05-02-2009, 4:38 AM 51765 in reply to 26034

    Re: DisplayName not updating with Membership Records

    Hi,
     
    I am having the same issue of Display name. I have integrated cuteChat with our project. When User logs into the application, user account is created in cute chat database. 
     
    What I want, Instead of displaying User name , i want to display First + Last name of user by default. When user account is created in cute chat database, i also updated user's display name as first + Last name. It gets updated in database, but the problem is that, when user start chat, It does not displays updated Display name.
     
    One more thing, When User changes Display name with API, It changes and displays new display name.
     
    Please help me... Its very Urgent for me.
     
    thanks in Advance...
     
    Regards
    Rigel
     
View as RSS news feed in XML