Yes I did see this which is why I modified the dropdown define that appears on the Events page. The admin setting for the long/short months dropdown implies it applies to ALL dropdowns. So to make the results of this setting consistent in the UI, I changed the define being used on the Events page dropdown.. Otherwise we would need to add a THIRD define for the Events page dropdown to separate it from the sidebox month dropdown. (see the images I attached)
Here's the problem...that setting affects the year calendar titles as well. Let's do this....we can go ahead and make these changes:
1) Put the line you changed back to use the ...TITLES flag.
2) setup a new array for the drop down.
...the code at the top of tpl_events_calendar_default.php will look like this:
Code:
$cal = new Calendar;
$cal->setMonthNames(explode(",", (EVENTS_LONG_MONTHS_TITLES ? EVENTS_MONTHS_LONG : EVENTS_MONTHS_SHORT))); //**rus: via diva: add
$cal->setDayNames(explode(",", EVENTS_WEEKDAY_FIRST_CHARS)); //**rus:add
$dd_months = explode(",", (EVENTS_LONG_MONTHS_DROPDOWNS ? EVENTS_MONTHS_LONG : EVENTS_MONTHS_SHORT)); //**rus: new
$cal->setStartDay(FIRST_DAY_OF_WEEK);
3) now use the new array in the drop down (around line 84):
Code:
while (!$q_events->EOF) {
$year = $q_events->fields['year'];
$month = $q_events->fields['month'];
$day = $q_events->fields['day'];
$event_array[] = array('id' => $q_events->fields['event_id'], 'text' => $dd_months[$month - 1] . ' ' . $day . ' - ' . $q_events->fields['title']); //**rus:changed
$q_events->MoveNext();
}
Now for the bug...that query around line 74, change "date('Y-m-d H:i:s')" to "date('Y-m-d')". This is the same issue we had with the query I changed when I first joined. The start_date in the db doesn't use a time so we shouldn't compare it to the current date & time (just the date).
Code:
$q_events = $db->Execute("select *, DAYOFMONTH(start_date) AS day, MONTH(start_date) AS month, YEAR(start_date) AS year"
. " from ".TABLE_EVENTS_CALENDAR." where start_date >= '" . date('Y-m-d') . "' and language_id = '" . $_SESSION['languages_id'] . "'"
. " order by start_date");
Thanks,
Rus