On Tue, Jul 08, 2003 at 02:24:56PM -0400, Rob Brown wrote:
> I've been using php-calendar for some time now. It's been great.
>
> Months ago, I needed a seperate calendar for a different group of people. Well, now these two groups have the same events.
>
> I was wondering if anyone knew of a way (or could point me in the right direction) to create a third calendar.
>
> Here's what my goal is:
>
> Calendar 1: Group 1
> Calendar 2: Group 2
> Calendar 3: General and school wide events
>
> Group1 events would only be viewable to Group1. Group2 events would only be viewable to Group2. However, any events placed in the third calendar (general events) would appear in both Group1 and Group2.
>
> Does this make sence? Can anyone help me to figure out a way to replicate data like this?
hmmm... this is kind of tricky and not something that has been built into the
code yet. there should be a fairly simple hack to get around it. perhaps not
though. I don't remember what the differences are between the last released
version and CVS are. anyway, you should have a calendar called like group1
and one called like group2, right? so you want to show items in both. you
could maybe create a new config variable called PHPC_VISIBLE_CALENDARS or
something and have it contain a list of calenders that should be searched.
then in the functions that return events (they should be in calendar.php, I
think), rather than only returning events that match the calendar name (it
might be an ID #), return events that match any of the calendars in the
PHPC_VISIBLE_CALENDARS. this should be rather trivial. hopefully my code is
thought out well enough to handle this. if you get it working, let me know
and I'll merge the patch for you.
good luck,
Sean
|