Here is an alternative for the normal calendar, whith
quite a few improvements:
1. You can select multiple groups for display.
2. You can select how many months forward to display.
3. Different projects get different colors.
4. Tasks are sorted on the calendar by project and by
status.
5. Completed tasks appear with a tick left to them
(instead of an arrow) and with strikethrough
decoration. Had to do this because colors are now used
to visualy identify different projects.
A few fixes on calendar_show.php included as well.
Other Notes:
The patches are against the cvs tree. The diff file may
need some editing before applying.
Colors for projects are hardcoded in the php code.
Maybe in the future the users should be able to choose
a color for each project when they create it.
The color table is shuffled every time the page loads.
As an effect each project is assigned a different color
with a reload. As long as the users can't assign colors
to projects, this is considered a feature, not a bug :-)
The code is based on calendar_show.php, but there have
been major rearrangments. Now the calendar table is
printed by a single function to allow for easy looping
& printing of multiple months.
If you don't find that the new calendar is advanced,
you may just call it 'alternative'. Of course it can
completely replace the existing calendar, so there is
no need to use an adjective :-)
advanced calendar
Logged In: YES
user_id=523452
Wow! Thank you.
Downloaded and patched. Working fine - a few warning
Notices that were easily fixed. You're right, there is a
lot here. It'll take me a little while to work through it
all :-) First thoughts are that it should replace the
existing Calendar... then again, I've only been using it for
a few minutes.
Logged In: YES
user_id=1242851
Very cool, thanks!
Just thought I'd share a change I made to stop this error
(if you have php set to display them) from showing up:
Warning: in_array(): Wrong datatype for second argument in
./calendar/acalendar_show.php on line 219
So I changed line 219 to this:
$selected = (is_array ($groupid) && in_array($row['id'],
$groupid)) ? ' selected="selected" ' : '';
And it cleared it up. Hope this helps!
Logged In: NO
I'm getting a lot of variable errors in this patch. Does anybody
have file versions of the patched files that are available for
download/transfer? I've spent over three hours just hunting
down the first half dozen...
help! :)
Logged In: YES
user_id=523452
I have this debugged somewhere.... I will locate it and
post it.
Logged In: YES
user_id=523452
O.K. I have updated the file. Fixed the variable bugs and
a few other minor details.
The file (below) is a drop-in replacement for the existing
calendar_show.php.
I hadn't really played much with this patch. Too busy is my
excuse! I need to incoporate it into the main tree in some
manner. It is very good.