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
Pages: [1]   Go Down
Print
Author Topic: SSI  (Read 473 times)
0 Members and 1 Guest are viewing this topic.
Keith McKinley
Guest
SSI
« on: March 09, 2003, 12:19:00 PM »

Where do I place the ssi.html file. It is located in 3 places...under the default, oldstyle, ans simple folders?

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
SSI
« Reply #1 on: March 09, 2003, 03:59:00 PM »

** Where do I place the ssi.html file. **

You leave it exactly where it is.

If you want to use that feature, you just call calendar.pl file with your SSI tag in another page at your site and calendar.pl will (usually) find the ssi.html template file to use.

** under the default, oldstyle, ans simple folders? **

Those are the various templates that CalendarScript could be using. If you want to alter the ssi.html template file, you will have to alter the one located in the directory of the template your calendar is currently set to use.

Dan O.


[This message has been edited by DanO (edited March 09, 2003).]

Logged
keith mckinley
Guest
SSI
« Reply #2 on: March 12, 2003, 12:19:00 PM »

**Those are the various templates that CalendarScript could be using. If you want to alter the ssi.html template file, you will have to alter the one located in the directory of the template your calendar is currently set to use.**

I take it this is in the calendar.pl script somewhere or in ssi.txt?

I get the ssi tag to call but it produces the default calendar. I would like it to show the days events in a list with links each and every day. I have made changes to my ssi.html to do this but I think I have it in the wrong folder.

Also, do I keep ssi.txt in the root directory and in that file do I change template=ssi.html to the actual location of ssi.html?

What else is changed in ssi.txt to get the above action (list days events)to take place?

Thanks!

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
SSI
« Reply #3 on: March 12, 2003, 01:50:00 PM »

** the template your calendar is currently set to use.**

* I take it this is in the calendar.pl script somewhere or in ssi.txt? *

There is a choice in the administration section to select which template to use. I'm not sure on exactly which screen but maybe Manage Calendars or Template Preferences section.

* I get the ssi tag to call but it produces the default calendar. *

It appears that your calendar.pl is not recognizing that it is being called via SSI. You can try using the 'include virtual' SSI tag and passing the elements ( normally found in the ssi.txt file) needed for the proper display. Eg.

<!--#include virtual="/cgi-bin/calendar.pl?duration=2d&template=ssi.html"-->

(of course making sure the path is correct for the location of the calendar.pl file on your server)

* I have made changes to my ssi.html to do this but I think I have it in the wrong folder. *

Well then it won't work. It has to be in the template's directory of the templates your calendar is using.

* do I keep ssi.txt in the root directory *

You keep the ssi.txt file exactly where it was unzipped to originally.

* and in that file do I change template=ssi.html to the actual location of ssi.html? *

No. The calendar knows to look for all templates in the template directory.

Dan O.


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

Logged
Keith
Guest
SSI
« Reply #4 on: March 12, 2003, 02:54:00 PM »

Thank you very much Dano.

It works great! I just need to fix my ssi.html script to get it to post the info I need. Are there any places you recommend for ideas?

I'm using this code but just get the dates and no times or event info

<%
&getEvents( {'duration'=>$in{duration}} );
$DAY = $Grid->{'grid'}->

  • ->
  • ;
    $EVENTS = $DAY->{events};
    $total_events=0;
    %>
    <DL>
    <%FOREACH EVENTLIST%>
       <%IF EVENTS EXIST%>
       <%$total_events++;%>
       <DT><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%>
       <DD>
          <%FOREACH EVENT%>
             <% if ($_SHOW_GRID_EVENT_BULLET) {%>•<%}%>
             <% if ($_SHOW_EVENT_TIMES eq "ALL" | | $_SHOW_EVENT_TIMES eq "START") { %>
                <% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= SCHEDULE FIELD(start_time) %><% } %>
             <% } %>
             <% if ($_SHOW_EVENT_TIMES eq "ALL") { %>
                <% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= SCHEDULE FIELD(end_time) %><% } %>
             <% } %>
             <% if (($_SHOW_EVENT_TIMES eq "ALL" | | $_SHOW_EVENT_TIMES eq "START") && ($EVENT->{'schedule'}->{'start_time'})) { %> : <% } %>
             <%= $EVENT->{'details'}->{'title'} %><BR>
          <%/FOREACH%>
       <%/IF%>
    <%/FOREACH%>
    </DL>
    <%unless($total_events){%>
    <CENTER><I><%= $_NO_EVENTS_LABEL %></I></CENTER>
    <% } %>
    <A HREF="<%=$AdminConfig->get("calendar_url")%>?calendar=<%=$calendar_key%>">View Calendar</A>
Logged
Keith
Guest
SSI
« Reply #5 on: March 12, 2003, 03:41:00 PM »

Using this in ssi.html and it all works great except links to the events don't work. Once that is solved It'll be cased closed!!!  THANKS

<%&getEvents( {'duration'=>'1d'} );$DAY =
$Grid->{'grid'}->

  • ->
  • ;$EVENTS =
    $DAY->{events};$total_events=0;%>

    <head>
    <title></title>
    <style fprolloverstyle>A:hover {color: #808000}
    </style>
    </head>

    <body link="#000080" vlink="#000080" alink="#000080">

    <table border="0" cellpadding=0 cellspacing=0 width="175" style="font-size: 8pt; font-family: Arial">
    <%FOREACHEVENTLIST%><%IF EVENTS EXIST%><tr><td align="center" bgcolor=#C0C0C0 style="font-size: 8pt; font-family: Arial" width="175"><b>
    <%$total_events++;%><%=$DAY->{dayname}%>,
    <%=$DAY->{monthname}%>
    <%=$DAY->{dd}%></b></td></tr><tr><td>
    <%FOREACH EVENT%>
    <% if ($EVENT->{'schedule'}->{'start_time'}) {%><%= $EVENT->{'schedule'}->{'start_time'} %><% }%>
    <% if ($EVENT->{'schedule'}->{'end_time'}) { %>-
    <%=$EVENT->{'schedule'}->{'end_time'} %><% } %>
    <% if($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %><A HREF="<%= EVENT FIELD(link) %>">
    <%=$EVENT->{'details'}->{'title'} %></a><br>
    <%/FOREACH%></td></tr>
    <%/IF%><%/FOREACH%></table>
    <%unless($total_events){%>?
    <p><font size="2" face="Arial">No Events Scheduled</font><br>?<% } %></p>

Logged
mraj
New Member
*

Karma: 0
Offline Offline

Posts: 0

Software Engineer


SSI
« Reply #6 on: March 25, 2005, 11:23:00 PM »

Dan wrote:
quote:
You can try using the 'include virtual' SSI tag and passing the elements ( normally found in the ssi.txt file) needed for the proper display. Eg.
<!--#include virtual="/cgi-bin/calendar.pl?duration=2d&template=ssi.html"-->

Thanks Dan, that worked for me!
Without the 'virtual', I could not add the parameters, and I was getting the default.html template.

------------------
See some of my modifications to CalendarScript at
http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl

Logged

See some of my modifications to CalendarScript at
http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl
Pages: [1]   Go Up
Print
Jump to: