OK, here it is.
Allows no-hassle export/import between calendars by using the csxport beta plugin to create an intermediate database.
I will put it into a new thread after a few people have had a chance to try it out and post improvements or simplifications.
Back up your admin.pl file.
In admin.pl find two instances of
=~/(\d\d?) : (\d\d?)/); (Remove the spaces before and after the : to search for this line)
Remove the : in both instances
This should not create a problem unless you are also importing events from Version 2 calendars.
In import_events.html find two instances of
HH:MM
Replace both with
hhmm
In the csxport display_after_search.pl find the line
flock(FILE, 2);
Immediately after that line paste these three lines
$csx_data =~ s/\n |\r $/\n/g;
$csx_data =~ s/\| /|/g;
$csx_fieldnames =~ s/\| /|/g;
This assumes you will be using a pipe "|" delimiter. For other delimiters the last two lines will have to be altered accordingly.
Also in the csxport display_after_search.pl find the line
$csvc_eventkey =~ s/\n|\r//mg;
Replace with
$csvc_eventkey =~ s/\n|\r/\\n/mg;
This will preserve line breaks in the event descriptions, etc. if you are using the preserve line breaks mod. in your templates.
All suggestions welcomed.
------------------
[This message has been edited by musicvid (edited May 28, 2004).]