[Kolab-devel] RE : [kronolith] Kronolith & Kolab

Nicolas Scaut nicolas.scaut at province.namur.be
Mon Jan 17 16:27:13 CET 2005


Ok thanks.

I do it (here is the only uncommented lines in my horde/config/hook.php)
but it change nothing. Are you sure that it's the only thing I have to
do?

Nicolas


if (!function_exists('_horde_hook_share_init')) {
     function _horde_hook_share_init(&$share_object, $app)
     {
         if ($GLOBALS['conf']['kolab']['enabled']) {
             require_once 'Horde/Kolab.php';
             Kolab::synchroniseShares($share_object, $app);
         }
     }
 }


if (!function_exists('_imp_hook_mbox_icons')) {
     function _imp_hook_mbox_icons()
     {
         require_once 'Horde/Kolab.php';

         $kc = new Kolab_Cyrus($GLOBALS['conf']['kolab']['server']);
         $mailboxes = $kc->listMailBoxes();
         $newmailboxes = array();

         foreach ($mailboxes as $box) {
             $box = preg_replace("/^{[^}]+}/", "", $box);
             if (strpos($box, "INBOX/Calendar") !== false
                 || preg_match("!^user/[^/]+/Calendar!", $box))
             {
                 $newmailboxes[$box] = Horde::img(
                     $GLOBALS['registry']->get('icon', 'kronolith'),
                     _("Calendar"),
                     'border="0" width="16" height="16"
style="vertical-align:middle"',
                     ''
                 );
             } elseif (strpos($box, "INBOX/Tasks") !== false
                 || preg_match("!^user/[^/]+/Tasks!", $box))
             {
                 $newmailboxes[$box] = Horde::img(
                     $GLOBALS['registry']->get('icon', 'nag'),
                     _("Tasks"),
                     'border="0" width="16" height="16"
style="vertical-align:middle"',
                     ''
                 );
             } elseif (strpos($box, "INBOX/Notes") !== false
                 || preg_match("!^user/[^/]+/Notes!", $box))
             {
                 $newmailboxes[$box] = Horde::img(
                     $GLOBALS['registry']->get('icon', 'mnemo'),
                     _("Notes"),
                     'border="0" width="16" height="16"
style="vertical-align:middle"',
                     ''
                 );
             } elseif (strpos($box, "INBOX/Contacts") !== false
                 || preg_match("!^user/[^/]+/Contacts!", $box))
             {
                 $newmailboxes[$box] = Horde::img(
                     $GLOBALS['registry']->get('icon', 'turba'),
                     _("Contacts"),
                     'border="0" width="16" height="16"
style="vertical-align:middle"',
                     ''
                 );
             }
         }

         return $newmailboxes;
     }
 }

-----Message d'origine-----
De : kronolith-bounces at lists.horde.org
[mailto:kronolith-bounces at lists.horde.org] De la part de Stuart K Bingë
Envoyé : lundi 17 janvier 2005 16:08
À : kronolith at lists.horde.org
Objet : Re: [kronolith] Kronolith & Kolab

On Monday, 17 January 2005 16:25, Nicolas Scaut wrote:
> Hello,
>
> I try to use Horde: 3.0.2 & Kronolith: H3 (2.0.1) with Kolab 2.0 -
CVS.
> When I want to add a new event, it does not work and I receive an
error
> message :
>
> " Fatal error: Call to a member function on a non-object in
> <path>/horde/lib/Horde/Kolab.php on line 530"
>
> function &getCurrentObject()
>     {
>                 return $this->_xml->document_element();
>     }
>
> Somebody have the same problem?
>
> Thanks.
>
> Nicolas Scaut
>
> PS : I have the same error message with nag (the task manager).

This is caused by horde/config/hooks.php - all the example hook
functions have 
been commented out, including the ones that are neccessary for the Kolab
code 
to function correctly. I will be updating the Webclient install guide to

account for this issue, but in the meantime you can manually uncomment
the 
Kolab-related hook functions within that file to fix this.

-- 
Stuart K Bingë
-- 
Kronolith mailing list - Join the hunt:
http://horde.org/bounties/#kronolith
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org




More information about the devel mailing list