开源.NET WEBIM

Lesktop 2.0.2.3 修改内容:

1、增加群组功能;

2、增加用户和群组管理;

3、简化嵌入的方式。


Lesktop 2.0.2.7 修改内容:

1、增加显示头像,修改个人资料功能;

2、增加查询消息记录的功能。


Lesktop 2.1.2.8 修改内容:

1、支持SQL Server数据库。


Lesktop 2.1.2.10 修改内容:

1、增加在线状态显示功能。


Lesktop 2.2.0.11 修改内容:

1、增加在线客服功能。



源代码下载:Lesktop-2.2.0.11  (如果使用VS2010开发,请使用IIS做服务器)


管理员登录:

账户名:admin,密码为空,登录时不用需要输入密码

 

将Lesktop嵌入到网站中:

1、下载源代码,将source\wwwroot中的Lesktop,App_Data,Bin三个文件夹拷贝到将嵌入WEBIM的网站根目录下(注意:拷贝即可,不需要建虚拟目录)

2、在要嵌入WebIM的页面中加入以下代码:

<script language="javascript" type="text/javascript">
    document.writeln('<script type="text/javascript" src="/Lesktop/embed.js.aspx?'+(new Date()).getTime()+'"><'+'/script>');
    window.onload = function()
    {
	    StartService();
    }
</script>


嵌入客服系统:

Lesktop支持在线客服功能,你可以在任何网站中嵌入在线客服,具体方法如下:

1、注册客服人员;

2、使用客服人员的登陆名,生成嵌入代码,并将代码嵌入插入到要嵌入客服的网页中。嵌入代码格式如下:

<!--
嵌入客服系统,系统将在此处生成客服人员的HTML代码
CSR:客服人员登录名
-->
<script src="{您的主机}/Lesktop/EmbedCS.ashx?CSR={客服人员登录名}" language="javascript" type="text/javascript"></script>


客户端配置:

将Client.exe同目录下的Setting.conf中的ServiceUrl修改为对应的网址:

<?xml version="1.0" encoding="utf-8"?>
<Config>
    <ServiceUrl>http://lesktop.com/Lesktop</ServiceUrl>
    <ResPath>CurrentVersion</ResPath>
</Config>


数据库配置:

Lesktop默认使用SQLite数据库,您可以修改Lesktop/Web.config文件,使用SQL Server数据库,具体方法如下:

1、将Lesktop/Web.config中的AppSettings中的:

<add key="AccountStorageImpl" value="Core Core.SQLiteAccountStorage"/>
<add key="MessageStorageImpl" value="Core Core.SQLiteMessageStorage"/>

修改为:

<add key="AccountStorageImpl" value="Core Core.SqlServerAccountStorage"/>
<add key="MessageStorageImpl" value="Core Core.SqlServerMessageStorage"/>

2、使用App_Data文件夹中的Lesktop-MSSQL.sql脚本文件创建SQL Server数据库

3、配置好名称为Lesktop_ConnectString连接字符串。

webim-for-dotnet4开发说明: ==================== webim plugin for dotnet mvc3 Demo ==== Import 'WebimPlugin' Project to Visual Web Developer 2010. (Notice: MVC3 Required) Build and Run Developer Guide =============== Create Database --------------- import install.sql if your database is MySQL Coding WebimPlugin.cs ----------------------- implements these methods: ```dotnet public WebimEndpoint Endpoint(); public IEnumerable<WebimEndpoint> Buddies(string uid); public IEnumerable<WebimEndpoint> BuddiesByIds(string uid, string[] ids); public WebimRoom findRoom(string roomId); public IEnumerable<WebimRoom> Rooms(String uid); public IEnumerable<WebimRoom> RoomsByIds(String uid, String[] ids); public IEnumerable<WebimMember> Members(string roomId); public IEnumerable<WebimNotification> Notifications(string uid); public IEnumerable<WebimMenu> Menu(string uid); ``` Coding WebimModel.cs ----------------------- implements these methods to access database: ```dotnet public IEnumerable<WebimHistory> Histories(string uid, string with, string type = "chat", int limit = 50); public IEnumerable<WebimHistory> OfflineHistories(string uid, int limit = 50); public void InsertHistory(string uid, WebimMessage msg); public void ClearHistories(string uid, string with); public void OfflineHistoriesReaded(string uid); public string GetSetting(string uid); public void SaveSetting(string uid, string data); ``` Coding WebimConfig.cs ---------------------- You should change the WebimConfig.java, and load configurations from database or xml. Webim Javascript ----------------------- Insert Javascript code below to web pages that need to display Webim: [removed][removed]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值