Here (as mentioned a while ago) is a roll of an 'auto-create profile fields' button for the vCard UI.
This allows one-click setup of the expected vCard fields:

Given Name:
Family name:
Birthday:
Organization:
Telephone:
URL:
Province:
City:
Postal:
Street:
Country:

So you don't get RSI configuring the default Drupal 'profile' fields clicking everywhere and making typos.

It will safely merge with any pre-existing profile and vcard settings without replacing them, so it's safe to apply to an existing site.

Just visit admin/settings/vcard on a clean demo site and press the button.

This also includes an incidental patch to ensure that the supplied theme_vcard does not accidentally expose data that should have been private. It was previously ignoring the given 'fields' list and just iterating everything.

Plus bonus docs here and there, like a cross-reference between profile.module pages and vCard.module pages so things are easy to find.

Note, there's a chance that this module isn't the perfect home for this function - but I don't actually feel it should be given to profile.module, which in practice is much broader. vCard is the only place where cannonic 'address' type field names are defined.
So I'd like to contribute it here.

If I can get two votes on 'it worked and didn't break anything' I'll push this in.
(also attached is the full patched module, for testing convenience)

Comments

dman’s picture

Status: Needs review » Reviewed & tested by the community

ping!

RTBC my own thing because ... well, it's getting old. :-B

PRN Admin’s picture

hello there!

i just wanted to let you know that i installed it and the button works great. the whole module is really great.

i appreciate you taking the time to do this!

thank you!

mrspoomp

dman’s picture

Bump?
I'll do a re-roll for D6 - if there's any chance anyone is interested

dman’s picture

Title: Auto-create default profile fields - save RSI on new sites » Auto-create default profile fields - save clicks, and use standard 'address' etc field names on profiles
Version: master » 6.x-1.x-dev
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new12.14 KB

HERE is a Drupal6 roll.
It also includes a handful of minor code convention (PHP STRICT) corrections to handle undeclared variable warnings.
Extended the help docs a little.

Use this patch (and press the new button) and your normal Drupal profile will be extended with the dozen optional vcard-compatible fields.

Note, I'm not sure how much similarity/conflict this has with realname.module. IMO, realname.module looks a bit heavyweight for what is really a three-line theme function - and vCard has 'standards' on its side.

dman’s picture

bump!
Been sitting here for a year.
Still works.
Still really useful

kewlguy’s picture

Sorry, to inform "The patch has failed" on my Drupal-6.15 installation.

patch -p0 < vcard-auto_configure_and_syntax-20090208.patch
patching file vcard/INSTALL.txt
Hunk #1 FAILED at 18.
1 out of 1 hunk FAILED -- saving rejects to file vcard/INSTALL.txt.rej
patching file vcard/vcard.admin.inc
patching file vcard/vcard.module
Hunk #3 FAILED at 238.
Hunk #4 succeeded at 262 (offset 6 lines).
Hunk #6 succeeded at 332 (offset 6 lines).
Hunk #8 succeeded at 369 (offset 6 lines).
1 out of 8 hunks FAILED -- saving rejects to file vcard/vcard.module.rej

Buttons still show up and fields are still created.

# Creating required profile fields
# Creating profile field Given Name
# Assigning profile field 1 (Given Name) to vcard key givenname
# Creating profile field Family name
# Assigning profile field 2 (Family name) to vcard key familyname
# Creating profile field Birthday
# Assigning profile field 3 (Birthday) to vcard key birthday
# Creating profile field Organization
# Assigning profile field 4 (Organization) to vcard key organization
# Creating profile field Telephone
# Assigning profile field 5 (Telephone) to vcard key telephone
# Creating profile field URL
# Assigning profile field 6 (URL) to vcard key url
# Creating profile field Street
# Assigning profile field 7 (Street) to vcard key street
# Creating profile field City
# Assigning profile field 8 (City) to vcard key city
# Creating profile field Postal
# Assigning profile field 9 (Postal) to vcard key postal
# Creating profile field Province
# Assigning profile field 10 (Province) to vcard key province
# Creating profile field Country
# Assigning profile field 11 (Country) to vcard key country
# Created profile fields! You may want to review the profile settings individually to ensure their display order and public visibility settings are right for you. By default they are all displayed on the users profile page.

Thank you for a great addition to my vcard module! Kudos to you!

If you require any additional information, I will be keeping an eye on my tracker page for updates to this posting.

dman’s picture

Not all that surprising that something may be out of date seeing as the original code was contributed at the beginning of 2008. :-}
It applied for me fine last August, although possibly with some CVS fuzz allowed. I can't recall.

dman’s picture

StatusFileSize
new6.8 KB

Re-roll against current DRUPAL-6--1
This time without the syntax fixes (which I think happened already?)
JUST the auto-create button

sanduhrs’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Category: feature » task
Status: Needs review » Patch (to be ported)
StatusFileSize
new6.79 KB

Removed debugging statement,
Added

  cache_clear_all();
  menu_rebuild();

to the submit handler, to instantly display the new fields / category, just as profile module does:
http://api.drupal.org/api/drupal/modules--profile--profile.admin.inc/fun...

Commited to DRUPAL-6--1.
Thanks.

dman’s picture

I left a debug in there? Damn, I'm always doing that :-}
Cheers!
Hey great, I can run unpatched code on my current project now! Super-excellent!

sanduhrs’s picture

Status: Patch (to be ported) » Fixed

Slightly changed and committed to DRUPAL-7--1.

Status: Fixed » Closed (fixed)

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