how can i update displayname?

Last post 01-03-2012, 5:44 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  01-03-2012, 1:43 AM 72482

    how can i update displayname?

    Hi,,,
    I'm tesing Web Messenger
    cannot manually update CuteChat4_User's column 'DisplayName' value?
    manually update(SQL) displayname, then display origin displayname before update.
    how can i solved?
  •  01-03-2012, 5:44 AM 72485 in reply to 72482

    Re: how can i update displayname?

    Hi pianism,
     
    Each time you change the value manually in database, you need to re-start your site.
     
    I suggest you change the display name by code. admin is the user id, David is the new display name of this user.
     
     CuteChat.ChatPortal portal = CuteChat.AppSystem.Instance.GetCurrentPortal();
     CuteChat.IChatUserInfo info = portal.DataManager.GetUserInfo("User:admin");
      info.DisplayName = "David";
     
    Regards,
     
    Ken 
View as RSS news feed in XML