The default ssi.html works very well with the default on the home page enableing me to pull all dates and display them nicely, however, I would also like to be able to display the individual schedules for each group involved as well in a similar format.
I tried copying the file ssi.html to ssi3.html and call that referenced to teh indivdual calendar but got the default grid somehow.
<!--#exec cgi="/calendarscript/calendar.pl?/calendarscript/calendar.pl?template=ssi3.html&duration=30d"-->
Any suggestions or would I be better off relearning a new script?
Paul
Where is that? I don't see that in the SSI tag you posted.
BTW. You can not have two "?" in a single url.
JFYI
Dan O.
------------------
Here is the call for the default: located at www.arppix.net/
<!--#exec cgi="/calendarscript/calendar.pl?template=ssi.html&duration=30d"-->
The specific calendar I wish to call on is "bulldogs" but need to have teh default one working on the home page as that reflects all scheduled dates.
Here is the tag I included in the ssi3.html file in an effort to invoke only the bulldogs calendar.
<a
href="http://arppix.net/calendarscript/calendar.pl?calendar=bulldogs&view=Event&event_id=($in{'event_id'})&event_id=<%= EVENT
FIELD(id) %>"> <small><b><%= $EVENT->{'details'}->{'Who'} %><%= $EVENT->{'details'}->{'title'} %>
</b></small></a><small> <%= $EVENT->{'details'}->{'eventtitle'} %> <i><%= $EVENT->{'details'}->{'location'}</i> %>
Again, Sorry about the confusion.
------------------Don't ask a question if your afraid of the answer!
The call in the shtml file seems to be the key. Here is the code that did the trick:
<!--#exec cgi="/calendarscript/calendar.pl?calendar=bulldogs&template=ssi3.html&duration=30d"-->
The only draw back right now is the entering of the dates in seperate calendars, but the fact that it is actually doing what I needed it to do is a small price to pay.
(You weren't in any of the other calls you posted.)
Glad to hear you figured it out.
BTW. The <!--#exec cgi SSI tag doesn't often accept a querystring to the URI. On Apache servers the <!--#include virtual SSI tag can be used instead:
<!--#include virtual="/calendarscript/calendar.pl?calendar=bulldogs&template=ssi3.html&duration=30d"-->
[This message has been edited by DanO (edited December 10, 2005).]
So all I have to do is create multiple ssi.html's for each calendar, and then use the code listed there?
Little confused as I've never messed with SSI before.... Looks easy enuff thuogh...
Hopefully, in a future upgrade, something like this can be incorporated as it seems that more than I have a desire for it. Thanks guys though for making available what you have though!
I don't know what you mean by 'feeds'.
** I have like 10 calendars set up ... Of each of those genres I would like to display "today's events" in on the home page **
Depending on what SSI tags your server recognizes, that may not be a problem to do in CalendarScript. You should however keep in mind that if you do what you're planning, every time your home page is called, 10 CalendarScript scripts will be run. If your site is popular or if it gets spidered a lot, that could present problems for the server.
** So all I have to do is create multiple ssi.html's for each calendar **
You would only need multiple ssi.html files if each of the calendars where using different templates. Otherwise the same template can display events from any of the calendars.
** with "bulldogs" being the calendar name **
The calendar 'key'.
** if I would've read the documentation better **
It always helps... but there still should not be any problem doing what you want... depending on the limitations I stated above.
Looks like I will have to ask my host, I don't think they use Apache servers.... hmmmm...
They are all using the same template (color theme, etc?).
I guess I'll read up more in the documentation and figure out when I get out of work tonight.
Thanks for your input!
The colour settings of each calendar don't matter, just the templates selected to be used by them.
** I don't think they use Apache servers **
Than you'll be at the mercy of whatever SSI tags they support. Check their FAQs.
** more just processing power on the server, right? **
Yes.
You know, it is possible to display events from all the different calendars at the same time (aka. on a single template) using the 'Meta Calendar' plug-in available at the Unofficial CalendarScript - Mods and Plugins site. Maybe that would be an alternative to calling the script multiple times on a single page?
Hmmm... All events under one SSI tag with the Meta-Calendar? Question: If I went this route, each event listed under "Today's Events", will it identify which calendar each event came from? If not, it will not be a good option since on any given day, over the 10 calendars, there could quite easily be 50-60 events for one day.
If you might lead the blind a moment here, what is the SSI code I should be using to pull my daily events for each calendar? I understand I will have to redo it 9 times over replacing the "name" of the calendar for each of my other "Today's Events" SSI codes.
Is there anything I can edit crons/mimes that would allow me to execute the SSI code, or would my host be directly responsible of whether or not the code would be compatible with my server?
I really appreciate your help and prompt replies....
If anyone knows the code I need for "Todays Events" that identifies the calendar, you know I would greatly greatly greatly appreciate it
Thanks for all the help!
Well, I got it working and it works for the multiple calendars: http://www.review-mag.com/Home.shtml
Now my problem is:#1 I want those events listed to be a link to their event on the calendar. Is there a hack or easy template modification for this?
and#2 as I'm here ready to turn in, I notice it is well over a half hour past midnight and it is showing yesterday still. Does this have to do with my server time or something I can adjust within calendarscript?
I would also rather pull the date off each one since they're listed right on top of eachother, would that be just removing this from template? :
<DT><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%>
You would have to modify the template to display that information (in whatever way you would like - colour coding, graphics, etc.). It is possible - see the Meta Calendar installation instructions for possible conditionals which could be used in the template.
** If you might lead the blind a moment here, what is the SSI code I should be using to pull my daily events for each calendar? **
It depends on the SSI tags that your server allows, 2 examples are shown in the messages above. The duration=30d is obviously the duration of events to be displayed, the calendar=... the particular calendar's key reference and template=... the name of the template to be used to display the evens on.
There are several links in the Unofficial CalendarScript - Mods and Plugins site's 'Links' section dealing with SSI and CalendarScript. You might want to read them to see it they give you any clues.
** If anyone knows the code I need for "Todays Events" that identifies the calendar **
It would be the same code used to display "Todays Events" that doesn't identify the calendar... with the addition of the calendar key identification to the query string (which is illustrated a couple of messages above).