It would be nice if hcards were displayed inline on the existing user profile data instead of as a separate piece of information on the profile page. This is because many times most of the data is already shown on the user's profile page, and this data becomes redundant.

CommentFileSizeAuthor
#1 vcard-show_hcard_inline-1447862.patch4.54 KBrurri

Comments

rurri’s picture

StatusFileSize
new4.54 KB

For our purposes it was weird to have the hcard as separate data because most of it was redundant. The attached patch modifies the code such that, if vcard_display_profile_hcard is FALSE, then hcard information is displayed inline.

When hcard information is displayed inline:

  • The system wraps the profile information in a vcard div.
  • For earch field that the user can see, the system wraps the data in a span with a classname of the appropriate name for the hcard
  • Adds a hidden nickname field at the bottom of the profile

In this way, each user profile is also a "hidden" hcard with any information that is available to the user viewing the profile.

In addition to the above changes, the variable names used as keys for the mapped data in the module needed to be changed to match their vcard equivalent. thus givenname became given_name, organization became org, etc.

rurri’s picture

Title: Show hcards inline on profile page instead of as an additional group of objects » Show hcards inline on profile page instead of as an additional set of information
rurri’s picture

Status: Active » Needs review
rurri’s picture

Priority: Normal » Minor
sanduhrs’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
Priority: Minor » Normal
Status: Needs review » Fixed

Commited to 7.x-1.x.
Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.