Calendar MOD question - Navigation - Posted (2468 Views)
Average Member
Andy Humm
Posts: 908
908
Following the recent trend of Calendar MOD questions etc., I am at the stage ready to incorporate the mod with the adjustments, but just before I do start, I notice on the Calandar first page ie cal_default.asp file displaying inside default.asp, the current month calandar box does not have any navigation arrows to jump to previous and next months. Whereas, if you visit cal.asp, by clicking on the Events Calendar title, the current month shows the left right arrows to navigate.

Has this feature been deliberately missed on the calendar front page or could we see if it could be added for a better navigation feature.

Additionally, when you are in cal.asp - the Day, Week, Month, Year, Events List titles all display except for the one selected ie if you are in cal.asp?view=yearly the year title heading is blank and the others display okay. Could we incorporate a facility to ensure all titles are displayed with say a background image ie add (bgcolor=""" & strCategoryBGImage & """) and the the current focused heading is reverted back to strCategoryHeadColor only? Thus still showing the year title. Example here Just an idea
regards andy<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Senior Member
leatherlips
Posts: 1838
1838
I too noticed the Day, Week, Month etc. headers. It turns out, at least I think, it only does this in IE7. If you look at it in FireFox or Safari the current view is not blank. I think it has something to do with the cal_style.asp file.<
Posted
Average Member
Andy Humm
Posts: 908
908
I am viewing the headers page cal.asp in IE5 and they are missing.<
Posted
Senior Member
leatherlips
Posts: 1838
1838
Here is the cal_style.asp code:

Code:
%>
<!--#INCLUDE FILE="config.asp"-->
.cal_activetab, .cal_activeborder
{background-color: <%= strHeadCellColor %>; font: Bold 10pt <%= strDefaultFontFace %>; color:<%= strHeadFontColor %>; }
.cal_inactivetab
{background-color: <%= strAltForumCellColor %>; font: 10pt <%= strDefaultFontFace %>; color:<%= strForumFontColor %>; }
.cal_inactivetab:hover
{background-color: white;}

.cal_smallfont
{font: 11px/100% <%= strDefaultFontFace %>; color: <%= strForumFontColor %>}
.cal_listitem
{display: list-item; list-style: square inside; margin:0px; padding:0px; color: <%= strForumFontColor %>}
.cal_indented
{margin-left: 16px; }

.cal_smallcalendar
{font: 11px/100% <%= strDefaultFontFace %>; color: <%= strForumFontColor %>; background-color: <%= strAltForumCellColor %>;}
.cal_smallcalendar td
{height:15px; text-align:center;}
.cal_smallcalendar a:link, .cal_smallcalendar a:visited
{color: <%= strForumLinkColor %>; text-decoration:none; }
.cal_smallcalendar a:hover
{color:<%= strForumHoverFontColor %>; text-decoration:<%= strForumHoverTextDecoration %>}
.cal_smallcalendar a:active
{color:<%= strForumHoverFontColor %>; text-decoration:<%= strForumActiveTextDecoration %>}

.cal_largecalendar td
{font: 11px/100% <%= strDefaultFontFace %>; background-color: <%=strAltForumCellColor%>; vertical-align:top;}
.cal_largecalendar a:link, .cal_largecalendarcell a:visited
{color: <%= strForumLinkColor %>; text-decoration: none;}
.cal_largecalendar a:hover
{color:<%= strForumHoverFontColor %>; text-decoration:<%= strForumHoverTextDecoration %>}
.cal_largecalendar a:active
{color:<%= strForumHoverFontColor %>; text-decoration:<%= strForumActiveTextDecoration %>}

.cal_datedisabled
{color: <%= strAltForumCellColor %>;}
#cal_datetoday
{border-collapse: collapse; border: 1px solid black;}
.isevent a:link, .isevent a:visited
{color: red ; font-weight: bold;}
The part in red is the part that I think is supposed to control the colors but no matter what I do, nothing seems to change. According to the above the Day, Week, Month, etc header should be my head cell color. Instead it is a light gray. sad<
Posted
Average Member
Andy Humm
Posts: 908
908
Leatherlips, I have just installed the Events Calendar mod and found that in cal.asp the Day, Week, Month, Year, Events List titles all display okay. I was looking at your forum prior to installation and it may be that the in/active header attribute colours are the same as the forum/table background, just a thought..
cal_inactivetab {background-color: <%= strAltForumCellColor %>; font: 10pt <%= strDefaultFontFace %>; color:<%= strForumFontColor %>; }


<
Posted
Senior Member
leatherlips
Posts: 1838
1838
This is getting me confused. blackeye
Code:
.cal_activetab, .cal_activeborder
{background-color: <%= strHeadCellColor %>; font: Bold 10pt <%= strDefaultFontFace %>; color:<%= strHeadFontColor %>; }
.cal_inactivetab
{background-color: <%= strAltForumCellColor %>; font: 10pt <%= strDefaultFontFace %>; color:<%= strForumFontColor %>; }
.cal_inactivetab:hover
{background-color: white;}
If I changed the part above in red to strHeadCellColor, shouldn't that make it use my header cell color which is a blue color? Mine is still grey. Maybe I'm making the change in the wrong place?<
Posted
Average Member
Andy Humm
Posts: 908
908
If you take a look at my cal.asp
You will notice:
1. the active month header is blue ie strHeadCellColor (yours looks the same colour as as your strPagebgcolor)
2. the inactive headers are dull green ie strAltForumCellColor #e3eaca
3. the cell colours again dull green ie strAltForumCellColor #e3eaca
4. the table background is light green ie strForumCellColor #e4f8d7
5. The forum Base Background Color ie strPagebgcolor is pale blue ie #CEDFED

Have you got a header color the same as 5?
regards andy
<
Posted
Senior Member
leatherlips
Posts: 1838
1838
How could I get it to use my background gif's? I looked in my font/color section and in there for my Header Background Color I have #9999FF which is a dark blue. sad
I've tried using strHeadCellImage but that doesn't seem to work.<
Posted
Average Member
Andy Humm
Posts: 908
908
Try cal_style.asp: lines 12-17
.cal_activetab, .cal_activeborder
{background-image:url('gradient2.gif'); font: Bold 10pt <%= strDefaultFontFace %>; color:<%= strHeadFontColor %>; }
.cal_inactivetab
{background-image:url('gradient.gif'); font: 10pt <%= strDefaultFontFace %>; color:<%= strForumFontColor %>; }
.cal_inactivetab:hover
{background-color: white;}

Where 'gradient2.gif' points to file location where STRHEADCELLBGIMAGE is and 'gradient.gif' points to file location where STRCATEGORYCELLBGIMAGE is..

It works on my Events calendar.<
Posted
Average Member
Andy Humm
Posts: 908
908
As I navigate through the weekly view of the cal.asp and I notice:
1. The events message is not listed on the last weekday, just the event heading see link
2. The messages are not aligned to the weekly view table cells top.
3. If there is more than one event for a particular day only one event message shows see link Are there any solutions for these anomolies?<
Posted
Senior Member
leatherlips
Posts: 1838
1838
Strange. I did however notice that on this page: http://www.lynehamvillage.com/forum/cal.asp?view=weekly&date=11/07/2008 it does show more than one event for a particular day. It must be something with that last day of the week.<
You Must enter a message