Thursday, March 20, 2008

Redirect SharePoint Site to New Location

I recently had a request to move a SharePoint subsite to a new location under a different site collection.  The site was moved over after performing the standard import/export stsadm commands.  However, the customer also wanted the old location to perform an automatic redirect for anyone still pointing to the old location.  I wanted to be able to do this without having hack up pages using designer (or other tool) or having to allow for code blocks within the default.aspx by opening my web.config up to vulnerabilities.  I found the easiest way to do this was with Javascript and a Content Editor Web Part.

  1. Add a Content Editor Web Part to the Main Page of the site.
  2. Modify the Web Part and click on Source Editor.
  3. Paste in the following code while changing the URLs to match your target.

    <HTML>
    <HEAD>
    <SCRIPT language="JavaScript">
    <!--
    function redirectsp()
      {
        top.location="
    http://sharepoint";
       }
       if (top.frames.length==0)
        {
         setTimeout('redirectsp()',0);
         }
    //-->
    </SCRIPT>
    </HEAD>
  4. <body>
    Redirecting you to the new location.  If you are not redirected, click <a href="
    http://sharepoint">HERE.</a>
    </body>
    </html>

  5. I set the redirect time to 0, but you can set it higher if you like.  1 sec = 1000, 2 sec = 2000, etc.
  6. Save the code changes.

The fun part of this solution is the fact that the code tries to load no matter what view you are in (i.e. Standard view, Edit Page, etc).  So, if you have to make changes to the code you have to let the page load but then time a press of the ESC key to keep the Javascript from loading each time.

Jeff

Friday, March 14, 2008

WSU Windows Mobile Theme - Go Cougs!!

In the spirit of my alma mater, Washington State University, and the great basketball season they are having I am posting the Windows Mobile theme I created.  It has the Cougar logo on the vertical today screen and a shot of Pullman with Bryan Tower on the horizontal today screen.

Download:  http://cid-65b4663a2e1f48a3.skydrive.live.com/self.aspx/Public/WSU%20Theme.tsk

Go Cougs!!

Jeff

Thursday, March 13, 2008

Patch to Fix Presence in SharePoint and Outlook 2007

I ran into presence not appearing in SharePoint or Outlook 2007 after my upgrade to Communicator 2007.

Microsoft recently released a patch to fix this issue.

http://www.microsoft.com/downloads/details.aspx?FamilyID=1ad57f8f-78f7-45f6-a8c0-805936f46645&displaylang=en

Thought I would pass it along...

Jeff

Friday, March 7, 2008

Crawling a Content Source Requiring Basic Authentication

As much as I fight basic authentication, there are still people out there who want to use it.  SharePoint Enterprise Search can crawl a site requiring basic authentication through the use of Crawl Rules.

  1. Browse to the Shared Services Provider page within Central Administration.

  2. Click on Search Settings -> Content sources and crawl schedules.

  3. I recommend adding the source as a new content source.

  4. Once you have created the new content source return to the Search Settings screen.

  5. Click on Crawl Rules -> New Crawl Rule.

  6. Enter the path this rule will affect.  Using wildcards is the easiest way to make sure the enter server is being crawled with the account specified.

  7. Change the crawl configuration to 'Include all items in this path'.  Specify other settings if necessary.

  8. Change the authentication to 'Specify a different content access account'.

  9. DO NOT CHECK 'Do not allow Basic Authentication'.
     

  10. Click OK to save the settings and your new crawl rule will appear in the list.

  11. Kick off a full crawl of the content source for the rule to take effect.


Simple I know.  But I was hit up for this multiple times so I figured I would write a post on it.

Jeff

Who Doesn't Love Free Online Disk Space?

So I was just playing around with Windows Live Writer to test it out for posting to my blog and discovered Windows Live SkyDrive.  Free 5 GB worth of disk space and you can store personal files, share with your Live Messenger friends, or share out to the general population.

The interface is very easy to use.

Windows Live SkyDrive Site: http://skydrive.live.com/

SkyDrive Team Blog: http://skydriveteam.spaces.live.com/

SkyDrive Viewer from ScottIsAFool on CodePlex: http://www.codeplex.com/SkyDriveViewer

Jeff