// $Id: INSTALL.txt,v 1.4.2.3 2011/01/10 14:38:54 sanduhrs Exp $

Installation instructions for vcard module:

1) Install Contact_Vcard_Build from PEAR:
   $ pear install Contact_Vcard_Build
   - OR - 
   Install File_IMC from PEAR:
   $ pear install File_IMC

2) Enable vcard module on administer->modules

3) Configure the profile field mappings on Administer->Site configuration->vCard (?q=admin/settings/vcard)

4) Configure the permissions on Administer->User management->Permissions (?q=admin/user/permissions)

5) To enable hCard support in your theme, you can invoke theme_vcard($user) directly.
   eg, add the following to your theme template.php and your user page details will be formatted as a vcard.

   <?php
   /**
    * Override of theme_user_profile()
    */
   function yourtheme_user_profile($account) {
     if (module_exists("vcard")) {
       return theme("vcard", $account);
     }
     else {
       return drupal_render($account->content);
     }
   }
   ?>

   For additional information on themeing read the handbook pages http://drupal.org/theme-guide.