// $Id: INSTALL.txt,v 1.4.2.2 2009/10/21 09:59:09 sanduhrs Exp $

Installation instructions for vcard module:

1) Install Contact_Vcard_Build from PEAR:
   $ pear install Contact_Vcard_Build

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.