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 CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)Small mod re DoubleCal plugin
Pages: [1]   Go Down
Print
Author Topic: Small mod re DoubleCal plugin  (Read 689 times)
0 Members and 1 Guest are viewing this topic.
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« on: April 28, 2004, 11:44:00 AM »

Hi DanO,

I am testing the DoubleCal template (which is worth more than the $10 I paid!) and have a small quirk with simma's ssi.html template (the one with links).

When the DoubleCal plugin is active, the ssi call shows all the events for the current month including those already passed, as well as those called by &duration=. With the plugin turned off, the events drop off the top daily after expiration as expected.

My call looks like this (ssi.txt doesn't work on my server):
<!--#include virtual="/cgi-bin/calendar/calendar.pl?template=ssi.html&duration=60d&calendar=default"-->

Can I do something to the ssi call or plugin to ignore expired events without affecting the DoubleCal display?

Thanks from an enthusiastic newbie.

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: April 28, 2004, 12:49:00 PM »

** Can I do something to the ssi call or plugin to ignore expired events without affecting the DoubleCal display? **

Both templates should work together Ok but I don't have the time at the moment to look into why it isn't, unfortunately.

For a temporary fix, try editing the DoubleCal's display_after_getEvents.pl file and adding this code immediately after the line:

sub display_after_getEvents {

code:
if ( in{'template'} eq "ssi.html" ) return;

Let us know how it works.

Dan O.

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

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #2 on: April 28, 2004, 02:05:00 PM »

It works on the ssi, but the minical disappears from the DoubleCal views.

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

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: April 29, 2004, 12:34:00 PM »

I have a client using both the DoubleCal and SSI templates together and they don't have the original problem you described.

Try using the original DoubleCal display_after_getEvents.pl file and the original ssi.html template file and see if it behaves any differently. That should indicate if the problem is in the new SSI template you're using or the plug-in's code (even though disabling the plug-in is a pretty good sign where the problem lies).

Dan O.

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

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #4 on: April 30, 2004, 10:15:00 AM »

I uploaded freshly unzipped copies of the original ssi.html and DoubleCal plugin directory. The behavior was the same.

However, I discovered the quirk is related to using &duration=60d in the ssi call, like above.

Without &duration=60d in the call, it displays all events for the current month (my default view).

With &duration=60d in the call, and the DoubleCal plugin Enabled, it shows all events for the current month and the next sixty days.

With &duration=60d in the call, and the DoubleCal plugin Disabled, it shows events from today forward for sixty days (events drop off the top after expiration).

All this being said, it's more of a curiosity than an issue to me, and I LOVE DoubleCal. I've had luck getting a fully interactive DoubleCal working on a test homepage (actually the reverse) and I like the functionality much better than ssi. http://ovationplayers.com/LCMA/littletonmusic/indextest2.shtml  (Pardon the dinosaur page, I just inherited it).

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

[This message has been edited by musicvid (edited April 30, 2004).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #5 on: April 30, 2004, 08:41:00 PM »

Ok, I think I found the problem. Search the DoubleCal's display_after_getEvents.pl file for $EventList (there's 2 occurrences) and change them to $EventList2

When finished, the new lines should look something like:

$EventList2->{$Grid->{'grid'}...

and

$Template::EventList2 = $EventList2;

See if that fixes the SSI template's display on your installation.

Dan O.

[This message has been edited by DanO (edited April 30, 2004).]

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #6 on: May 02, 2004, 09:22:00 PM »

Works like a charm! Thanks for taking the time to look at this, and for your help with customizing my calendar.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #7 on: May 03, 2004, 12:20:00 PM »

** Works like a charm! **

Glad to hear. I'll correct the DoubleCal plug-in's code so future downloads won't be subject to that limitation.

Dan O.

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

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #8 on: May 05, 2004, 01:05:00 PM »

Another question re using DoubleCal with MetaCal:

I purposely didn't modify the links to event descriptions in the DoubleCal template because I am using another printReady routine and don't need the popup, but I keep MetaCal enabled for event compiling from different calendars.

It works fine when I call ?calendar=meta&template=doublecal.html except that the minical  does not show up in Event View when used this way. Works fine in Month and Day Views.

Is there a bit of code that will overcome this?

TAIA

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

[This message has been edited by musicvid (edited May 05, 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: May 05, 2004, 08:53:00 PM »

** It works fine when I call ?calendar=meta&template=doublecal.html except that the minical does not show up in Event View **

I don't see anything at all coming up at http://ovationplayers.com/cgi-bin/calendar/calendar.pl?calendar=meta&template=doublecal.html

Do you have a calendar defined which uses the calendar key "meta"?

It has to exist (be a real calendar) before any template will be able to display anything from it. The Meta Calendar doesn't make a new calendar, it display evens from one in another (already existing one).

Dan O.

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

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #10 on: May 05, 2004, 09:25:00 PM »

Oops,
Wrong domain. It's now http://littletonmusic.org/cgi-bin/calendar/calendar.pl?calendar=meta&template=doublecal.html
The calender with unique ID 'meta' is the active MetaCalendar.

I just noticed, the event details don't seem to be showing up either.

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


[This message has been edited by musicvid (edited May 05, 2004).]

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: May 06, 2004, 09:41:00 AM »

** I just noticed, the event details don't seem to be showing up either. **

I believe that's because the plug-in doesn't know which calendar to look for the event. As noted in the DoubleCal installation instructions:

quote:
The DoubleCal Template is compatable with the Meta Calendar plug-in *however*
the links to Event Details would have to be modified as explained in the Meta Calendar plug-in's instructions.
They'd have to be 'popped' up like on the regular metacalandar display.

Dan O.

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

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #12 on: May 06, 2004, 10:45:00 AM »

I'd like to bypass the MetaCal popup and use it like http://littletonmusic.org/cgi-bin/calendar/calendar.pl?template=home.html#calendar  but also with the events integration that MetaCal provides.

I'll twiddle with it in spare time. Seems like a good opportunity for me to learn some coding.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #13 on: May 06, 2004, 02:30:00 PM »

Than you'd also have to pass the event's calendar key reference with the link to the details page and then all links back to the meta calendar would have to include the meta calendar's key.

Dan O.

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

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #14 on: May 06, 2004, 03:13:00 PM »

Wow.
Read that lots of spare time.
I think I'll just use it as it is now and cross-populate events from different calendars by hand. The template works well and I like the fact that I can figure out some customizations myself.

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

[This message has been edited by musicvid (edited May 06, 2004).]

Logged
Pages: [1]   Go Up
Print
Jump to: