1

Topic: Roundcube with Calendar

Hello Team,

I have recently implemented iRedMail. Trying to make Roundcube with Calendar working.
Found the plugin Webcalendar and tried to implement it by following the steps mentioned in http://mail4us.net/myroundcube/
modified the file roundcube/config/main.inc.php and added a line as below.
$rcmail_config['plugins'] = array('webcalendar')
Saved the settings and rebooted the machine.
However, I can not see the calendar after logging on to the mailbox.
Is there anything I am missing? or is there any other Calendar plugin available to add to RoundCube?

Any help would be highly appreciated.

Best Regards
Roopesh

2

Re: Roundcube with Calendar

the calendar plugin seem need install calendar application.

you can try this, would be simple.
http://rc-calendar.lazlo.me/

3

Re: Roundcube with Calendar

thanks Very much.
We followed the below steps to install Calendar plugin.
1) Downloaded and Copied the Calendar folder under roundcube plugin directory
2) Added a new line to /var/www/roundcube/config/main.inc.php
$rcmail_config['plugins'] = array('calendar')
3) renamed /roundcube/plugin/calendar/config/config.inc.php.dist to config.inc.php
4)Ran the mysql.sql file to add a table called "Events" inside roundcubemail database.
5) Renamed SQL folder to SQL-old
6) Rebooted the machine.

Still I can not see calendar folder when I logon to the mailbox.
Am I missing something? or any additional steps I need to perform to get access to the Calendar?

Best REgards
Roopesh

4

Re: Roundcube with Calendar

PineMail11 wrote:

$rcmail_config['plugins'] = array('calendar')

do not add new line.

5

Re: Roundcube with Calendar

Removed that line $rcmail_config['plugins'] = array('calendar').
Still no luck...any other thoughts?

Best Regards
Roopesh

6

Re: Roundcube with Calendar

Maybe you can try Sogo groupware: http://www.scalableogo.org/tour/screenshots.html
There's a simple tutorial in FAQ page: http://www.iredmail.org/faq.html (Search sogo in this page)

7

Re: Roundcube with Calendar

Just want to ensure www/roundcube/config/main.inc.php is the right file to update as in installation document, path is different
roundcube_folder]/plugins and open main.inc.php

I tried to to see the file as mentioned in http://mail4us.net/myroundcube/ but could not locate the file

Any suggestions ? 

Regards,

Bobby

8

Re: Roundcube with Calendar

Thanks Zang for your suggestion.
From different forums we found that roundcube version 0.2 doesnt support plugins. So we upgraded to 0.3.1 and the solutiions suggested by SHAKE worked. Thanks SHAKE for the suggestion.
I can see the Calendar option in the mailbox, however, when I click on the calendar or try to post any event I get the following error:
Server Error OK!
After loggin out and loging in we can t see any entry in the calendar.
Any suggestions?

9

Re: Roundcube with Calendar

ZhangHuangbin wrote:

Maybe you can try Sogo groupware: http://www.scalableogo.org/tour/screenshots.html
There's a simple tutorial in FAQ page: http://www.iredmail.org/faq.html (Search sogo in this page)

I tested sogo and found some features lacking.  For example, no email reminders and some context menu items doesn't work.   It is not mature enough yet.   As for roundcube, install webcalendar will take a bit of work.   I just wish that roundcube has email alias support or group contacts.   

Jacky

10

Re: Roundcube with Calendar

You can ask in roundcube mail list, push developers to implement it. smile

11

Re: Roundcube with Calendar

ze wrote:

I just wish that roundcube has email alias support or group contacts.

you can test the roundcube 0.4 beta, it support Contact groups

12

Re: Roundcube with Calendar

This issue has been resolved by adding  following code to roundcube-0.3.1/program/include/rcube_shared.inc file

if (!function_exists('json_encode'))
{
  function json_encode($a=false)
  {
    if (is_null($a)) return 'null';
    if ($a === false) return 'false';
    if ($a === true) return 'true';
    if (is_scalar($a))
    {
      if (is_float($a))
      {
        // Always use "." for floats.
        return floatval(str_replace(",", ".", strval($a)));
      }

      if (is_string($a))
      {
        static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\b", "\f", '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'));
        return '"' . str_replace($jsonReplaces[0], $jsonReplaces[1], $a) . '"';
      }
      else
        return $a;
    }
    $isList = true;
    for ($i = 0, reset($a); $i < count($a); $i++, next($a))
    {
      if (key($a) !== $i)
      {
        $isList = false;
        break;
      }
    }
    $result = array();
    if ($isList)
    {
      foreach ($a as $v) $result[] = json_encode($v);
      return '[' . join(',', $result) . ']';
    }
    else
    {
      foreach ($a as $k => $v) $result[] = json_encode($k).':'.json_encode($v);
      return '{' . join(',', $result) . '}';
    }
  }
}

Hope this helps someone.