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: wrong day  (Read 574 times)
0 Members and 1 Guest are viewing this topic.
Maurice
Guest
« on: March 14, 2002, 01:19:00 PM »

If I'm viewing a month and I 'click' a day that is not the current date/day within the month -- like the 10th to view that days events (grid) -- then when I click "month" button I return to the month but the viewed day (the 10th) is then high-lighted as if it were the current date/day... Has anyone else had this issue?  I'm running 3.1 of the calendar.

Maurice


Logged
TubaDave
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #1 on: March 14, 2002, 05:57:00 PM »

I believe this behavior is intended.  Think of the highlighted day as the selected day, not the current day.  Today is just the default selected day, until another one is chosen.

David

------------------
http://www.csworkbench.com/" TARGET=_blank>http://www.uabcm.com/
http://www.csworkbench.com/

Logged

Scott
Guest
« Reply #2 on: March 14, 2002, 09:58:00 PM »

And in fact, I should consider changing this. Or at least changing the default template so today is always highlighted a different color, and the 'current' day is another color.

It makes sense to me that if you're viewing July 10th, for example, and you go to the month view, that July 10th should be highlighted to show you where you were. But if that's not how most people see it, I could change it perhaps  

------------------
Scott
CalendarScript.com


Logged
Maurice
Guest
« Reply #3 on: March 26, 2002, 12:14:00 AM »

With the previous version the true calendar day is always highlighted... The "event" day when clicked would open in a smaller than full-screen window.

This is/was a feature that I liked and hope to have it return soon.

Thank you
Maurice

Logged
Ognar
Guest
« Reply #4 on: September 02, 2002, 01:10:00 PM »

I personaly would like to see just the current day highlighted, but your "viewing day" point is valid.  Perhaps there can be options in the admin pannel so people could have one or or the other, or both highlighted(dif colors).  Has anyone worked on a mod to change this functionality?  I don't know enough about coding to do it myself, but would love to set it so only the current day is highlighted.  I don't want to confuse my students and if one person changes the day on the classroom computer and doesn't change it back, the next student could become confused as to what day it is.

Thanks,

Ogs  

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #5 on: September 02, 2002, 07:31:00 PM »

   
quote:
Has anyone worked on a mod to change this functionality?

Look at the lines in the default.html template file following <!-- THIS IS THE ACTUAL DISPLAY AREA -->. The part that needs changing is:

<%IF SELECTED%><%=$_GRID_CELL_SELECTED_BGCOLOR%>

(there's code before and after it on the same line}

Dan O.

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

[This message has been edited by DanO (edited September 02, 2002).]

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: September 02, 2002, 07:43:00 PM »

Replacing that whole line (not just the part shown in the post above)
in the default.html template file with the following will highlight the current day only.

code:

<TD CLASS="thinborder" VALIGN=TOP WIDTH=14% <%=$rowheight%> BGCOLOR="<%if ($TODAY_DATE == $DAY->{'dd'} && $TODAY_MONTH == $MONTH && $YEAR == $TODAY_YEAR) {%><%=$_GRID_CELL_SELECTED_BGCOLOR%><%}else{%><%=$_GRID_CELL_BGCOLOR%><%}%>">

Dan O.

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


[This message has been edited too many times by DanO ]

[This message has been edited by DanO (edited September 02, 2002).]

[This message has been edited by DanO (edited September 02, 2002).]

Logged
bodie
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #7 on: April 07, 2004, 01:11:00 PM »

I have tried this code substitution, but without success.  Instead of maintaining the color for the current day, I get no color for any day.

I understand that the new code checks to determine the current day, and color it, but where is the actual color specified?

To clarify, I am removing:

code:

<TD VALIGN=TOP WIDTH=14% <%=$rowheight%> <%IF SELECTED%>BGCOLOR="#FFFFCC"<%/IF%>>

and replacing it with:

code:

<TD VALIGN=TOP WIDTH=14% <%=$rowheight%> BGCOLOR="<%if ($TODAY_DATE == $DAY->{'dd'} && $TODAY_MONTH == $MONTH && $YEAR == $TODAY_YEAR) {%><%=$_GRID_CELL_SELECTED_BGCOLOR%><%}else{%><%=$_GRID_CELL_BGCOLOR%><%}%>">

Suggestions?

thanks!
~cp

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

Logged
bodie
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #8 on: April 07, 2004, 01:13:00 PM »

I have tried this code substitution, but without success.  Instead of maintaining the color for the current day, I get no color for any day.

I understand that the new code checks to determine the current day, and color it, but where is the actual color specified?

To clarify, I am removing:

code:

<TD VALIGN=TOP WIDTH=14% <%=$rowheight%> <%IF SELECTED%>BGCOLOR="#FFFFCC"<%/IF%>>

and replacing it with:

code:

<TD VALIGN=TOP WIDTH=14% <%=$rowheight%> BGCOLOR="<%if ($TODAY_DATE == $DAY->{'dd'} && $TODAY_MONTH == $MONTH && $YEAR == $TODAY_YEAR) {%><%=$_GRID_CELL_SELECTED_BGCOLOR%><%}else{%><%=$_GRID_CELL_BGCOLOR%><%}%>">

Suggestions?

thanks!
~cp

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

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