Hi again

I think that I left this this code commented out as I didn't finish it - I should have removed it from the zipped version, sorry

However, to get it working you really just need to add one line to start the calendar row counter before it the days are added.
Again, this line might be in the code commented out somwhere but I am not sure which version you are actually using (I am currently working on version 3

)
So, within the draw_cal() function, add this line somewhere near the beggining (ie BEFORE we open the calendar table:
- Code: Select all
$cal_row_counter=1;
Then, find the code that starts a new line ever 7 days:
- Code: Select all
$week_day %= 7;
if($week_day == 0){
$the_cal .= "</tr><tr>";
++$cal_row_counter;
}
$week_day++;
And check that you have the line
++$cal_row_counter; in there and uncommented.
Now the other bit of code "should" work were it adds rows up till 6.
You might find that there is a problem with the current month - this is caused by the css that gives it that border. You will need to modify the css or remove this detail.
I hope this works for you.
Chris
PS. now I have the code open I will try to sort out those week numbers for you....