Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: Asimov6 on June 19, 2010, 05:45:51 AM

Title: Switch Calendar User
Post by: Asimov6 on June 19, 2010, 05:45:51 AM
Hi,

First, thanks for roundcube!

I have a question: I installed the calendar plugin. At the demo site I saw that it is posible to switch to a calendar of another user. When I press the 'Switch Calendar' button on my calendar, I only see my own user.

How can I switch to other user's calendars?

Thank for you time.

Asimov
Title: Switch Calendar User
Post by: dziobak on June 19, 2010, 08:37:54 AM
This option is when sharing calendars...a user should give you link to his calendar and you have to add it to calendar feeds.
Title: Switch Calendar User
Post by: Asimov6 on June 19, 2010, 09:43:07 AM
Thanks, I will try that
Title: Switch Calendar User
Post by: Asimov6 on June 19, 2010, 10:15:49 AM
Quote from: dziobak;28168
This option is when sharing calendars...a user should give you link to his calendar and you have to add it to calendar feeds.


It is not working for me. Here is what I do:

Go to calendar feeds of user1, click on the checkbox next to 'confidential feed access'
Copy the shown url
Go to calender feeds of user2, click on add feed and paste the url
Click on save

The added feed doesn't show up in the list and I can't see the user shared calendar.

Any idea what is going wrong?
Title: Switch Calendar User
Post by: dziobak on June 19, 2010, 03:29:19 PM
have you got errors in error log?
Title: Switch Calendar User
Post by: Asimov6 on June 19, 2010, 04:38:30 PM
no, no errors in error.log
Title: Switch Calendar User
Post by: Asimov6 on June 19, 2010, 04:46:23 PM
Sorry, there are errors:

[19-Jun-2010 22:43:36] PHP Warning:  array_combine() [function.array-combine]: Both parameters should have an equal number of elements in /var/www/roundcube/plugins/calendar/calendar.php on line 1059
[19-Jun-2010 22:43:36] PHP Warning:  Invalid argument supplied for foreach() in /var/www/roundcube/plugins/calendar/calendar.php on line 1066
Title: Switch Calendar User
Post by: Asimov6 on June 19, 2010, 05:58:45 PM
When I do a print_r with the $categories and the $feeds array in the function saveSettings, I notice that $categories has 1 element and $feeds has two.
The $feeds array has the first element empty and the second element is the supplied feed url.
Title: Solution or problem persist?
Post by: LMSSML on September 05, 2010, 10:58:13 AM
Hi there Asimov6


Did you do it succesfully sharing calendar between users ?

And how did you did it ?

When I had the url to my other second user The calendar feeds goes gray and nothing appear.

This is what my error log do:

mailserver roundcube: PHP Fatal error:  Call to undefined function curl_init() in /var/www/rc4/plugins/calendar/calendar.php on line 989


Is that normal ?


Thansk in advanced
Title: Switch Calendar User
Post by: SKaero on September 05, 2010, 11:32:05 AM
Make sure curl is installed and enabled in your php.ini
Title: Skaero
Post by: LMSSML on September 05, 2010, 01:01:59 PM
Hi thanks for the awnser.

Could you explain how to activate the curl on php ?

Couldn't  catch that.
Thanks
Title: Switch Calendar User
Post by: LMSSML on September 05, 2010, 01:38:48 PM
Have done


I have installed the curl lib to php

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl php5-mcrypt

Althout I got another error

  mailserver roundcube: PHP Fatal error:  Call to undefined function curl_init() in /var/www/rc4/plugins/calendar/calendar.php on line 989
 mailserver roundcube: PHP Warning:  Invalid argument supplied for foreach() in /var/www/rc4/plugins/calendar/calendar.php on line 1096

ANy help ?
Title: Switch Calendar User
Post by: dziobak on September 05, 2010, 02:41:24 PM
Do you know what google is? Everyone want to help you....
PHP: Installing/Configuring - Manual (http://www.php.net/manual/en/curl.setup.php)
Title: Switch Calendar User
Post by: clone on March 11, 2011, 07:42:44 AM
Quote from: Asimov6;28163
Hi,

First, thanks for roundcube!

I have a question: I installed the calendar plugin. At the demo site I saw that it is posible to switch to a calendar of another user. When I press the 'Switch Calendar' button on my calendar, I only see my own user.

How can I switch to other user's calendars?

Thank for you time.

Asimov


i just wanted to ask the same question.
what for is this option if you only see the logged in user in the select box? :confused:

ps: anyway a very nice plugin 2tu! ;)
Title: Switch Calendar User
Post by: AngelKing on May 06, 2011, 08:20:00 AM
I have the same issue, but when i change the user i become a time out. I see the user feed, but i cant change to them.

php5-curl is installed.

System: Debian Lenny amd64
Webfront: ispcp 1.0.7
Roundcube: 0.5.2
Plugin Bundele: roundcube-0.5.2-bundle-v2.1

I have check the logs, but no errors.

Have you any Idea?

Thank you very much!
Title: Switch Calendar User
Post by: rosali on May 06, 2011, 01:04:09 PM
This is a bug introduced by new CalDAV backend. Wait for a update.
Title: Switch Calendar User
Post by: AngelKing on May 07, 2011, 01:08:50 AM
THX for your reply.

This problem appears on bundle 1.1 too.

But i wait now for you update.
Title: Switch Calendar User
Post by: rosali on May 08, 2011, 01:56:09 AM
I see. I'll upload a new bundle in approximately 5 hours.
Title: Switch Calendar User
Post by: AngelKing on May 08, 2011, 04:40:39 AM
Thank you very much, it works perfect! :D