Hi,
I have a feature suggestion. What about an option to allow exporting, no permission checking of course, a calander through the use of an URL?
So, the URL
http://www.mysite.org/modules/pical/ics.php?cat=Fredrikwould get me an ICS of the category Fredrik.
There are several PIMs out there that support import of a calendar from the web (Kontact for instance) and I would just love the feature.
/Fredrik
Thank you for a good suggestion.
I'm thinking about the way to schedule syndication in the next version.
is there a solution now? I use Mozilla Sunbird for my private Kalender. It would be great to import my Xoops Calendar into Sunbird, to do this i need an URL for Sunbird like
http://www.mysite.org/modules/pical/icsfile.icswith all calendar information automaticaly stored in icsfile.ics. maybe updatet each time a user changes something in the Calendar off my Homepage
Greetings ApeRush
Hi,
I run this pearl robot from crontab to do this.
Be carefull with Protector Module that may reject your IP if you insist while testing it.
Nicolas.
#!/usr/bin/perl -w
use strict;
use WWW::Mechanize;
#-------------------
my $login="...";
my $passwd="...";
my $connexionUrl="http://.../index.php";
my $eventsUrl="http://.../modules/piCal/index.php?smode=List&op=all";
#-------------------
my $agent = WWW::Mechanize->new();
# Get cookie and connect
$agent->get($connexionUrl);
$agent->form_number(1);
$agent->field('uname', "$login");
$agent->field('pass', "$passwd");
$agent->click();
# Get event list
$agent->get($eventsUrl);
my $page=$agent->content;
$agent->form_name('MainForm');
$agent->tick('dummy', 'on');
# Mark all events into checkbox
my $dummy="";
my $number="";
do {
($dummy, $page) = split(/<input type='checkbox' name='ids\[\]' value=/, $page, 2);
if (defined($page))
{
($dummy, $number) = split(/'/, $page, 3);
$agent->tick('ids[]', "$number");
}
}
while (defined($page));
# Post form
$agent->click('output_ics_confirm');
# Ask for iCalendar (Windows) format
$agent->form_number(1);
$agent->click('do_output');
# Print iCalendar file
print $agent->content;