[turba] Re: [imp] add to addressbook and LDAP

eculp at encontacto.net eculp at encontacto.net
Thu May 15 07:03:52 PDT 2003


Quoting Mohamed Eldesoky <m.eldesoky at tedata.net>:

| On Wednesday 14 May 2003 4:47 pm, eculp at encontacto.net wrote:
| > Quoting Mohamed Eldesoky <m.eldesoky at tedata.net>:
| > | In imp/message.php you will find the line below.
| > | It works when you click on the (add to addressbook) icon beside the
| > | senders' email.
| > | I know I have hacked it a little to put the newName twice, as I don't use
| > | the hack introduced to LDAP schema, I use LDAP as my backend.
| > | $res = $registry->call('contacts/add', array($newName, $newName ,
| > | $newAddress , $prefs->getValue('add_source')));
| > |
| > | Well, my problem is, I have a public address book (corporate wide) and
| > | private
| > | address book for each user.
| > | How to tell the line above to add the contact to the private address book
| > | ??
| >
| > What if you just put it in horde/imp/config/prefs and lock the preference?
| > You will need to clean the pref from your backend for the users who may
| > have already set it but that is quick to check.
| >
| > From horde/imp/config/prefs:
| >
| > // address book to use for adding adresseses
| > // put $cfgSources array element name in the value field.
| > // Setting value to localsql would allow you to add contacts to MySQL
| > database // See turba/config/sources.php for more info
| > $_prefs['add_source'] = array(
| >     'value' => 'private',
| >     'locked' => true,
| >     'shared' => true,
| >     'type' => 'implicit'
| > );
|
| Thanks  Ed
| You are always helpful.
| I have tried what you said, and it shows me another error message this time.
| It says
|  Invalid addressbook.

Strange.  I really don't know.  As everyone seems to always say, "It works
for me".  Don't you hate to hear that? (LOL)

Just for fun, unlock it in prefs.php and try setting it from the options menu.
If you are able to set it and it works.  Dump your database and see what the
setting really is.  That should show us where the error is.  IIRC, you will
need to logout and login after changing prefs.php.

ed

|
| I am using the same value as private , and it is specified the same in the
| turba sources. !!
| Any clue ??
|
| Regards
|
|
| --
| Once a wise man said "nothing"
|


--


-------------------------------------------------



More information about the turba mailing list