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


Login with username, password and session length

Search

 
Advanced search

8019 Posts in 1850 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: neen help with ssi  (Read 210 times)
0 Members and 1 Guest are viewing this topic.
Kristen
Guest
« on: July 13, 2005, 06:41:00 PM »

I am using an SSI, but the link to "View Calendar" is not showing up on my web page.  I have it down on the very bottom.  I put it at the top and it shows up.  You can see it here: http://www.kristenwalker.com/wb/

But if I try to put the link at the bottom of the events, it doesn't show up.  Is there something I am doing wrong?


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

  • ->
  • ;
    $EVENTS = $DAY->{events};
    $total_events=0;
    $max_days=3;
    $total_days=0;
       $time = time;
       ($neg_pos,$hours) = ($vars{time_offset} =~ /([+-])(\d+)/);
       if ($neg_pos eq '+') {
          $time += (60*60 * $hours);
       }
       else {
       $time -= (60*60 * $hours);
       }
       ($mday,$month,$year) = (localtime($time))[3,4,5];
       $month = $month+1;
       $year = $year+1900;
       $datestamp = sprintf("%4.4d%2.2d%2.2d",$year,$month,$mday);
    %>
    <DIV STYLE="margin-left:10; margin-right:5;margin-top:0;">
    <DL>
    <FONT size=1>
    <STRONG>Upcoming Events:</STRONG></FONT><br><br>
    <%FOREACH EVENTLIST%>
       <%IF EVENTS EXIST%>
       <%$total_events++;%>
       <%if($DAY->{dd} >= $mday) { %>
       <%if($total_days >= $max_days) {
            exit();
       }%>
       <%$total_days++;%>

       <DT>
          <a href="<%= $CGI_URL %>?view=Day&datestring=<%=$YEAR%><%=$MONTH%><%=$linkday%>" target=_blank><font size=1 COLOR="#000000"><%=$DAY->{monthname}%> <%=$DAY->{'dd'}%></font></a>
          <BR>
    <ul STYLE="margin:0; padding:0; margin-left:15px;list-style-type: disc; ">
          <%FOREACH EVENT%>
             <font size=1><li>
             <%= $EVENT->{'details'}->{'title'} %></li></font>         
             <BR>
          <%/FOREACH%>
    </ul>
          <BR>
       <%/IF%>
       <%}%>
    <%/FOREACH%>
    </DL>
    <%unless($total_events){%>
    <CENTER><I>No Events</I></CENTER>
    <% } %>
    </DIV>
    <a HREF="<%=$AdminConfig->get("calendar_url")%>?calendar=<%=$Calendar%>">View Calendar</a>

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 218

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


WWW
« Reply #1 on: July 13, 2005, 08:49:00 PM »

Is that the actual template code you're using??? If it is, parts of it (namely the </DL>... and the last link) are not being printed.

If you altered the template in any way, I suggest you start again with the SSI template which was supplied with CalendarScript. All I can guess is that some changes you've made to the one you are using are causing parts of the template to not be executed (resulting in parts not being printed out).

JMO

Dan O.

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

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