Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: paolol61 on September 30, 2010, 03:43:03 AM

Title: Calendar - add other holiday
Post by: paolol61 on September 30, 2010, 03:43:03 AM
Hi,
first thanks to all for the usefull information that enable me to install this plugin in my Bubba2 server :D

I will like to understand how to change the holiday , from the standrd german to italian, I try to do it from the setting menu but I was only able to remove the german one , can't figureout ho to add a new one, I pressed the add button and paste the link to the calendar and then press save button at the botom of the page but nothing was added :eek: try several time with no result.
Then I go to edit the PHP and changed the line to eneble the correct one , but is no longher visible on the menu page, think because i deleted from the user setting, I see you save in the mysql some string that should control these setting :P

Any help is very appreciated, thanks.

Paolo
:cool:
Title: Calendar - add other holiday
Post by: rosali on September 30, 2010, 07:28:38 AM
Works for me by adding the following URL to calendar feeds:

Festività italiane (http://www.google.com/calendar/feeds/it.italian%23holiday%40group.v.calendar.google.com/public/basic)
Title: Calendar - add other holiday
Post by: paolol61 on September 30, 2010, 08:18:07 AM
Hi Rosali,
that the same link I was try to save, can you detail the process to save the link after you add it ?? or can you give me a clue on wath can be the reason it's not saved ?

Thanks
Title: Calendar - add other holiday
Post by: rosali on September 30, 2010, 08:53:55 AM
Most likely PHP cURL is missing or incorrect configured. Before a feed URL is save there is a cURL connection to the feed established which checks if the URL returns a valid XML response. If not the URL isn't saved.

There is a hidden test for cURL setup:
#1 Login into Roundcube
#2 Enter URL: http://your_domain_or_from_localhost/?_task=dummy&_action=plugin.calendar_tests

If you have problems with cURL, you could try to add the URL into the config instead of the German holidays feed.
Title: Calendar - add other holiday
Post by: paolol61 on September 30, 2010, 04:23:46 PM
Thanks Rosali,
but still not saving, I also try to change in the PHP script the line as you suggest but still no good, any other suggestion ?
Thanks
Title: Calendar - add other holiday
Post by: paolol61 on October 17, 2010, 04:11:38 AM
Hi Rosali,
try to use you link in the config.inc.php

// public calendar (can't be deleted by user)
$rcmail_config['public_calendarfeeds'] = array(
//  'http://www.google.com/calendar/feeds/[email protected]/public/basic' => 'Public',
 'http://www.google.com/calendar/feeds/it.italian%23holiday%40group.v.calendar.google.com/basic' => 'Public', );

but it slow down the load of the page and I get a timeout message.
Thanks for any help you can give me :)

Paolo
Title: Calendar - add other holiday
Post by: stkcode on October 17, 2010, 06:32:34 PM
Hello Paolo,

The link you have posted returns a 401 authorization required because your missing the /public in the link that Rosali posted earlier.

It should be:

//www.google.com/calendar/feeds/it.italian%23holiday%40group.v.calendar.google.com/public/basic

and you have:

//www.google.com/calendar/feeds/it.italian%23holiday%40group.v.calendar.google.com/basic

Note the /public before /basic in the url link.
Title: Calendar - add other holiday
Post by: jeffshead on May 03, 2011, 03:11:45 PM
My mistake. Please disregard my post.