1 Sep 2003 19:14
Re: Extended Addressbook - VCards
Marc Groot Koerkamp <marc <at> squirrelmail.org>
2003-09-01 17:14:30 GMT
2003-09-01 17:14:30 GMT
Jimmy Conner said: > For the last few days I have been doing a little work on the addressbook > and have successfully gotten it to read/write Vcards (VCFs). > Well done Jimmy ! > The addressbook works much in the same way it always did, except now when > you click on the nickname while in the addressbook, it displays the user's > info (phone, address, company, birthday, ect..) It allows you to modify, > add, delete, any of the information and export it to a VCF file if you > wish. This new format requires a new addressbook file ($username.vcf) but > it detects your old addressbook and converts it for you on the fly > (possibly remove this later to a plugin). Tested it and it works :) A few comments: * The conversation works great except that default all vCard fields are added (empty fields included). New vCards do not contain the empty fields introduced with the conversion. Is it an idea to leave the empty non required fields out of the vCard? * When I want to add a new address the new vCard interface doesn't show up. I only see the vCard interface on editing existing addresses. * When I'm inside compose and I do a search or list-all in the addressbook then a few warnings are displayed (error reporting E_ALL) > Be sure to backup the overridden files first, and to backup(Continue reading)
Watch the possible long line splits on the patch below. This is porbably too
late for inclusion into SM 1.4.2 I presume.
Brad
*** strings.php.orig 2003-07-29 15:29:38.000000000 -0600
--- strings.php 2003-09-02 00:52:04.000000000 -0600
***************
*** 434,439 ****
--- 434,444 ----
/* if we can use JS, use the fancy window, else just open a new one
HTML-style */
if($javascript_on) {
sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION);
+ if ((preg_match('/\/compose\.php/', $base_uri.$url)) &&
(!preg_match('/passed_id=/', $base_uri.$url))) {
+ $hooktext = do_hook_function('internal_link',$text);

RSS Feed