Ok, now I changed the $listWeeks line to $listMonths and it worked. thanks for putting me on the right track..
This is the code:
<?php
$LIST=1;
$mo=1;
$yr=2005;
$listMonths=48;
$DF = "d M Y | D";
$template="monthly.php";
require ("calendar/calendar.php");
?>
However, with this solution I have to manually change the $listMonths value and increment it every month for the previous events to be shown correctly.
Is there another way that works from "today" backwards, rather than from 4 years ago to "today"?
|