Author Topic: Switch Calendar User  (Read 10172 times)

Offline Asimov6

  • Newbie
  • *
  • Posts: 6
Switch Calendar User
« 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

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Switch Calendar User
« Reply #1 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.

Offline Asimov6

  • Newbie
  • *
  • Posts: 6
Switch Calendar User
« Reply #2 on: June 19, 2010, 09:43:07 AM »
Thanks, I will try that

Offline Asimov6

  • Newbie
  • *
  • Posts: 6
Switch Calendar User
« Reply #3 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?

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Switch Calendar User
« Reply #4 on: June 19, 2010, 03:29:19 PM »
have you got errors in error log?

Offline Asimov6

  • Newbie
  • *
  • Posts: 6
Switch Calendar User
« Reply #5 on: June 19, 2010, 04:38:30 PM »
no, no errors in error.log

Offline Asimov6

  • Newbie
  • *
  • Posts: 6
Switch Calendar User
« Reply #6 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

Offline Asimov6

  • Newbie
  • *
  • Posts: 6
Switch Calendar User
« Reply #7 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.

Offline LMSSML

  • Jr. Member
  • **
  • Posts: 49
Solution or problem persist?
« Reply #8 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
« Last Edit: September 05, 2010, 11:04:50 AM by LMSSML »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Switch Calendar User
« Reply #9 on: September 05, 2010, 11:32:05 AM »
Make sure curl is installed and enabled in your php.ini

Offline LMSSML

  • Jr. Member
  • **
  • Posts: 49
Skaero
« Reply #10 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

Offline LMSSML

  • Jr. Member
  • **
  • Posts: 49
Switch Calendar User
« Reply #11 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 ?
« Last Edit: September 05, 2010, 02:03:27 PM by LMSSML »

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Switch Calendar User
« Reply #12 on: September 05, 2010, 02:41:24 PM »
Do you know what google is? Everyone want to help you....
PHP: Installing/Configuring - Manual

Offline clone

  • Newbie
  • *
  • Posts: 0
Switch Calendar User
« Reply #13 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! ;)

Offline AngelKing

  • Newbie
  • *
  • Posts: 9
Switch Calendar User
« Reply #14 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!