Facefinder

Facefinder is a quick script I wrote in my lunch hour that makes a page of the names and faces of every­one I work with, to help new starters fig­ure out who every­one is.

It comes in two vari­eties, a PHP script and an ASP page for Microsoft Office Share­point Ser­vices (MOSS) 2007.

I apol­o­gise pro­fusely for the use of tables — I couldn’t find a way of ren­der­ing it nicely in both IE and Firefox/Chrome/etc. with­out them!

Using the PHP Script

  • Down­load the PHP ver­sion from GitHub.
  • Unzip the con­tents, and put them on a web server that can run PHP. (I’ve tested it on Apache and IIS with PHP 4.something.)
  • Add pho­tos of every­one in the photos/ direc­tory, in the “First­name Lastname.ext” for­mat. JPEG, GIF and PNG are sup­ported. Ide­ally, crop them to a 300×300 square, but at least resize them to 300 by some­thing. (If you need to batch resize, I rec­om­mend Irfan­View for the job on Win­dows boxes.)
  • Nav­i­gate to http://yoursever/facefinder/index.php and see the result!

Using the MOSS 2007 page

  • Down­load the MOSS 2007 ver­sion from GitHub.
  • Unzip the con­tents, and put them in a doc­u­ment library on SharePoint.
  • Load the page in your web browser, and see the result!
  • If you don’t see any­thing, maybe Share­Point doesn’t have a proper list of users in it. On our intranet we pull the list from Active Direc­tory as a nightly job; this is con­fig­urable some­where within the Site Ser­vices admin panel.
  • If you see names but no pic­tures, none of the users has a pic­ture set. On our intranet we get users to set their own pic­tures via their “My Site”, but if you don’t use “My Sites” you’ll have to find another way of get­ting them in.

Trou­bleshoot­ing

I’ve never tried deploy­ing these out­side of our intranet, so for all I know it might fail com­pletely for you. Hope­fully it doesn’t, but if it does, leave a com­ment below or e-mail me and I’ll see if I can help you out.

Leave a Reply

Connect with:

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">