|
Author
|
Topic: Meta Calendar Plug-in
|
DanO Administrator
|
posted December 20, 2002 07:27 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).] IP: Logged |
DanO Administrator
|
posted January 10, 2003 02:54 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).] IP: Logged |
eladyar Member
|
posted January 21, 2003 04:19 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).] IP: Logged |
DanO Administrator
|
posted January 21, 2003 07:29 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. ------------------
IP: Logged |
eladyar Member
|
posted January 22, 2003 01:24 AM
I am using Ver 3.2.------------------ -- Dale Ray
[This message has been edited by eladyar (edited August 20, 2004).] IP: Logged |
eladyar Member
|
posted January 26, 2003 07:29 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).] IP: Logged |
DanO Administrator
|
posted January 27, 2003 08:29 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).] IP: Logged |
eladyar Member
|
posted January 27, 2003 10:07 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).] IP: Logged |
eladyar Member
|
posted January 29, 2003 01:29 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).] IP: Logged |
DanO Administrator
|
posted January 29, 2003 09:13 PM
** I have the hack working **Glad the hear it. Thanks for making your template available. Dan o. ------------------
IP: Logged |
Diane B. unregistered
|
posted January 31, 2003 10:25 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. IP: Logged |
DanO Administrator
|
posted February 01, 2003 01:44 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.
------------------
IP: Logged |
Diane B. unregistered
|
posted February 01, 2003 10:13 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.IP: Logged |
Diane B. unregistered
|
posted February 02, 2003 12:30 AM
After a momentary glitch on the upgrade *eek* I took a deep breath, tried again and now the Meta Calendar works! Yay! Awsome!
IP: Logged |
Diane B. unregistered
|
posted February 02, 2003 02:16 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.IP: Logged |
DanO Administrator
|
posted February 02, 2003 12:52 PM
** not all the calendars show up in the Meta Calendar. **I see at least 3, Default, Friendship Foundation Schedule and SMART Dogs Schedule ( see http://www.dog-play.com/cgi-bin/webcal/calendar.pl?calendar=Overview&year=2002&month=12 ). Of course, those other calendars have to have events before they'll appear in the meta calendar's grids. The Meta Calendar will also only show events the current user has permissions to view. What are the permissions set to for Diane's calendar? Or did you mean not all the calendars show up in the Select Meta Calendar screen? ** each have different templates. Oh and had to copy event_detail_popup.html to each of the template folders to get that to work. ** I hadn't considered that each calendar might be using a different template, at least when they popup you can see at a glance that they're from an individual calendar? Glad to hear you figured out where to put the template. The plug-in should really find the template in the plug-in's directory. Maybe I'll try to look into why calendar.pl doesn't, one day? For administration plug-ins, it seems to (for the most part anyway). Dan O. ------------------
IP: Logged |
Diane B. unregistered
|
posted February 02, 2003 02:47 PM
I don't have any view restrictions on any calendar. For example you should be able to see my own http://www.dog-play.com/cgi-bin/webcal/calendar.pl?calendar=Diane but it doesn't show up in the Meta Calendar ...oh wait - oops I was playing around with permissions and I unchecked view. I forgot about it because it wasn't restricting the view and only after playing around with another one did I realize there was another place that needed to be checked for the view restriction to work. Whew That did it. Sorry, I should have thought of that. I spent my time comparing templates etc not seeing enough difference to explain the problem. I understand that with permissions I can set it up so that one user could see two calendars and other user could see three etc. Can a user name and password be passed in a link so that the user need not know the information to select each view? I really appreciate the work that went into creating this meta calendar. IP: Logged |
Diane B. unregistered
|
posted February 02, 2003 03:13 PM
I answered my own question on the link issue. I don' think I'll post the answer here, though.
IP: Logged |
DanO Administrator
|
posted February 02, 2003 05:00 PM
Glad you got it working satisfactorily.** For example you should be able to see my own ww..../cgi-bin/webcal/calendar.pl?calendar=Diane but it doesn't show up in the Meta Calendar ** It is possible to view a calendar by directly linking to it if you know the calendar's key, even if you don't have permissions to view it. You just can't select it on the Select Calendar screen through the administration interface. That has been discussed in the forums previously (if that's what you were worried posing about). That is one other thing my Meta Calendar plug-in handles, it doesn't even show the other calendar's names if the user doesn't have permissions to view them (hence they should never be able to figure out their names to directly link to them). BTW. I noticed your help files, they look really good! Maybe you could consider making them available to others through the Unofficial CalendarScript - Mods and Plugins site? Dan O. [This message has been edited by DanO (edited February 02, 2003).] IP: Logged |
DJBAP Junior Member
|
posted March 19, 2003 11:21 AM
How could the search-function be activated on the level of the metacalender, so that it scans all sub-calenders. In the moment it scans only the metacalender itself. Dirk Holthaus ------------------
[This message has been edited by DJBAP (edited March 19, 2003).] IP: Logged |
DanO Administrator
|
posted March 19, 2003 07:02 PM
** How could the search-function be activated on the level of the metacalender, so that it scans all sub-calenders. In the moment it scans only the metacalender itself. **I'm not quite sure what you mean. If you perform a search on the meta calendar, all other calendar's events (which the user has permissions to view) will be displayed. HOWEVER, the CalendarScript search routine is flawed in that it will only find recurring events if the start date falls within the time period searched for and even then, it only finds the first occurrence. It will not find an unbounded (no start or end time) recurring event at all. I did not attempt to correct the default search routine's shortcomings. (That's Matt's job) Dan O. ------------------
IP: Logged |
yugocrazy unregistered
|
posted April 16, 2003 10:28 AM
I've installed the MetaCalendar plugin as per the instructions, but I'm having a few problems and some help would be great.When I go to calendar admin to choose which calendar to display I select the default calendar and save all. However it does not seem to work and when I go back into to the MetaCalendar Options, Meta Calendar disabled option is selected again. I've checked all the permissions, but it still does not work. Also the drop down calendar selection doesn't work, but I'm guessing this is because the plugin is not working. I've been changing the pearl scripts to cgi scripts so far. Do I need to change them in the Meta Calendar plugin as well? Thanks for all your help IP: Logged |
DanO Administrator
|
posted April 16, 2003 09:16 PM
** I select the default calendar and save all. However it does not seem to work and when I go back into to the MetaCalendar Options, Meta Calendar disabled option is selected again. **Sounds like a permissions problem to me. There have been other posts about other plugins becoming disabled. I don't know if it was ever resolved but you could try searching the forums. ** Also the drop down calendar selection doesn't work ** I wasn't aware there was such a thing as part of the Meta Calendar plugin. Refresh my memory. Dan O. ------------------
IP: Logged |
jimnycricket Junior Member
|
posted September 23, 2003 07:47 PM
Couldn't open Template [/hsphere/local/home/sainthed/sainthedwigparish.org/cgi-bin/calendarscript/templates/calendars/default/event_detail_popup.html] : No such file or directory Can someone respond to this error message? Can I have a fresh copy of this missing file?
------------------
IP: Logged |
DanO Administrator
|
posted September 24, 2003 01:32 PM
** Can someone respond to this error message? **Someone has already in one of the other messages you posted about this problem. This is from the Meta Calendar _installation.txt file: quote: * If templates can not be found in the plug-in's directory, upload them to your regular templates and/or admin directory.
Dan O.
[This message has been edited by DanO (edited September 24, 2003).] IP: Logged |
paulmarx Junior Member
|
posted October 20, 2003 09:18 PM
'k. I'm installing MetaCalendar at the moment to get the nice popup details window, leaving my options to do real "metacalendaring" for the future . .. .I also got the message about not finding the popup template and following the directions, copied the events popup html file over into my default template directory. The popup does work and does display all the pertinent data BUT it is headed by this message: ========== [Include file (/var/www/cgi-bin/calendarscript/templates/calendars/default/styles.pl) could not be found] ========= This is a puzzler as there is no file "styles.pl" anywhere on my system or included in the MetaCalendar files. I guess I'm curious too, the instructions say if the popup templates aren't found to copy them to the default directory . . . I don't also have to bring over any of the .pl files too, do I?
------------------
IP: Logged |
paulmarx Junior Member
|
posted October 20, 2003 09:27 PM
OK, doped it out myself - the "Styles.pl" include in the event popup html file can be changed to "preferences.pl" and it's all pretty.Now, with reference to some of the above - I downloaded and installed CS pretty recently, but aside from knowing when I got it, is there a file or widget somewhere that shows me the version number?
------------------
IP: Logged |
DanO Administrator
|
posted October 21, 2003 01:04 PM
** the "Styles.pl" include in the event popup html file can be changed to "preferences.pl" and it's all pretty. **Thanks for the note. The event_detail_popup.html template used in the Meta Calendar plug-in was derived from the CalendarScript version 3.1 default.html template, version 3.2 changed that particular included file name. I'll see if I can update the template or installation notes to make reference to it. ** is there a file or widget somewhere that shows me the version number? ** The CalendarScript version number is listed at the top of the calendar.pl and calendar_admin.pl files. I don't know if it is listed anywhere else. Dan O. ------------------
IP: Logged |
DanO Administrator
|
posted October 21, 2003 01:18 PM
BTW. Only 1 person has donated anything for the use of the Meta Calendar plug-in. That isn't much incentive for the people taking the time to develop such applications to continue to support or enhance them?JMO Dan O.
[This message has been edited by DanO (edited October 21, 2003).] IP: Logged |