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 CommunityCustomizationPlugins (Moderators: scott, DanO, Marty)Starting "day" at 11 a.m.
Pages: [1]   Go Down
Print
Author Topic: Starting "day" at 11 a.m.  (Read 461 times)
0 Members and 1 Guest are viewing this topic.
cadamsesq
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: March 08, 2003, 12:05:00 AM »

I never have appointments at 12 a.m.  

Yet the links for a "day" (showing times of events) start at 12 a.m. and run past 11 p.m.

Does anyone know how to get script (plugins?) to set Calendar Admin Options "Calendar Settings" (or perhaps some other avenue) so that one could schedule a "day" to begin at a time other than 12 a.m.?

For instance, could one limit the list of times displayed in the "day" to run say from just 9 a.m. to 10 p.m.?

Thanks,
Chris

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: March 08, 2003, 02:01:00 PM »

** could one limit the list of times displayed in the "day" to run say from just 9 a.m. to 10 p.m.? **

The "times" for both start and end are just a list of numbers from 1-12. Removing any one will remove it for both AM and PM.

If you set the calendar to use 24 hour times, you may be able to remove the times for 0000 to 0900 for the start time and 2000 to 2400 for the end times.

You might also be able to just change the JavaScript form validation routine used on the schedule event template to display an error message if such a time was selected by the user.

Dan O.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #2 on: September 29, 2005, 02:32:00 PM »

Origianlly posted by Wes. Edited for HTML formatting reasons.

Although this does not give you 24 lines with 24 hours, it does show only events which start after a certain time (in my case, 6am - got tired of scrolling down so many blank lines to see the heart of the day).  $HOUR runs from 0 to 23, so 11am = 11.

In default.html, around line 244,
<%-- DAY VIEW --%>

find

<%FOREACH HOUR OF DAY%>

and right under it, add

<% next if (($HOUR < "6")); %>

Wes

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

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: September 29, 2005, 02:47:00 PM »

 
quote:
right under it, add

<% next if (($HOUR < "6")); %>


Thanks Wes. I believe the following line in place of the one you suggested above should do what Chris was looking for?

<% next if (($HOUR < 9) || ($HOUR > 21)); %>

# note: the use of 22 above would include times like 10:30, etc. that aren't wanted?


BTW. The "6" in the previous suggestion should probably NOT be inside quotes (") as it is a numerical value not a string. But Perl is very forgiving and would probably work either way.

         PS. This forum software adds a space between | | characters. That space would need to be removed from the code posted here before using it in a template.

JFYI

Dan O.


[This message has been edited by DanO (edited September 30, 2005).]

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