I have just started setting up PostCalendar 3.02 and
can not get the block to work correctly. I Added a
new block and chose the PostCalandar/Calendar Block,
selected the right for the position and then hit
Commit.
I am then presented with the Modify Block screen where
I select display todays events only. I hit commit and
get the following error:
Warning: Undefined variable: vars in d:\pn_713
\html\modules\PostCalendar\pnblocks\calendar.php on
line 1118
Warning Cannot add header information - headers
already sent by (output started at D:\pn_713
\html\modules\POstCalendar\pnblocks\calendar.php:1118)
in d:\html\includes\pnAPI.php on line 1000
Any ideas?
There also a bug in the pnuserapi.php on line 266. The
following should be placed on this line to allow
entries starting before 10 in the morning to have the
string "AM" appended onto each entry. Here's what the
code did have:
if ($time_Array[0] < 10 {
$hour = substr($time_Array[0],1,1);
} else {
$hour = $time_Array[0];
$ampm = "AM";
}
It should be:
if ($time_Array[0] < 10 {
$hour = substr($time_Array[0],1,1);
$ampm = "AM";
} else {
$hour = $time_Array[0];
$ampm = "AM";
}
I hope this is of some help. If you could let me know
what the problem is with the block I'd be very pleased.