my own custom connection string

Last post 07-22-2005, 12:44 PM by palvin_225. 2 replies.
Sort Posts: Previous Next
  •  07-19-2005, 1:42 PM 8887

    my own custom connection string

    Hello,
     
    Is it possible to modify the connection string or some other file so that the messenger and chat uses my existing table containing username and password fields rather than the pre-defined users table.
     
    Thank you,
    Palwinder
  •  07-21-2005, 9:40 AM 8935 in reply to 8887

    Re: my own custom connection string

    Palwinder:
     
    Have you write your own DataProvider for CuteChat ?

    override these abstract methods  
      abstract public string[] ListUserUniqueName();
      abstract public string GetUserDisplayName(string useruniquename);
     
    and you could load the users information from your custom user-table .
     
    Regards , Terry .
  •  07-22-2005, 12:44 PM 8978 in reply to 8935

    Re: my own custom connection string

    This is what I wrote but I am getting errors.

    using
    System;

    using System.Data;

    using System.Web;

    using CuteSoft.Chat;

    namespace CuteChatControls

    {

    /// <summary>

    /// Summary description for Class1.

    /// </summary>

    public class MyDataProvider : CuteSoft.Chat.DataProvider

    {

    public override string GetUserDisplayName(string uniquename)

    {

    }

    public override string[] ListUserUniqueName()

    {}

    public override bool IsAdministrator(string useruniquename)

    {}

    public override string[] SearchUserUniqueNameByDisplayName(string name)

    {}

     

    }

    public class MyUserAdapter : CuteSoft.Chat.UserAdapter

    {

    public override string GetUserUniqueName(System.Web.HttpContext context)

    {}

    }

    public class IbuySpyConnectionStringProvider: CuteSoft.Chat.ConnectionStringProvider

    {

    protected override string GetConnectionString(CuteSoft.Chat.UserIdentity user)

    {}

    }

     

    }

View as RSS news feed in XML