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: No Events in day.html  (Read 663 times)
0 Members and 1 Guest are viewing this topic.
Liz
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: January 26, 2007, 10:22:00 PM »

I've been using CalenderScript 3.0 for years (great script!) and I've been tweaking the old style default.html, day.html and event_detail.html pages so that they will display correctly in my new Web site design. Everything is working except for one thing -- when I click on a date in the calendar grid, it tells me there are no events for that date even when there is indeed an event there.

The event displays in the calendar grid, and it shows up in event details, but it says "No Events" when I click the date in the grid to see the list of events for that day. I'm assuming this is a problem with day.html, so I've pasted the code below in hope that someone can tell me how to fix it. Thanks very much!


<% if ($STYLE eq "Grid") { %>

<%FOREACH HOUR OF DAY%>
<TR>
   <TD CLASS="thinborder" BGCOLOR="#ffffff" ALIGN="right" VALIGN="middle" WIDTH="15%">
      <% if ($HOUR == 99) { %>
      All Day Events
      <%ELSE%>
      <%=Date::formatTime(&Date::LZ($HOUR)."00",$Config->{'time_format'})%> 
      <%/IF%>
   </TD>
   <TD CLASS="thinborder" VALIGN=TOP  WIDTH="85%">
      <%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'}) { %> : <% } %>
         <%= $EVENT->{'details'}->{'title'} %>
         <FONT SIZE="-2">[<A HREF="<%=$CGI_URL_QUERYSTRING%>popup=0&template=event_detail.html&event_id=<%=$EVENT->{'details'}->{'id'}%>" STYLE="text-decoration:underline;" onClick="showDetails('<%=$EVENT->{'details'}->{'id'}%>');return false;">details</A>]</FONT>
         <BR>
      <%/FOREACH%>
      <%IF NO EVENTS EXIST%> <%/IF%>
   </TD>
</TR>
<%/FOREACH%>

<% } else { %>

<TR>
   <TD CLASS="thinborder" VALIGN="top" COLSPAN="2">
   <%IF EVENTS EXIST%>
      <CENTER><TABLE BORDER="0"><TR><TD>
      <DL>
      <%FOREACH EVENT%>
         <DT>
         •
         <% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= $EVENT->{'schedule'}->{'start_time'} %><% } %>
         <% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= $EVENT->{'schedule'}->{'end_time'} %><% } %>
         <% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
         <%= $EVENT->{'details'}->{'title'} %>
         <FONT SIZE="-2">[<A HREF="<%=$CGI_URL_QUERYSTRING%>popup=0&template=event_detail.html&event_id=<%=$EVENT->{'details'}->{'id'}%>" STYLE="text-decoration:underline;" onClick="showDetails('<%=$EVENT->{'details'}->{'id'}%>');return false;">details</A>]<BR></FONT>
         <DD>
         <%= $EVENT->{'details'}->{'description'} %>
      <%/FOREACH%>
      </DL>
      </TD></TR></TABLE></CENTER>
   <%ELSE%>
      <CENTER><BR><I>No Events</I><BR><BR></CENTER>
   <%/IF%>

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: January 27, 2007, 02:17:00 AM »

It might be helpful if you provided a link to a calendar display experiencing the problem so we could see it for ourselves.

JMO

Dan O.

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

Logged
Liz
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: January 28, 2007, 02:31:00 PM »

Hi Dan, thanks for your reply. Here is a link to my calendar. My site is under reconstruction, so I've stripped my design out. Please excuse the plain appearance:

URL removed

As you can see, clicking the item called "Test" reveals details. But clicking the date for that day shows no events, even though an event has been saved.

I'd really appreciate some suggestions. I can follow directions and implement other people's mods, but I'm not a programmer at all. Thank you.

[This message has been edited by Liz (edited January 28, 2007).]

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: January 28, 2007, 03:12:00 PM »

** Here is a link to my calendar. **

So you're using the OldStyle templates. You never mentioned that.

** I've been tweaking the old style default.html, day.html ... **

I can only think whatever change(s) you've made to the day.html template is causing your problem. I suggest you start over with a fresh copy and be careful what changes you make to the code between <% and %> tags, *especially* the code block at the very top of that template.

JMO

Dan O.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #4 on: January 28, 2007, 03:13:00 PM »

** I've been using CalenderScript 3.0 **

PS. CalendarScript version 3.0 has some serious security flaws. You should upgrade to the very newest version 3.21 if that's not the version actually installed!

JMO

Dan O.

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

Logged
Liz
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: January 28, 2007, 04:13:00 PM »

Thanks. I uploaded the original day.html and it seems to be working, so I'll start over with that. I mentioned it was the old style in post #1, by the way.

What sort of security issues does 3.0 have? If someone can break in and change my calendar, I don't really care. But if someone can break into my server through it, I'd definitely care. I'm just not liking the idea of having to fix my calendar all over again after spending so much time on it. Thanks again.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #6 on: January 28, 2007, 04:40:00 PM »

** I mentioned it was the old style **

I missed your mention of it.

** What sort of security issues  **

LINK >  http://www.calendarscript.com/3.21/  

BTW. You can not directly upgrade from 3.0 to 3.21. You'have have to install each previous upgrade first or just upload the whole 3.21 CalendarScript version.

Dan O.
www.much2.com
Unofficial CalendarScript - Mods and Plugins site

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

Logged
Liz
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #7 on: January 28, 2007, 05:00:00 PM »

Thank you for the information. Now for a stupid question -- if I upgrade the script that means I need to redo all the templates again, right? Does the latest version come with the default and old style again? I need the old style. Thanks.  

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #8 on: January 28, 2007, 05:07:00 PM »

** if I upgrade the script that means I need to redo all the templates again **

If you "upgrade" you should not have to redo your templates, if you just upload the whole most current version, yes you will. I really recommend the latter but that's up to you.

** Does the latest version come with the default and oldstyle again? **

Yes.

Dan O.


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

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