When doing a drag and drop from one address book to another, the
record value is NULL.
This may be a problem with my code, what I am
doing is fairly simple..
in my init I do this.
$this->add_hook('contact_create', array($this, 'contact_create'));
in my contact_create function I am doing this...
function
contact_create($a){
if( is_null($a['record']) ){
write_log('mylog',$a);
$a['abort'] = true;
return $a;
}
if($a['source'] == $this->abook_id){
$this->put_contact($a);
$a['record']['edit']=$this->results->google_id;
$a['abort'] = false;
}
return $a;
}
And the result I see in the log is...
[May/23/2011
14:18:10 -0700]: array (
'record' => NULL,
'source' =>
'google_contacts',
'group' => NULL,
'abort' => true,
)
I am dragging
from the personal address book to google_contacts when this happens.
Just creating a contact the normal way works fine, it is just when
dragging and dropping.
Can anyone tell me what I might be doing wrong?
Or is there a bug in the drag and drop not passing a record to the
hook?
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
This applies to beta 0.6
For the sake of the plugins that want to
use as much of rcube core as possible and want to sync address books
with other sources, this mod is really needed. I see that plaxo_contacts
also uses this field.
Anyone syncing with an external source needs a
way of keeping track of the id field on the other system. I realize that
kolab_contacts has found a way around this but they also have heavily
modified the way contacts works. We are trying to stay consistent with
the core addressbook by keeping the format exactly the same. We store
the contact data in a separate table which is exactly like the contacts
table. And we let rc core do all the reading and writing to that table
by simply changing the table name for the plugin.
Here is the problem
and the proposed solution...
When using
$CONTACTS->insert($a_record,false); where $a_record['edit'] contains a
value, it works great. rcube core actually puts in X-AB-EDIT into the
vcard and stores that value.
When using the hooks for contact_create
and contact_update, then modifying the $a['record']['edit'] value, it
does NOT work. This is easily fixed by adding one element to the
fieldmap array in rcube_vcard.php
The requested change is to add
'edit' => 'X-AB-EDIT'
This change will not only make it simpler for
the google_contacts plugin, but any future plugin that attempts to sync
with an outside source.
I currently have this plugin working perfectly
and finished, however it is based on the mod that I made in
rcube_vcard.php and I am hoping that you will be willing to make this
change so that everyone else can use this plugin without having to
modify core to make it work.
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
-------- Original Message --------
Hello,
I'm working on a CalDAV backend for my calendar plugin
(http://myroundcube.googlecode.com).
It works quite good with Google's CalDAV but is not tested with other
backends.
So, I'd like to ask if I could get some test accounts on your CalDAV
servers.
Thanks in advance!
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
Dear All,
I have installed roundcube with courier-imap. But when I login via email account it shows the blank page.... I have check the error logs which shows the following:
[22-May-2011 15:51:20] PHP Warning: setcookie() expects at most 6 parameters, 7 given in /var/www/html/roundcubemail/program/include/rcmail.php on line 1321
[22-May-2011 15:51:20] PHP Parse error: syntax error, unexpected T_VARIABLE in /var/www/html/roundcubemail/program/lib/Net/IDNA2.php on line 3354
Please help....
Regards,
Salman...
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
Hello friends of Roundcube
One of our busiest plugin developers, Roland Liebl, is asking for your
help. His bundle of Roundcube plugins at
http://code.google.com/p/myroundcube/ meanwhile contains more than 30
useful extensions and some of them are now seeking new maintainers,
namely the google_contacts and the plaxo_contacts plugins. Both of
them extend the Roundcube address book with additional backends and if
you're familiar with either the Google or Plaxo API and interested in
contributing to our free software please contact him over
http://code.google.com/p/myroundcube/
Have a good one,
Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
I am new to the list, and new to developing for roundcube so sorry
if I am asking a stupid question.
I am working on the google_contacts
plugin for the 0.6 version. I am having trouble getting all the fields
in the Vcard to save. Specifically I am trying to save the X-AB-EDIT:
field and it never saves yet the rest of the data in my vcard saves just
fine. Here is my code.
First of all, the $vcard variable holds the
entire vcard including the X-AB-EDIT
$vc =
rcube_vcard::import($vcard);
$email = $vc[0]->email[0];
$a_record =
$vc[0]->get_assoc();
$a_record['ab-edit']=$val->edit;
$a_record['vcard']
= $vc[0]->export();
$CONTACTS->update($insert_id[0],$a_record);
it
saves the contents of $vcard perfectly, just not my field X-AB-EDIT: Any
clues why?
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
Translation update for European Portuguese (pt_PT).
- labels.inc
Regards,
DC
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/gt/KdRRQP1D/labels.inc
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80