Author Topic: Calendar - add other holiday  (Read 6837 times)

Offline paolol61

  • Newbie
  • *
  • Posts: 4
Calendar - add other holiday
« 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:

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Calendar - add other holiday
« Reply #1 on: September 30, 2010, 07:28:38 AM »
Works for me by adding the following URL to calendar feeds:

Festività italiane
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline paolol61

  • Newbie
  • *
  • Posts: 4
Calendar - add other holiday
« Reply #2 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

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Calendar - add other holiday
« Reply #3 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.
« Last Edit: September 30, 2010, 08:56:45 AM by rosali »
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline paolol61

  • Newbie
  • *
  • Posts: 4
Calendar - add other holiday
« Reply #4 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

Offline paolol61

  • Newbie
  • *
  • Posts: 4
Calendar - add other holiday
« Reply #5 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/usa__en@holiday.calendar.google.com/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

Offline stkcode

  • Jr. Member
  • **
  • Posts: 13
Calendar - add other holiday
« Reply #6 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:

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

and you have:

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

Note the /public before /basic in the url link.
« Last Edit: October 17, 2010, 06:36:30 PM by stkcode »

Offline jeffshead

  • Full Member
  • ***
  • Posts: 71
Calendar - add other holiday
« Reply #7 on: May 03, 2011, 03:11:45 PM »
My mistake. Please disregard my post.
« Last Edit: May 03, 2011, 03:30:06 PM by jeffshead »