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)
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 216583-9-vcard-auto_configure.patch | 6.79 KB | sanduhrs |
| #8 | vcard-auto_configure-20110119.patch | 6.8 KB | dman |
| #4 | vcard-auto_configure_and_syntax-20090208.patch | 12.14 KB | dman |
| vcard.module.txt | 17.51 KB | dman | |
| vcard_auto_profile_generator.patch | 10.8 KB | dman |
Comments
Comment #1
dman commentedping!
RTBC my own thing because ... well, it's getting old. :-B
Comment #2
PRN Admin commentedhello 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
Comment #3
dman commentedBump?
I'll do a re-roll for D6 - if there's any chance anyone is interested
Comment #4
dman commentedHERE 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.
Comment #5
dman commentedbump!
Been sitting here for a year.
Still works.
Still really useful
Comment #6
kewlguy commentedSorry, to inform "The patch has failed" on my Drupal-6.15 installation.
Buttons still show up and fields are still created.
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.
Comment #7
dman commentedNot 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.
Comment #8
dman commentedRe-roll against current DRUPAL-6--1
This time without the syntax fixes (which I think happened already?)
JUST the auto-create button
Comment #9
sanduhrsRemoved debugging statement,
Added
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.
Comment #10
dman commentedI 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!
Comment #11
sanduhrsSlightly changed and committed to DRUPAL-7--1.