Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: calisun on May 31, 2011, 09:11:07 PM

Title: Horde Question
Post by: calisun on May 31, 2011, 09:11:07 PM
In horde address book, there is only one line for email, but many people have personal and work email. Is there a way to add another email and change current email title since it only says "email". So I can have "Personal Email" and "Work Email"
Title: Re: Horde Question
Post by: calisun on June 04, 2011, 04:55:02 AM
Anybody??
Title: Re: Horde Question
Post by: Jean-Philippe Pialasse on June 04, 2011, 05:17:47 AM
google says : http://old.nabble.com/Multiple-email-addresses-in-a-turba-object-td18229011.html, when asking turba multiple email

so if you have a look in /homehttpd/html/horde/turba/config/attribute.php

on line 252 you see 'allow_multi', you juste have to set it to true.

 this file do not seem to be templated so you can just modify it (make a backup just in case)

Title: Re: Horde Question
Post by: calisun on June 11, 2011, 09:01:40 AM
thank you unnilennium for your reply, unfortunately I can't get it to work.

As suggested, I have changed, on line 252, false to true. After reconfiguring the server, I still see only one email field.

Here is what that fragment originally looks like:

---------------------------------------------------------------
/* Communication. */
$attributes['email'] = array(
    'label' => _("Email"),
    'type' => 'email',
    'required' => false,
    'params' => array('allow_multi' => false, 'strip_domain' => false, 'link_compose' => true)
);
$attributes['emails'] = array(
    'label' => _("Emails"),
    'type' => 'email',
    'required' => false,
    'params' => array('allow_multi' => true, 'strip_domain' => false, 'link_compose' => true)
);
------------------------------------------------------------------------------------------------------------------

and I changed it to:

-------------------------------------------------------------------------------------------------------------------
/* Communication. */
$attributes['email'] = array(
    'label' => _("Email"),
    'type' => 'email',
    'required' => false,
    'params' => array('allow_multi' => true, 'strip_domain' => false, 'link_compose' => true)
);
$attributes['emails'] = array(
    'label' => _("Emails"),
    'type' => 'email',
    'required' => false,
    'params' => array('allow_multi' => true, 'strip_domain' => false, 'link_compose' => true)
);
---------------------------------------------------------------------------------------------------------------

So I should be seeing two fields,
one : Email
and second one: Emails.

But I still continue to see one email field.

And I know that the change is taking effect because I can change
'label' =>

On the first one:
'label' => _("Home Email"),

And on the second one:
'label' => _("Work Email"),

But after server reconfigure I only see "Home Email" field



.
Title: Re: Horde Question
Post by: Jean-Philippe Pialasse on June 11, 2011, 06:04:18 PM
basically this is a turba/horde issue, not SME.

you should seek the information from the horde website.

jpp