Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationPlugins (Moderators: scott, DanO, Marty)Meta Calendar Plug-in
Pages: [1] 2   Go Down
Print
Author Topic: Meta Calendar Plug-in  (Read 1546 times)
0 Members and 1 Guest are viewing this topic.
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« on: December 20, 2002, 07:27:00 PM »

I'm nearing completion of a 'Meta Calendar' plug-in which will probably be ready by the first of the new year.

Dan O.

[This message has been edited by DanO (edited January 10, 2003).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: January 10, 2003, 02:54:00 PM »

The Meta Calendars plug-in in now available for download from the Unofficial Mod and Plug-ins site.

It allows a single calendar to be set up to show all calendars' events on a single calendar. It only displays those events a user has permissions to view and 'pops up' the event details which include the event date and time plus also has a convenient 'print' button to allow easy printing of the event.

If you need a meta calendar solution which is more complex, TubaDave is working on another version which no doubt will be available soon.

Let me know here if you experience any problems or conflicts with any other plugins.

Dan O.


------------------

[This message has been edited by DanO (edited January 10, 2003).]

Logged
eladyar
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: January 21, 2003, 04:19:00 AM »

I have installed the Meta Calendar plug-in at:

[dead link removed]

and it seems to be working well.

I am using the dayspan template and had to place the event_detail_popup.html file in the dayspan directory for it to work.

In case others are wondering if MetaCalendar will work with their existing plug-ins and mods here is my setup.

Plug-ins:

DeleteOld
OneClick Add Event

I have also modified the template so that it does not display Sundays and changed the code for the month navigation bar at the top of the calendar.

The calendar is used for high school sports schedules and other related events. I have a calendar for each sport plus one for general events such as school holidays for a total of seventeen (17) calendars. At this time only three have any info so we will see how things go as the number of events grows.

Dan, thanks for this plug-in.

------------------

[This message has been edited by eladyar (edited January 21, 2003).]

[This message has been edited by eladyar (edited August 20, 2004).]

Logged

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: January 21, 2003, 07:29:00 PM »

Thanks eladyar for the update, glad to hear you find it useful.

** I am using the dayspan template and had to place the event_detail_popup.html file in the dayspan directory for it to work. **

What version of CalendarScript are you using? I found I had template location problems for plug-ins with version 3.1. I was just wondering if maybe they hadn't been resolved in the current version 3.2

Dan O.

------------------

Logged
eladyar
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: January 22, 2003, 01:24:00 AM »

I am using Ver 3.2.

------------------
--
Dale Ray

[This message has been edited by eladyar (edited August 20, 2004).]

Logged

eladyar
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: January 26, 2003, 07:29:00 PM »

Ok, you knew someone would ask this:

I want to be able to mark SOME events as local, so they DON'T display on the Meta Calendar.

My thinking is:

Create a custom field called local, set the default to no with the option of setting to yes.

From looking at default.html I think I need to check that I am displaying the Meta Calendar, and then check if the custom field local equals yes. If it is yes, skip the event.

I want 90% of the events on the other calendars to show on the Meta Calendar. So checking for an explicit local setting means editing less events.

This check would be made after each:

code:
< % FOREACH EVENT % >

in the default.html?

Here is my best guess at what I would have to add:

code:
< if ($METACALENDAR eq $CALENDAR_KEY && $EVENT->{'details'}->{'local'} eq "no") %>

Am I anywhere close to accomplishing what I want to do?

To clarify, I have 17 calendars that have events listed in the Meta Calendar. I want to mark some of those events as local, so they are NOT displayed on the Meta Calendar. I only want this setting to effect the display of events when they are being shown in the Meta Calendar.

Thanks in advance for your input.


------------------
Dale Ray

[This message has been edited by eladyar (edited January 26, 2003).]

[This message has been edited by eladyar (edited January 26, 2003).]

[This message has been edited by eladyar (edited August 20, 2004).]

Logged

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: January 27, 2003, 08:29:00 PM »

** Am I anywhere close to accomplishing what I want to do? **

That looks like it should work. Just don't forget the { and } to contain the block of code to be skipped (and the missing % right after the first < ).

Dan O.

[This message has been edited by DanO (edited January 27, 2003).]

Logged
eladyar
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #7 on: January 27, 2003, 10:07:00 PM »

Dan,

Thanks, I'll let you know how it works out.

------------------
Dale Ray


[This message has been edited by eladyar (edited August 20, 2004).]

Logged

eladyar
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #8 on: January 29, 2003, 01:29:00 AM »

I have the hack working that allows me to make some events local to the calendar they are entered in and not display in the Meta Calendar.

I created a new template by making a directory in /templates/calendars directory and copying the files to it from the template I wanted to use for the Meta Calendar. Also, since only the Meta Calendar will use this template I didn't have to test which calendar is being displayed. I figured it would make customizing the Meta Calendar easier if it was the only calendar using a template. I used the dayspan template as a base.

I then set the Meta Calendar to use the new template.

In each calendar I wanted to have local events I added a custom field local with two possible values: yes and no.

I modified the default template (in the new template directory) by adding:

code:

< % if ($EVENT->{'details'}->{'local'} eq "no" | | $EVENT->{'details'}->{'local'} eq "") { % >[/CODE}

right after each:

[CODE}< % FOREACH EVENT % >



This checks to see if the event is local OR if there is a null value for local. If the condition is met the normal printing of the event occurs.

I also added:

code:
< % } % >

just before the closing:

code:
< % /FOREACH % >

I had to do this at each:

code:
< % FOREACH EVENT % >

All events that were entered into a calendar show on that calendar and all events where local isn't set to yes show up on the Meta Calendar.

You can download the default.html file at:
http://www.rdtk.net/files/default_html.zip  

WARNING: I did not comment this as I worked on it. I know I should have and I'll try to be better next time.

The file has other modifications, they include:

A different month nav bar at the top of the calendar.

The list display has been altered so that dates that had only local events aren't displayed. They were initially showing up as a blank date.

My thanks to everyone who posts here with helpful suggestions. The search feature in the forums is a great way to find answers and examples.

NOTE: There are some extra spaces in the code above so it will display.


------------------
Dale Ray
[This message has been edited by eladyar (edited January 29, 2003).]

[This message has been edited by eladyar (edited January 29, 2003).]

[This message has been edited by eladyar (edited January 29, 2003).]

[This message has been edited by eladyar (edited August 20, 2004).]

Logged

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #9 on: January 29, 2003, 09:13:00 PM »

** I have the hack working **

Glad the hear it. Thanks for making your template available.

Dan o.

------------------

Logged
Diane B.
Guest
« Reply #10 on: January 31, 2003, 10:25:00 PM »

I've been working on installing the Meta Calendar but I haven't got it working yet.  I have CalendarScript version 3.1  I'm not sure what the problem is.  Parts of it work. The plug in was recognized, the template for choosing the metacalendar works. http://www.dog-play.com/cgi-bin/webcal/calendar.pl?calendar=Overview

The metacalendar is empty.  I have six calendars with events on them, none have restricted viewing.
e.g.  http://www.dog-play.com/cgi-bin/webcal/calendar.pl?calendar=Friendship
http://www.dog-play.com/cgi-bin/webcal/calendar.pl?month=11&calendar=SMART&year=2002&month=12
http://www.dog-play.com/cgi-bin/webcal/calendar.pl?calendar=Diane

Taking the hint from the above discussion I tried putting event_detail_popup.html in the default folder.  No luck.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #11 on: February 01, 2003, 01:44:00 PM »

** I have CalendarScript version 3.1 **

I believe that version had some problems including plug-ins into the main calendar.pl application. If you haven't done any major customization to the CalendarScript system files, you should consider upgrading to version 3.2. Otherwise you'd have to edit the calendar.pl file directly to correct the plug-in deficiency.

Dan O.


------------------

Logged
Diane B.
Guest
« Reply #12 on: February 01, 2003, 10:13:00 PM »

Thanks - I suspected that might be the recommendation.  I took a look at the upgrade process.  I'm very bad at documenting my changes (shame on me) but the main of it is in the calendar templates so I should be OK. If not - that's what backups are for.
Logged
Diane B.
Guest
« Reply #13 on: February 02, 2003, 12:30:00 AM »

After a momentary glitch on the upgrade *eek* I took a deep breath, tried again and now the Meta Calendar works!  Yay!
Awsome!
Logged
Diane B.
Guest
« Reply #14 on: February 02, 2003, 02:16:00 AM »

Hmmm - not all the calendars show up in the Meta Calendar.  The two that do show up have different templates, that also differ from the meta calendar itself.  The three other calendars that do not show up also each have different templates. Oh and had to copy event_detail_popup.html to each of the template folders to get that to work.
Logged
Pages: [1] 2   Go Up
Print
Jump to: