Project Description
SharePoint Chat is a jQuery plugin for SharePoint 2007 that places a chat application onto a SharePoint webpart page. The plugin uses jquery to add messages to a list and display them in real-time on a list-view web part. It’s simple to install and customize.

SharePoint Chat is also assembly-free. This means you don't have to install anything on your SharePoint server. It is a %100 jQuery/Javascript solution that can be implemented into a Content Editor Web Part.

To setup, start by adding references to jQuery, ‘livelistdata’ (a very nice plugin that refreshes web parts), and the SharePoint chat plugin:
You can download the livelistdata plugin here: http://livelistdata.codeplex.com/.
<script src="/path/jQuery%20Libraries/jquery.min.js" type="text/javascript"></script>
<script src="/path/jquery.sharepoint.livelistdata.js" type="text/javascript"></script>
<script src="/path/jquery.sharepoint.chat.js" type="text/javascript"></script>

Then create a custom list with a single (multi-line) column entitled “Message”. Then get the GUID of the list you’ve created.

Then add the following code to a CEWP (Content Editor Web Part) of the page on which you want the chat window displayed.. It’s best to place this web part directly above the list-view web part that displays the chat entries. Edit the source and enter the following code:
<script type='text/javascript'>
   $(document).ready(function() {
      $.chat({listguid:"{EAD2CD7E-C4F0-4F9C-8281-D6A9569186FB}"});
   });
</script>
<h3>Chat Box</h3>
<div id='jQueryChatBox'></div>


Then, save your page, and start chatting!


Upcoming features
An indicator that will let you know when someone is typing a chat message.
Smilies?

 

Last edited Jul 12 at 8:08 PM by crackelacken, version 13