Koozali.org: home of the SME Server

Horde Question

Offline calisun

  • *
  • 620
  • +0/-1
Horde Question
« 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"
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline calisun

  • *
  • 620
  • +0/-1
Re: Horde Question
« Reply #1 on: June 04, 2011, 04:55:02 AM »
Anybody??
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline Jean-Philippe Pialasse

  • *
  • 2,907
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Horde Question
« Reply #2 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)


Offline calisun

  • *
  • 620
  • +0/-1
Re: Horde Question
« Reply #3 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



.
« Last Edit: June 11, 2011, 09:14:11 AM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline Jean-Philippe Pialasse

  • *
  • 2,907
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Horde Question
« Reply #4 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