SharePoint Development Blog

Nick Boumans
View my LinkedIn Profile Follow me on Twitter View my Profile on FaceBook View my projects on CodePlex View my presentations on SlideShare



Recent posts

Tags

Categories

Navigation

Pages

Archive

Blogroll

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

SPMessaging on YouTube

http://www.youtube.com/watch?v=jf5QS-JiKRM

 

 

Posted: May 06 2009, 16:13 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: SharePoint General

SPMessaging V0.2 released

Just released SPMessaging V0.2 on http://www.codeplex.com/SPMessaging. New Features are:

  • Ability to delete your own messages from an icon on the WebPart;
  • Autohyperlink urls (http://) and emailaddresses.

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 Wink 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>");

Posted: May 05 2009, 15:06 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

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

Posted: Apr 27 2009, 16:05 by Nick Boumans | Comments (2) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5