Hi All.
Ok, I have read all the forum posts I could. I have events within the duration I am using. I am using SSI_Max_Days.
I wish to display the next two days scheduled events.
I have tried calling it (both in the browser and via Include):
/cgi-bin/calendar/calendar.pl?template=ssi_max_days.html&duration=45d
/cgi-bin/calendar/calendar.pl?duration=45d&template=ssi_max_days.html
No matter what I do, I only get this month's events (ones dated tomorrow until the end of the month, and I have a recurring event 14 days later, and a stand alone between them as well which runs us into the next month.
I am calling the SSI into the page and it's working fine (minical works great, the events within this month all show up fine). I just can't get it to the next month. I am running 3.21
code:
<%
&getEvents( {'duration'=>$in{duration}} );
$DAY = $Grid->{'grid'}->
- ->
- ;
$EVENTS = $DAY->{events};
$total_events=0;
$max_days=2;
$total_days=0;
$time = time;
($neg_pos,$hours) = ($vars{time_offset} =~ /([+-])(\d+)/);
if ($neg_pos eq '+') {
$time += (60*60 * $hours);
}
else {
$time -= (60*60 * $hours);
}
($mday,$month,$year) = (localtime($time))[3,4,5];
$month = $month+1;
$year = $year+1900;
$datestamp = sprintf("%4.4d%2.2d%2.2d",$year,$month,$mday);
%>
I also tried editing the options within the script, to no avail.
I need more coffee (or a smack to the head with a 2x4).
Anyone? Anyone?
Pete