Chat Control

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/18/2009 5:54:51 PM
Gravatar
Total Posts 118

Chat Control

I am just putting together a site for a Girl Guide group and a chat control would be really nice

 

Neil

1/19/2009 5:26:39 AM
Gravatar
Total Posts 18439

Re: Chat Control

I've had my eye on possibly integrating meebo at some point, but my guess is someone could easily use it from within an html module using source view in the editor to put in any markuup or javascript needed. It might also require adding some javascript into layout.master. I really haven't read up on it yet but documentation is here. It looks easier than anything else I know of other than perhaps commercial products.

Also woopra is possibly worth looking at. Its primarily a traffic analytics tool but it has a click to chat feature as well. I've never used it, its free to sign up but then its a waiting list until the approve you. I signed up several weeks ago and still no approval for me. Probably their chat is more customer service oriented. For your scenario the meebo rooms seems like what you would want.

Best,

Joe

1/19/2009 6:11:34 AM
Gravatar
Total Posts 118

Re: Chat Control

I was thinking of something a little simpler and limited to people currently loged into the website - something such as

http://steveorr.net/articles/WebChat.aspx

Neil

1/19/2009 6:28:33 AM
Gravatar
Total Posts 18439

Re: Chat Control

Thats pretty interesting. You may be able to get that to work by putting the dll in the /bin folder and creating a simple module and put the webchat control inside it. Probably would need to add this at the top

<%@ Register Assembly="ChatControl" Namespace="ChatControl" TagPrefix="cc1" %>

and then this in the body of the control

<cc1:WebChat ID="WebChat2" runat="server" CallBackInterval="4" ChatTopic="Cooking" HistoryCapacity="20" Height="245px" Width="490px" />

obviously with your own topic.

Probably would want something like this in page load:

if(Request.IsAuthenticated)
{
WebChat2.UserName = User.Identity.Name;
}
else
{
WebChat1.Visible = false;
}

The only thing I don't like about this control is it stores the messages in memory on the server via application variables. This means the chats are not persisted permanently anywhere and it may use more memory than I would like. Possibly at some point I can extend this to use a database.

Best,

Joe

1/19/2009 6:41:18 AM
Gravatar
Total Posts 118

Re: Chat Control

i will have a play - interestingly this is the control ( but re-written ) thats used as the chat module for DNN

 

Neil

1/19/2009 6:44:49 AM
Gravatar
Total Posts 18439

Re: Chat Control

Wonder what re-written means, did they just wrap it in a module or did they implement a database layer for it?

In any case it looks like a good start for a chat feature, thanks for sharing the link.

Best,

Joe

1/19/2009 7:04:03 AM
Gravatar
Total Posts 118

Re: Chat Control

1/19/2009 8:32:21 AM
Gravatar
Total Posts 118

Re: Chat Control

that almost works - I get

CS0103: The name 'User' does not exist in the current context

on the line

WebChat2.UserName = User.Identity.Name;

presumably I need to do something so User.Identity.Name is available from within the module ?

 

Neil

 

1/19/2009 8:36:14 AM
Gravatar
Total Posts 18439

Re: Chat Control

Try HttpContext.Current.User.Identity.Name

Hope it helps,

Joe

1/19/2009 9:23:50 AM
Gravatar
Total Posts 118

Re: Chat Control

Works a treat - thanks Joe

10/8/2010 2:29:45 PM
Gravatar
Total Posts 76

Re: Chat Control

Hello Joe / Neilc,

So how is the module written?

I have this. When i put the control on my website nothing is shown? Any help?

 

<%@ Control Language="C#" ClassName="ChatControl.ascx" %>

<%@ Register Assembly="ChatControl" Namespace="ChatControl" TagPrefix="cc1" %>


<script runat="server">

protected void Page_Load(object sender, EventArgs e)
{

if (Request.IsAuthenticated)
{
WebChat2.UserName = HttpContext.Current.User.Identity.Name;
}
else
{
WebChat2.Visible = false;
}

}

</script>


<cc1:WebChat ID="WebChat2" runat="server" CallBackInterval="4" ChatTopic="Cooking" HistoryCapacity="20" Height="245px" Width="490px" />

 

 

THNX..........
 

You must sign in to post in the forums. This thread is closed to new posts.