Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Marking Start and End Date with a different colour
Old 05-21-2004, 08:51 PM   #1
massive
Calendar User
 
massive is offline
Join Date: May 2004
Posts: 2
Default Marking Start and End Date with a different colour

It is possible to mark the start and the end date of an event with
a different colour?
 

Old 05-22-2004, 09:39 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Yes it is possible. All you need to do is go in the theme folder and modify the esstyle.css of the theme you're using.

The values that you want to change are the following (it's all the way at the end of the file)
Code:
/* Mark Start Cell Background (usually a slashed graphic to show availability or solid for events) */
.s21 {
	background-image:    url("cdef2.gif");
	background-color: #FFFFFF;
	}
/* Mark Solid Cell Background (solid marked event date background) */
.s22 {
	background-image:    url("cdef2.gif");
	background-color: #FFFFFF;
	}
/* Mark End Cell Background (usually a slashed graphic to show availability or solid for events) */
.s23 {
	background-image:    url("cdef2.gif");
	background-color: #FFFFFF;
	}
/* Mark End/Start Cell Background (usually a slashed graphic to show availability or solid for events) */
.s24 {
	background-image:    url("cdef2.gif");
	background-color: #FFFFFF;
	}
You see that all the url's are currently cdef2.gif... so all the event days are using the same image. If you look in the folder you'll see that there is 6 images for each theme... so all you need to do is change the url value for each ".s2x" for the same number in the .gif file..... (i'm not sure i'm making sense so nothing better than an example)

Code:
/* Mark Start Cell Background (usually a slashed graphic to show availability or solid for events) */
.s21 {
	background-image:    url("cdef1.gif");
	background-color: #FFFFFF;
	}
/* Mark Solid Cell Background (solid marked event date background) */
.s22 {
	background-image:    url("cdef2.gif");
	background-color: #FFFFFF;
	}
/* Mark End Cell Background (usually a slashed graphic to show availability or solid for events) */
.s23 {
	background-image:    url("cdef3.gif");
	background-color: #FFFFFF;
	}
/* Mark End/Start Cell Background (usually a slashed graphic to show availability or solid for events) */
.s24 {
	background-image:    url("cdef4.gif");
	background-color: #FFFFFF;
	}

What each .s2x mean is this

.s2 -> normal date on the calendar
.s20 -> a block in the calendar that doesn't have a date number
.s21 -> start of an event
.s22 -> during an event
.s23 -> end of an event
.s24 -> a day where an event starts and another ends

And the gifs names follow the same order....

Hope this helps even though I feel it's very jumbled.... please reply if you need clarifications
 

Old 09-09-2006, 07:29 PM   #3
Milan
Calendar User
 
Milan's Avatar
 
Milan is offline
Join Date: Dec 2005
Posts: 14
Default

the solution you supplied looks like what I need to do however, I do not have the .gif files in my install.
Where can I get these .gifs?
thanks
 

Old 09-11-2006, 10:16 AM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

That post is 2½ years old!! This solution no longer works with the current version of the script.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
start date / end date mbstuart General 5 12-22-2005 08:53 AM
TBD Date jabi General Support 2 08-22-2005 11:33 PM
start & end year omma General Support 2 07-11-2005 01:15 PM
Version 4.0 Beta Discussion tomB General Support 22 11-12-2003 01:26 PM



All times are GMT -4. The time now is 07:13 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |