Hi, a little late but I'm just messing with the calendar MOD (nice job Ionrock and StudioZ !).
Thx to all posters who have helped me install and use this nice MOD, will be uploaded very soon (i'm using it on a 1.2.3 & 1.2.1 dev)
I saw this:
oeconom wrote:Mobius wrote:Is it possible to start the calendar wint Monday?
Fi yes, how?
That's what I'd like to have, too!
Felix
I think

I found a solution:
Go to > include> inc_module > mod_calendar > inc_lib > calendar.classes.php
Go to line 123 (more or less)
Find the function to make the calendar:
Code: Select all
function make_calendar($month, $year, $category, $alias=0) {
$previousmonth = date("n", mktime(0,0,0,$month-1,1,$year));
$previousyear = date("Y", mktime(0,0,0,$month-1,1,$year));
$nextmonth = date("n", mktime(0,0,0,$month+1,1,$year));
$nextyear = date("Y", mktime(0,0,0,$month+1,1,$year));
// $monthname = date("F Y", mktime(0,0,0, $month, 1, $year));
$thisYear = date("Y", mktime(0,0,0, $month, 1, $year));
$thisMonth = $this->langInfo[strtolower(date("M", mktime(0,0,0, $month, 1, $year)))];
$daysinmonth = date("t", mktime(0,0,0,$month,1,$year));
$startday = date("w", mktime(0,0,0,$month,1,$year));
$activedays = $this->getactivedays($month, $year, $category);
$j=0;
$weeks = "";
for ($i=0; $i < $startday; $i++) { <------- THIS LINE !!!
Look at last line where $i=0, replace with $i=1
Code: Select all
for for ($i=1; $i < $startday; $i++) {
Then, find more or less at line 188 (just after the form):
Code: Select all
$days = array("sun", "mon", "tue", "wed", "thu", "fri", "sat");
for ($i=0; $i<7; $i++) {
$calendar .= "<td class="dayname">" . substr($this->langInfo[$days[$i]], 0, 1) . "</td>\n";
REPLACE WITH:
Code: Select all
$days = array("mon", "tue", "wed", "thu", "fri", "sat", "sun");
for ($i=0; $i<8; $i++) {
$calendar .= "<td class="dayname">" . substr($this->langInfo[$days[$i]], 0, 3) . "</td>\n";
On last line, I replaced 1 by 3
It's to have 3 letters in my days: mon, tue, wed...
Hope that helped.
Cheers