integrate CuteChat in our site

Last post 10-03-2005, 10:41 PM by Adam. 5 replies.
Sort Posts: Previous Next
  •  09-26-2005, 12:49 PM 11028

    integrate CuteChat in our site

    We want to integrate CuteChat in our site.
    In our site user logins at the begining .
    We dont want users to login again for Chat/messenger .
    Is it possible?
    Let me know can I check this using trial version.
    Thanks
  •  09-26-2005, 2:44 PM 11044 in reply to 11028

    Re: integrate CuteChat in our site

    Please check the article in the developer's guide?
     
    Integrating with existing user login system?

    >>can I check this using trial version.

    YES

     
     
     

    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

  •  09-27-2005, 6:01 AM 11084 in reply to 11044

    Re: integrate CuteChat in our site

     
    I am using cute chat standalone .
    I tried as it is there in developer's guide under "Integrating with existing user login system?"
    I want to integrate CuteChat in our site and don't want to Re-login in the chat as the user logs in our site at begining.

    I was trying but didn't find the file where to do this .
    Can you help me?

    Thanks
     
  •  09-29-2005, 7:40 AM 11172 in reply to 11028

    Re: integrate CuteChat in our site

    HI there,
    I have exactly the same problem and it seems that others have it too.
    Why is there no Development documentation on this site?!?
    Is there anybody from CuteSoft tracking this forum? I found NO answer to almost any questions in here...

    I integrated the messenger into our site and applied changes to the files ConnectionStringProvider.cs and DataProvider.cs in CuteChatIntegration (which I added to our project).

    It kind of works but it still needs SamplePortal.dll . I have no references to this component in the whole project.
    Is this example linked within CuteSoft.Chat.dll or CuteSoft.ChatService.dll?!?

    If so, I have to look for another  product...

    Thank for hints
  •  09-29-2005, 7:59 AM 11173 in reply to 11172

    Re: integrate CuteChat in our site

    ya
    i am also getting the same doubt
    plz help me
     
    i want the detailed documentation for installation of cutechat standalone
    plz anybody help....
  •  10-03-2005, 10:41 PM 11336 in reply to 11172

    Re: integrate CuteChat in our site

    René,

    You don't need the SamplePortal.dll if you create your provider.

    Are you familar with the IbuySpy?

    This is an example showing how to integrate CuteChat with IbuySpy.


    PortalUserProvider.cs

    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Security.Principal;
    namespace CuteChatControls
    {
     /// <summary>
     /// Summary description for IbuySpyUserAdapter.
     /// </summary>
     public class IbuySpyUserAdapter : CuteSoft.Chat.UserAdapter
     {
      public override string GetUserUniqueName(System.Web.HttpContext context)
      {
       IIdentity iden=context.User.Identity;
       if(iden==null||!iden.IsAuthenticated)
        return null;
       if(iden.Name==null||iden.Name.Length==0)
        return null;
       return iden.Name;
      }
     }
    }




    PortalDataProvider.cs
     
    using System;
    using System.Collections;
    using System.Data;
    using System.Data.SqlClient;
    using ASPNetPortal;
    using CuteSoft.Chat;
    namespace CuteChatControls
    {
     /// <summary>
     /// Summary description for IbuySpyDataProvider.
     /// </summary>
     public class IbuySpyDataProvider : CuteSoft.Chat.DataProvider
     {
      public override string GetUserDisplayName(string useruniquename)
      {
       return useruniquename;
      }
      public override string[] ListUserUniqueName()
      {
       // Get the list of registered users from the database
       AdminDB admin = new AdminDB();
       SqlDataReader reader = admin.GetUsers();
       ArrayList result = new ArrayList();
       while(reader.Read())
       {
        result.Add(reader.GetString(0));
       }
      
       return (String[]) result.ToArray(typeof(String));
      }
      public override bool IsAdministrator(string useruniquename)
      {
       String[] roles;
       UsersDB user = new UsersDB();
       roles = user.GetRoles(useruniquename);
       foreach (String role in roles)
       {           
        if (role.ToLower()=="admins")
        {
         return true;
        }
       }
       return false;
      }
      public override string[] SearchUserUniqueNameByDisplayName(string userDisplaName)
      {
       if(userDisplaName==null||userDisplaName=="")return new string[0];
       userDisplaName = userDisplaName.ToLower();
       AdminDB admin = new AdminDB();
       SqlDataReader reader = admin.GetUsers();
       ArrayList names = new ArrayList();
       while(reader.Read())
       {
        try
        {
         string val= reader.GetString(1);
         if(val.ToLower().IndexOf(userDisplaName)!=-1)
          names.Add(val);
        }
        catch{}
        
       }
       
       return (string[])names.ToArray(typeof(string)); 
      }
     }
    }


     
     

    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