Showing posts from June, 2012

Colorful SharePoint Calender

Never knew that you can combine multiple calenders in SharePoint 2010 to a single calender view. The function is called overlaying. Moreover you can define a color for each view, all OOB. I found this great post how you can colorize your SharePoint calender: One drawback, which happened to me after overlaying was that the overlayed calender items could not be opened in the new SP 2010 Dialog style but only as new browser window.

Tip: If you have embeded the calender as webpart somewhere in your site, you have to actualize the view in the WebPart settings to view the colored calender.

Replace row numbers from copied code

This has nothing to do with SharePoint but I wanted to share the trick. When you copy code from some pages sometimes you have to copy the ugly row numbers, like

1: function XYZ
3:     var a = b;

You can delete these numbers easily with NotePad++ or another higher TextEditor. I use NotePad++ so I'll show you have I do that with NP.

Copy the code into the editorOpen the "Replace" dialogCheck "Regular Expression"Enter the regular expression in "Find What" = \d*: (This can be any other regex)Enter nothing into "Replace String"

Check Ports for Extranet SharePoint Farms with PowerShell

When you create a SharePoint Farm within an extranet you usually have to check ports to other servers within other security layers behind firewalls. Here is a simple script for a quick check. Copy this script to every SharePoint Server and modify the ip addresses. Run the script on the server to see if a port is blocked.

<# These values can be modified Enter the IPS of the server Ports from #> $SERVER_APP = "" $SERVER_WEBAPPS = @("", "") $SERVER_DB = "" $SERVER_AD = "" $SERVER_DNS = "" $SERVER_SMTP = "" $CLIENT = "" #IP of a client which should access SharePoint $USE_KERBEROS = $false $USE_NETBIOS = $false $USE_SMTP = $true # bi = bidirectional # out = outbound $CONNECTIONS = @( #SQL ( "out", $SERVER_APP, $SERV…