Re: The chat does not works

  •  10-15-2012, 10:02 AM

    Re: The chat does not works

    Hi Armand66,

     

    The chat admin is defined by the method below.  

    1. PublicOverridesFunctionGetUserInfo(loginNameAsString,ByRefnickNameAsString,ByRefisAdminAsBoolean)AsBoolean  
    2.           DimuserAsSystem.Web.Security.MembershipUser= System.Web.Security.Membership.GetUser(loginName,False)  
    3.           IfuserIsNotNothingAndAlsouser.IsApprovedThen  
    4.               nickName = user.UserName  
    5.               isAdmin =Roles.IsUserInRole(user.UserName,"Administrators")  
    6.               ReturnTrue  
    7.           EndIf  
    8.           ReturnFalse  
    9.       EndFunction  

    You set isAdmin =Roles.IsUserInRole(user.UserName,"Administrators") , so just need to login your site as 'Administrators' user, and go to the chat admin page http://yoursite/CuteSoft_Client/CuteChat/ChatAdmin/.

     

    By the way, step 6 in http://cutesoft.net/ASP.NET+Chat/Developer-Guide/scr/DeploymentIntegration.htm shows you how to create the chat admin link.

     

    Regards,

     

    Ken 

View Complete Thread