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)Displaying "All Day" in Calendar Grid & List when selected
Pages: [1]   Go Down
Print
Author Topic: Displaying "All Day" in Calendar Grid & List when selected  (Read 585 times)
0 Members and 1 Guest are viewing this topic.
ewperry
New Member
*

Karma: 0
Offline Offline

Posts: 0

Webmaster


WWW
« on: April 02, 2002, 08:20:00 AM »

I need "All Day" to display in calendar "list" view, otherwise the table field display blank and the columns become out of whack. Any suggestions???
Logged
TubaDave
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #1 on: April 03, 2002, 12:47:00 AM »

1) Find <!-- LIST STYLE DISPLAY -->, then look down a few lines until you find:

<% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>

It's the last of three similar-looking if statements.

2) Add this line right after it:

<% else { %>All Day : <% } %>

That should solve your problem.

------------------
David Whittaker
http://www.uabcm.com/  
http://www.csworkbench.com/

[This message has been edited by TubaDave (edited April 03, 2002).]

Logged

rob
New Member
*

Karma: 0
Offline Offline

Posts: 0

various


WWW
« Reply #2 on: June 15, 2003, 08:08:00 PM »

How does one do it in 3.2?

Rob

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

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: June 17, 2003, 09:38:00 AM »

** How does one do it in 3.2? **

Most likely the same way except the line <!-- LIST STYLE DISPLAY --> may be written <%-- LIST STYLE DISPLAY --%>.

Try seraching the file for just "LIST STYLE DISPLAY" (without the quotes) to locate it.

Dan O.

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

Logged
rob
New Member
*

Karma: 0
Offline Offline

Posts: 0

various


WWW
« Reply #4 on: June 17, 2003, 01:01:00 PM »

No, the line in 3.2 is

<% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= SCHEDULE FIELD(start_time) %><% } %>

Wherever I've tried putting

<% else { %>All Day : <% } %>

has been fruitless.

Rob

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

Logged
rob
New Member
*

Karma: 0
Offline Offline

Posts: 0

various


WWW
« Reply #5 on: June 18, 2003, 09:10:00 PM »

OK, Here's what does what I was trying to do - well, it seems to work.  If anyone sees a problem with it I would appreciate them letting me know:

I replaced

                           
                              <% 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'})) { %> : <% } %>


With  


          <% if ($EVENT->{'schedule'}->{'all_day'} == "1") { print "All Day, " }              
         else              
         {              
         if ($EVENT->{'schedule'}->{'start_time'}) {                  
         print &Date::formatTime($EVENT->{'schedule'}->{'start_time'}, $Config->get(time_format)) }              
         if ($EVENT->{'schedule'}->{'end_time'} ne $EVENT->{'schedule'}->{'start_time'}) {                  
         print " - ", &Date::formatTime($EVENT->{'schedule'}->{'end_time'}, $Config->get(time_format)) }                
         }
                     %>

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

[This message has been edited by rob (edited June 19, 2003).]

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: June 19, 2003, 07:27:00 PM »

** Here's what does what I was trying to do **

Thanks for the code, I'm sure someone will find it useful.

Dan O.

[This message has been edited by DanO (edited June 21, 2003).]

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