There are several places in OpenPsa where persons are displayed in some list: Search results, campaigns, buddy lists, project participants, etc. To make them more informative, I’ve now implemented a contact widget library that can be used anywhere in MidCOM.
With this library the listings provide all the basic contact information in a nicely formatted manner:
In addition to hCard support, the widget has also integrated support for photos from Gravatar and Jabber instant messaging presence from Edgar. The Edgar server can also be installed and used locally. Other ideas I’ve had include blog RSS integration.
// Fetch the person $person = new MidgardPerson($id); // Display the contact $contact = new org_openpsa_contactwidget($person); $contact->show();
Updated 2005-08-02: This is now documented and maintained in the Midgard Wiki.