SPMessaging V0.2 released
Just released SPMessaging V0.2 on http://www.codeplex.com/SPMessaging. New Features are:
Release is still Beta. I have to add exceptionhandling and delete some "dirty" functions. However if you plan to release something if it's "perfect" it will not be released
so here it is: http://www.codeplex.com/SPMessaging.
WebPart is currently for MOSS Since I load a userprofile for getting the url to the UserPicture from e.g. the mySite. Hope to make it WSS compatible in another release also.
Some nice Regular Expressions used:
// Remove Domain part from username
string userName = Regex.Replace(SPContext.Current.Web.CurrentUser.LoginName.ToString(),
".*\\\\(.*)", "$1",RegexOptions.None);
// Make hyperlink of http:// url
string strContent = txtWhatAreYouDoing.Text;
Regex urlRegex = new Regex(@"(http:\/\/([\w.]+\/?)\S*)",
RegexOptions.IgnoreCase | RegexOptions.Compiled);
strContent = urlRegex.Replace(strContent,"<a href=\"$1\" target=\"_blank\">$1</a>");
// Make hyperlink of emailadres
Regex emailRegex = new Regex(@"([a-zA-Z_0-9.-]+\@[a-zA-Z_0-9.-]+\.\w+)",
RegexOptions.IgnoreCase | RegexOptions.Compiled);
strContent = emailRegex.Replace(strContent, "<a href=mailto:$1>$1</a>");
If you like SharePoint and you like Twitter you would like this
A lot of SharePointers (and of course other people) use Twitter. We also have groups on twibes like www.twibes.com/sharepoint and www.twibes.com/sharepointdevelopment. There are also ways to use Twitter in SharePoint. The problem (or opportunity) is the whole world can read your Twitter messages. What do you think about internal Twittering? Sharing short project messages with your project members or collegues?
My first project on CodePlex makes this possible: SPMessaging. It's a WebPart for MOSS2007 using jQuery for sharing short messages in SharePoint. Everybody who has (minimal) read access to your site can read the messages and write messages. If the user has a picture in his or her profile this will automatically loaded. No picture, no problem, a standard image will be shown.
The Messages will be stored in a SharePoint list. This list is automatically created after pushing the "update" button for the first time. You can customize some aspects using the WebPart properties (e.g. max items on a page, max items in a list etc.) If reaching the max items in the list (which you define in de webpart properties), the oldest item will be deleted automatically. E.g. a list does never reach more than 1000 listitems. This feature is to prevent perfomance issues.
It's a proof of concept for me working with jQuery. jQuery prevents for example a postback by browsing the pages of older messages. The current release is a beta. I will work on it (and test) in the next couple of weeks. If you have any comments, ideas, issues or whatever, please contact me.
http://www.codeplex.com/spmessaging If you like to follow me on Twitter: http://www.twitter.com/nickboumans