Using different colors according to dates

Re: Using different colors according to dates

Postby chris » Thu Aug 21, 2008 1:24 pm

Hi again,
I am sorry that I have not been able to help more with this calendar without images question. I know that there are several users who would like to see it but, as you can see, it is a far more complex change than most of the requests on this forum.
To show the numbers in the cells, in the "/includes/functions.inc.php" file find the line that shows the image:
Code: Select all
<img src="'.DIR_IMAGES.''.$day_image.'" alt="'.$lang["day_".$week_day.""].' '. $date_format.'" border="0"  width="20px" height="20px">

and replace it with just the number:
Code: Select all
'.$day_counter.'

You will need to adjust the css to give padding etc to the table cells which have the class name "cal_data"
You will also have to use your css styles to create the background colors (or borders) for the calendar days according to state and/or season.

Hope this is of some help

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Using different colors according to dates

Postby Tom » Fri Aug 29, 2008 3:25 pm

Thanks for helping me with this change Chris :!: :!:
It was a crazy busy week so that's why I just saw you reply.

I'll try to work out the required css changes to make it function as it should.

Tom.
Tom
 
Posts: 6
Joined: Fri Jun 13, 2008 11:54 am

Re: Using different colors according to dates

Postby Tom » Fri Aug 29, 2008 4:10 pm

Can you point me yet how to change update_cal.js file to get back numbers after releasing a day back to free state :?:
For the moment there are image files yet jumping back after day is released...

Tom.
Tom
 
Posts: 6
Joined: Fri Jun 13, 2008 11:54 am

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron