Auto-create default profile fields - save clicks, and use standard 'address' etc field names on profiles

dman - February 1, 2008 - 03:52
Project:vCard
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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)

AttachmentSize
vcard_auto_profile_generator.patch10.8 KB
vcard.module.txt17.51 KB

#1

dman - February 17, 2008 - 06:09
Status:needs review» reviewed & tested by the community

ping!

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

#2

DrupalMom - June 1, 2008 - 21:11

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

#3

dman - February 6, 2009 - 10:20

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

#4

dman - February 7, 2009 - 12:22
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:HEAD» 6.x-1.x-dev
Status:reviewed & tested by the community» needs review

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.

AttachmentSize
vcard-auto_configure_and_syntax-20090208.patch 12.14 KB

#5

dman - August 19, 2009 - 13:38

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

 
 

Drupal is a registered trademark of Dries Buytaert.